Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008847/0.0008847, allocations: 175 kB / 15.43 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 225.7 MB / 241.9 MB, free: 192 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007928/0.0007925, allocations: 97.94 kB / 293.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04193/0.04193, allocations: 9.096 MB / 353.3 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003524, allocations: 10.05 kB / 416.4 MB, free: 88.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1052, allocations: 52.39 MB / 468.8 MB, free: 40.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.01418/0.1194, allocations: 12.9 MB / 481.7 MB, free: 27.39 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008687/0.1281, allocations: 5.127 MB / 486.8 MB, free: 21.89 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003066/0.1312, allocations: 47.88 kB / 486.8 MB, free: 21.85 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.1323, allocations: 250.9 kB / 487.1 MB, free: 21.6 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002882/0.1352, allocations: 1.067 MB / 488.1 MB, free: 20.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.1356, allocations: 67.86 kB / 488.2 MB, free: 20.46 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003064/0.1386, allocations: 2.891 MB / 491.1 MB, free: 17.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003719/0.139, allocations: 171 kB / 491.3 MB, free: 17.38 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.1401, allocations: 0.6378 MB / 491.9 MB, free: 16.74 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.1416, allocations: 1.067 MB / 493 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004067/0.1421, allocations: 103.9 kB / 493.1 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.1437, allocations: 0.6902 MB / 493.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.1448, allocations: 0.9308 MB / 494.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.1461, allocations: 1.24 MB / 495.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003793/0.1499, allocations: 3.928 MB / 499.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1499, allocations: 0 / 499.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1499, allocations: 0 / 499.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.062e-05/0.15, allocations: 0 / 499.9 MB, free: 8.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.005275/0.1553, allocations: 3.067 MB / 0.4911 GB, free: 5.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1553, allocations: 12.03 kB / 0.4912 GB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005262/0.1606, allocations: 1.741 MB / 0.4929 GB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.1622, allocations: 1.157 MB / 0.494 GB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.1623, allocations: 115 kB / 0.4941 GB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.1626, allocations: 148.2 kB / 0.4942 GB, free: 2.406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008916/0.1715, allocations: 7.042 MB / 0.5011 GB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.637e-05/0.1716, allocations: 23.77 kB / 0.5011 GB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002103/0.1718, allocations: 71.88 kB / 0.5012 GB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/0.1743, allocations: 1.722 MB / 0.5029 GB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.1854, allocations: 6.442 MB / 0.5092 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2282/0.4136, allocations: 20.97 MB / 0.5297 GB, free: 50.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003602/0.4173, allocations: 1.926 MB / 0.5315 GB, free: 50.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/0.4182, allocations: 0.5977 MB / 0.5321 GB, free: 50.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004926/0.4231, allocations: 3.34 MB / 0.5354 GB, free: 48.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.4232, allocations: 40.86 kB / 0.5354 GB, free: 48.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=93): time 4.007e-06/0.4232, allocations: 2.625 kB / 0.5354 GB, free: 48.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=93): time 0.003905/0.4271, allocations: 1.811 MB / 0.5372 GB, free: 48.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.4272, allocations: 58.75 kB / 0.5372 GB, free: 48.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002951/0.4302, allocations: 2.18 MB / 0.5394 GB, free: 48.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.4302, allocations: 33.38 kB / 0.5394 GB, free: 47.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009821/0.4312, allocations: 1.818 MB / 0.5412 GB, free: 46.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.4315, allocations: 375 kB / 0.5415 GB, free: 46.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.4316, allocations: 59.12 kB / 0.5416 GB, free: 46.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.4318, allocations: 445.9 kB / 0.542 GB, free: 46.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.4334, allocations: 0.9894 MB / 0.543 GB, free: 46.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/0.4358, allocations: 2.895 MB / 0.5458 GB, free: 43.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004232/0.44, allocations: 4.185 MB / 0.5499 GB, free: 41.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.477e-05/0.4401, allocations: 20.34 kB / 0.5499 GB, free: 41.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.007371/0.4475, allocations: 3.793 MB / 0.5536 GB, free: 39.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.678e-05/0.4476, allocations: 34.41 kB / 0.5537 GB, free: 39.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.4477, allocations: 68.78 kB / 0.5537 GB, free: 39.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/0.4479, allocations: 88.44 kB / 0.5538 GB, free: 39.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/0.45, allocations: 0.716 MB / 0.5545 GB, free: 39.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001461/0.4502, allocations: 135.2 kB / 0.5546 GB, free: 39.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/0.4527, allocations: 465.5 kB / 0.5551 GB, free: 39.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003255/0.4531, allocations: 197 kB / 0.5553 GB, free: 39.53 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (387): * Single equations (assignments): 383 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002197/0.4553, allocations: 1.392 MB / 0.5566 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003171/0.4556, allocations: 179.9 kB / 0.5568 GB, free: 38.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001786/0.4574, allocations: 1.189 MB / 0.558 GB, free: 38.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.068e-05/0.4575, allocations: 22.78 kB / 0.558 GB, free: 38.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.036e-06/0.4575, allocations: 2.625 kB / 0.558 GB, free: 38.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.4575, allocations: 3.656 kB / 0.558 GB, free: 38.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005594/0.4631, allocations: 3.93 MB / 0.5618 GB, free: 36.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.4632, allocations: 4 kB / 0.5618 GB, free: 36.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005488/0.4637, allocations: 134.7 kB / 0.562 GB, free: 36.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.4637, allocations: 7.125 kB / 0.562 GB, free: 36.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.4638, allocations: 27.55 kB / 0.562 GB, free: 36.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.4638, allocations: 7 kB / 0.562 GB, free: 36.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4638, allocations: 3.156 kB / 0.562 GB, free: 36.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.4661, allocations: 1.943 MB / 0.5639 GB, free: 35.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004879/0.4666, allocations: 281.5 kB / 0.5642 GB, free: 35.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4667, allocations: 15.22 kB / 0.5642 GB, free: 35.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.4673, allocations: 40.64 kB / 0.5642 GB, free: 35.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.4674, allocations: 52.94 kB / 0.5643 GB, free: 35.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.692e-05/0.4674, allocations: 28.66 kB / 0.5643 GB, free: 35.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001763/0.4692, allocations: 1.401 MB / 0.5657 GB, free: 33.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4692, allocations: 0 / 0.5657 GB, free: 33.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003288/0.4725, allocations: 0.7017 MB / 0.5663 GB, free: 33.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003448/0.4729, allocations: 163.6 kB / 0.5665 GB, free: 33.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.4762, allocations: 2.229 MB / 0.5687 GB, free: 30.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4762, allocations: 128 / 0.5687 GB, free: 30.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.4768, allocations: 0.5266 MB / 0.5692 GB, free: 30.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4786, allocations: 293.7 kB / 0.5695 GB, free: 30.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007072/0.4857, allocations: 6.694 MB / 0.576 GB, free: 23.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/0.4873, allocations: 2.283 MB / 0.5782 GB, free: 20.99 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002285/0.4896, allocations: 0.9884 MB / 0.5792 GB, free: 20 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.4899, allocations: 139.4 kB / 0.5793 GB, free: 19.86 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/0.4899, allocations: 3.391 kB / 0.5793 GB, free: 19.86 MB / 362.7 MB Notification: Performance of Templates: time 0.02797/0.5179, allocations: 17.9 MB / 0.5968 GB, free: 2.109 MB / 362.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)