Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008572/0.0008574, allocations: 176 kB / 15.43 MB, free: 5.766 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.314/1.314, allocations: 225.7 MB / 241.9 MB, free: 416 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.0007608/0.0007613, allocations: 92.77 kB / 293.1 MB, free: 12.93 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.04077/0.04077, allocations: 9.093 MB / 353.3 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.000323, allocations: 11.91 kB / 416.4 MB, free: 88.24 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09136/0.0917, allocations: 52.4 MB / 468.8 MB, free: 40.37 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.02172/0.1135, allocations: 32.79 MB / 0.4898 GB, free: 7.488 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01569/0.1292, allocations: 9.376 MB / 0.499 GB, free: 13.77 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006939/0.1362, allocations: 127.8 kB / 0.4991 GB, free: 13.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1373, allocations: 305.9 kB / 0.4994 GB, free: 13.35 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002574/0.1399, allocations: 0.8086 MB / 0.5002 GB, free: 12.54 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.1415, allocations: 0.9014 MB / 0.501 GB, free: 11.63 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003008/0.1445, allocations: 2.44 MB / 0.5034 GB, free: 9.184 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.1471, allocations: 2.276 MB / 0.5056 GB, free: 6.836 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009217/0.1481, allocations: 0.7896 MB / 0.5064 GB, free: 6.043 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.1493, allocations: 1.023 MB / 0.5074 GB, free: 5.016 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.1495, allocations: 128 kB / 0.5075 GB, free: 4.891 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.1506, allocations: 0.5734 MB / 0.5081 GB, free: 4.316 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006153/0.1512, allocations: 0.7514 MB / 0.5088 GB, free: 3.562 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.1522, allocations: 1.252 MB / 0.5101 GB, free: 2.297 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.1552, allocations: 3.534 MB / 0.5135 GB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1552, allocations: 0 / 0.5135 GB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1552, allocations: 0 / 0.5135 GB, free: 14.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.935e-05/0.1553, allocations: 0 / 0.5135 GB, free: 14.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.007802/0.1631, allocations: 3.606 MB / 0.517 GB, free: 11.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1631, allocations: 8.031 kB / 0.517 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000554/0.1637, allocations: 293.2 kB / 0.5173 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/0.1653, allocations: 1.135 MB / 0.5184 GB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.1655, allocations: 214 kB / 0.5186 GB, free: 9.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003515/0.1658, allocations: 295.8 kB / 0.5189 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007125/0.173, allocations: 4.717 MB / 0.5235 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.191e-05/0.1731, allocations: 43.61 kB / 0.5236 GB, free: 3.875 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002291/0.1733, allocations: 128 kB / 0.5237 GB, free: 3.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004771/0.1738, allocations: 428.2 kB / 0.5241 GB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.178/0.3518, allocations: 3.341 MB / 0.5273 GB, free: 64.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02024/0.3721, allocations: 21.64 MB / 0.5485 GB, free: 51.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004582/0.3767, allocations: 1.921 MB / 0.5504 GB, free: 50.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.3778, allocations: 0.6865 MB / 0.551 GB, free: 50.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006494/0.3843, allocations: 5.549 MB / 0.5564 GB, free: 46.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3844, allocations: 47.25 kB / 0.5565 GB, free: 46.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 5.04e-06/0.3844, allocations: 3.281 kB / 0.5565 GB, free: 46.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=140): time 0.01948/0.4039, allocations: 9.547 MB / 0.5658 GB, free: 41.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.404, allocations: 71.12 kB / 0.5659 GB, free: 40.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.4058, allocations: 1.796 MB / 0.5676 GB, free: 39.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.162e-05/0.4059, allocations: 51.95 kB / 0.5677 GB, free: 39.92 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/0.4066, allocations: 1.725 MB / 0.5694 GB, free: 38.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.4069, allocations: 0.5314 MB / 0.5699 GB, free: 37.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.407, allocations: 77.88 kB / 0.57 GB, free: 37.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.4072, allocations: 0.4981 MB / 0.5705 GB, free: 37.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.4086, allocations: 1.207 MB / 0.5716 GB, free: 36.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001994/0.4106, allocations: 3.402 MB / 0.575 GB, free: 32.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003899/0.4145, allocations: 5.097 MB / 0.5799 GB, free: 26.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.377e-05/0.4145, allocations: 20 kB / 0.5799 GB, free: 26.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.005625/0.4202, allocations: 4.787 MB / 0.5846 GB, free: 21.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.4202, allocations: 44.06 kB / 0.5847 GB, free: 21.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.762e-05/0.4203, allocations: 76 kB / 0.5847 GB, free: 21.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007584/0.421, allocations: 370 kB / 0.5851 GB, free: 20.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/0.4232, allocations: 0.8967 MB / 0.586 GB, free: 19.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003932/0.4272, allocations: 3.953 MB / 0.5898 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/0.4294, allocations: 207.7 kB / 0.59 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002342/0.4297, allocations: 232 kB / 0.5902 GB, free: 15.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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 (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001342/0.431, allocations: 0.9315 MB / 0.5912 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002872/0.4313, allocations: 189.6 kB / 0.5913 GB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/0.4346, allocations: 2.599 MB / 0.5939 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4346, allocations: 19.27 kB / 0.5939 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4346, allocations: 4 kB / 0.5939 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.4346, allocations: 7.969 kB / 0.5939 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00867/0.4433, allocations: 6.505 MB / 0.6003 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.4433, allocations: 8.094 kB / 0.6003 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009265/0.4443, allocations: 271.6 kB / 0.6005 GB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005985/0.4449, allocations: 261.9 kB / 0.6008 GB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.62e-05/0.445, allocations: 32 kB / 0.6008 GB, free: 4.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002865/0.4478, allocations: 3.18 MB / 0.6039 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.4479, allocations: 7.984 kB / 0.6039 GB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004723/0.4526, allocations: 3.901 MB / 0.6077 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/0.453, allocations: 234.7 kB / 0.608 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.4532, allocations: 35.98 kB / 0.608 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007424/0.454, allocations: 99.86 kB / 0.6081 GB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.4542, allocations: 100.8 kB / 0.6082 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.777e-05/0.4543, allocations: 35.98 kB / 0.6082 GB, free: 12.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001419/0.4557, allocations: 1.073 MB / 0.6093 GB, free: 11.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4557, allocations: 4 kB / 0.6093 GB, free: 11.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002472/0.4582, allocations: 0.6328 MB / 0.6099 GB, free: 10.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002261/0.4585, allocations: 143 kB / 0.61 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004836/0.4633, allocations: 3.285 MB / 0.6132 GB, free: 7.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4633, allocations: 0 / 0.6132 GB, free: 7.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.4649, allocations: 1.267 MB / 0.6145 GB, free: 6.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/0.4674, allocations: 414 kB / 0.6149 GB, free: 5.809 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009479/0.4769, allocations: 6.296 MB / 0.621 GB, free: 15.44 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001681/0.4786, allocations: 1.822 MB / 0.6228 GB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00236/0.481, allocations: 0.8629 MB / 0.6236 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004937/0.4815, allocations: 155.4 kB / 0.6238 GB, free: 12.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4815, allocations: 0 / 0.6238 GB, free: 12.55 MB / 394.7 MB Notification: Performance of Templates: time 0.04352/0.525, allocations: 25.08 MB / 0.6483 GB, free: 3.645 MB / 410.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)