Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 106.3 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04064/0.04064, allocations: 8.935 MB / 349 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 56.52 kB / 411.1 MB, free: 57.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.102, allocations: 51.4 MB / 462.5 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.1983/0.3003, allocations: 36.18 MB / 498.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01638/0.3167, allocations: 8.18 MB / 0.495 GB, free: 4.375 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006414/0.3232, allocations: 135.2 kB / 0.4951 GB, free: 4.355 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009679/0.3242, allocations: 306.3 kB / 0.4954 GB, free: 4.223 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002227/0.3265, allocations: 0.8087 MB / 0.4962 GB, free: 3.812 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.3279, allocations: 0.8963 MB / 0.4971 GB, free: 3.301 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.3302, allocations: 2.477 MB / 0.4995 GB, free: 2.219 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003032/0.3333, allocations: 2.413 MB / 0.5019 GB, free: 0.9961 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.3344, allocations: 0.9169 MB / 0.5028 GB, free: 484 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.3356, allocations: 1.216 MB / 0.5039 GB, free: 15.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000332/0.3359, allocations: 201.8 kB / 0.5041 GB, free: 15.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001244/0.3372, allocations: 0.6348 MB / 0.5047 GB, free: 15.42 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007821/0.338, allocations: 0.8686 MB / 0.5056 GB, free: 14.83 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.3392, allocations: 1.364 MB / 0.5069 GB, free: 13.86 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002983/0.3422, allocations: 3.678 MB / 0.5105 GB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3422, allocations: 0 / 0.5105 GB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.3422, allocations: 0 / 0.5105 GB, free: 11.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.875e-05/0.3423, allocations: 0 / 0.5105 GB, free: 11.23 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.008748/0.351, allocations: 4.166 MB / 0.5146 GB, free: 7.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3511, allocations: 12.03 kB / 0.5146 GB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005064/0.3516, allocations: 293.3 kB / 0.5149 GB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.3535, allocations: 1.139 MB / 0.516 GB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3537, allocations: 210 kB / 0.5162 GB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003604/0.354, allocations: 295.8 kB / 0.5165 GB, free: 5.797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006943/0.361, allocations: 4.736 MB / 0.5211 GB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.711e-05/0.3611, allocations: 35.66 kB / 0.5211 GB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/0.3613, allocations: 128 kB / 0.5213 GB, free: 440 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004544/0.3618, allocations: 440.2 kB / 0.5217 GB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006088/0.3679, allocations: 3.373 MB / 0.525 GB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0196/0.3875, allocations: 21.62 MB / 0.5461 GB, free: 6.281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004377/0.3919, allocations: 1.923 MB / 0.548 GB, free: 4.238 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009786/0.3929, allocations: 0.6912 MB / 0.5486 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006508/0.3994, allocations: 5.556 MB / 0.5541 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.3995, allocations: 43.56 kB / 0.5541 GB, free: 13.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 2.605e-06/0.3995, allocations: 0 / 0.5541 GB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.02113/0.4206, allocations: 9.554 MB / 0.5634 GB, free: 3.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.4207, allocations: 64.72 kB / 0.5635 GB, free: 3.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.4228, allocations: 1.81 MB / 0.5653 GB, free: 1.867 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.5e-05/0.4229, allocations: 45.7 kB / 0.5653 GB, free: 1.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009829/0.4239, allocations: 1.736 MB / 0.567 GB, free: 56 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004157/0.4243, allocations: 0.5282 MB / 0.5675 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008877/0.4252, allocations: 0.7425 MB / 0.5682 GB, free: 14.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4254, allocations: 361.9 kB / 0.5686 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001651/0.427, allocations: 1.218 MB / 0.5698 GB, free: 13.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002957/0.43, allocations: 3.417 MB / 0.5731 GB, free: 8.691 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00499/0.435, allocations: 5.12 MB / 0.5781 GB, free: 2.488 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.844e-05/0.435, allocations: 24 kB / 0.5781 GB, free: 2.465 MB / 394.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.00684/0.4419, allocations: 4.809 MB / 0.5828 GB, free: 13.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/0.442, allocations: 40 kB / 0.5829 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.915e-05/0.442, allocations: 79.98 kB / 0.5829 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008004/0.4429, allocations: 369.4 kB / 0.5833 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002452/0.4453, allocations: 0.889 MB / 0.5842 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004731/0.4501, allocations: 3.959 MB / 0.588 GB, free: 8.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002534/0.4526, allocations: 211.7 kB / 0.5882 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.453, allocations: 232 kB / 0.5885 GB, free: 7.746 MB / 410.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.001795/0.4548, allocations: 0.9237 MB / 0.5894 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003754/0.4552, allocations: 189.6 kB / 0.5895 GB, free: 6.625 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/0.4592, allocations: 2.599 MB / 0.5921 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.4592, allocations: 12 kB / 0.5921 GB, free: 3.992 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.4592, allocations: 4 kB / 0.5921 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4592, allocations: 7.969 kB / 0.5921 GB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.4705, allocations: 6.497 MB / 0.5984 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.4705, allocations: 4 kB / 0.5984 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.4716, allocations: 275.5 kB / 0.5987 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006603/0.4722, allocations: 265 kB / 0.599 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/0.4723, allocations: 32 kB / 0.599 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003583/0.4759, allocations: 3.18 MB / 0.6021 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4759, allocations: 7.938 kB / 0.6021 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/0.497, allocations: 15.22 MB / 0.617 GB, free: 9.898 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.4974, allocations: 246.7 kB / 0.6172 GB, free: 9.637 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.4976, allocations: 24 kB / 0.6172 GB, free: 9.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007913/0.4984, allocations: 111.9 kB / 0.6173 GB, free: 9.504 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.4986, allocations: 100.7 kB / 0.6174 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.4987, allocations: 36 kB / 0.6175 GB, free: 9.371 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001388/0.5001, allocations: 1.085 MB / 0.6185 GB, free: 8.297 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5001, allocations: 0 / 0.6185 GB, free: 8.297 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002726/0.5028, allocations: 0.7969 MB / 0.6193 GB, free: 7.5 MB / 442.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.0002068/0.5031, allocations: 143 kB / 0.6194 GB, free: 7.352 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004671/0.5077, allocations: 3.307 MB / 0.6227 GB, free: 4.043 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5078, allocations: 0 / 0.6227 GB, free: 4.043 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.5094, allocations: 1.273 MB / 0.6239 GB, free: 2.754 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/0.5113, allocations: 407.3 kB / 0.6243 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.5225, allocations: 7.291 MB / 0.6314 GB, free: 10.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001672/0.5242, allocations: 1.881 MB / 0.6333 GB, free: 9.039 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002273/0.5265, allocations: 0.8629 MB / 0.6341 GB, free: 8.172 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004898/0.527, allocations: 159.4 kB / 0.6342 GB, free: 8.016 MB / 458.7 MB Notification: Performance of SimCode: time 8.12e-07/0.527, allocations: 0 / 0.6342 GB, free: 8.016 MB / 458.7 MB Notification: Performance of Templates: time 0.2264/0.7534, allocations: 28.97 MB / 0.6625 GB, free: 147.1 MB / 458.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)