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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005902/0.005902, allocations: 100.6 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 196.7 kB / 16.68 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04684/0.04684, allocations: 9.138 MB / 299.7 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 59.91 kB / 414.6 MB, free: 21.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 51.45 MB / 466.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01494/0.138, allocations: 13.79 MB / 479.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1499, allocations: 4.027 MB / 483.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002628/0.1526, allocations: 55.88 kB / 484 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1537, allocations: 388.7 kB / 484.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.1562, allocations: 0.9283 MB / 485.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.1579, allocations: 0.9715 MB / 486.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003055/0.161, allocations: 2.238 MB / 488.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003223/0.1642, allocations: 2.758 MB / 491.2 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001462/0.1657, allocations: 1.028 MB / 492.3 MB, free: 7.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.1681, allocations: 1.233 MB / 493.5 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004474/0.1686, allocations: 308 kB / 493.8 MB, free: 5.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.1699, allocations: 0.7141 MB / 494.5 MB, free: 5.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000942/0.1708, allocations: 0.9623 MB / 495.5 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.1724, allocations: 1.493 MB / 497 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004093/0.1765, allocations: 3.886 MB / 0.4891 GB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1765, allocations: 0 / 0.4891 GB, free: 14.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1766, allocations: 0 / 0.4891 GB, free: 14.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.98e-05/0.1766, allocations: 3.938 kB / 0.4891 GB, free: 14.82 MB / 382.1 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.009369/0.186, allocations: 4.16 MB / 0.4932 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.1861, allocations: 8.031 kB / 0.4932 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000581/0.1866, allocations: 301.1 kB / 0.4935 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.1886, allocations: 1.139 MB / 0.4946 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.1888, allocations: 214 kB / 0.4948 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004426/0.1892, allocations: 291.8 kB / 0.4951 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/0.1992, allocations: 4.74 MB / 0.4997 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.1994, allocations: 39.61 kB / 0.4997 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002894/0.1997, allocations: 131.9 kB / 0.4999 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005739/0.2003, allocations: 428.2 kB / 0.5003 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2853/0.4856, allocations: 3.37 MB / 0.5036 GB, free: 42.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02546/0.5111, allocations: 21.55 MB / 0.5246 GB, free: 26.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005082/0.5162, allocations: 1.922 MB / 0.5265 GB, free: 25.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.5173, allocations: 0.6878 MB / 0.5271 GB, free: 25.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00676/0.5241, allocations: 5.547 MB / 0.5326 GB, free: 21.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.5241, allocations: 47.41 kB / 0.5326 GB, free: 21.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.755e-06/0.5241, allocations: 0 / 0.5326 GB, free: 21.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.0208/0.5449, allocations: 9.56 MB / 0.5419 GB, free: 16.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.545, allocations: 64.47 kB / 0.542 GB, free: 15.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/0.5474, allocations: 1.807 MB / 0.5438 GB, free: 14.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.5477, allocations: 53.69 kB / 0.5438 GB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007337/0.5484, allocations: 1.728 MB / 0.5455 GB, free: 12.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004422/0.5489, allocations: 0.5314 MB / 0.546 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008077/0.5497, allocations: 0.7424 MB / 0.5468 GB, free: 11.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.5498, allocations: 361.9 kB / 0.5471 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.5512, allocations: 1.214 MB / 0.5483 GB, free: 9.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.5533, allocations: 3.416 MB / 0.5516 GB, free: 5.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/0.5578, allocations: 5.12 MB / 0.5566 GB, free: 15.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.97e-05/0.5578, allocations: 20 kB / 0.5566 GB, free: 15.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.00826/0.5661, allocations: 4.818 MB / 0.5613 GB, free: 10.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.457e-05/0.5662, allocations: 40 kB / 0.5614 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-05/0.5663, allocations: 76 kB / 0.5615 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009524/0.5672, allocations: 373.2 kB / 0.5618 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002875/0.5701, allocations: 0.8948 MB / 0.5627 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005675/0.5758, allocations: 4.301 MB / 0.5669 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/0.5789, allocations: 215.6 kB / 0.5671 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004154/0.5793, allocations: 232 kB / 0.5673 GB, free: 4.031 MB / 398.1 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.00166/0.581, allocations: 0.9241 MB / 0.5682 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.5813, allocations: 193.6 kB / 0.5684 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004015/0.5853, allocations: 2.599 MB / 0.5709 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.5854, allocations: 12 kB / 0.5709 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.5854, allocations: 7.812 kB / 0.571 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.5854, allocations: 7.969 kB / 0.571 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.5967, allocations: 6.431 MB / 0.5772 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.5967, allocations: 4 kB / 0.5772 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.5978, allocations: 271.6 kB / 0.5775 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006803/0.5985, allocations: 257.1 kB / 0.5778 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.711e-05/0.5986, allocations: 27.94 kB / 0.5778 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/0.6026, allocations: 3.454 MB / 0.5812 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.425e-06/0.6026, allocations: 7.984 kB / 0.5812 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005314/0.6079, allocations: 3.902 MB / 0.585 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006425/0.6086, allocations: 243.6 kB / 0.5852 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.6088, allocations: 35.92 kB / 0.5852 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008375/0.6096, allocations: 103.9 kB / 0.5853 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.6099, allocations: 96.75 kB / 0.5854 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.523e-05/0.61, allocations: 39.98 kB / 0.5855 GB, free: 1.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.612, allocations: 1.085 MB / 0.5865 GB, free: 36 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.612, allocations: 0 / 0.5865 GB, free: 36 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003955/0.616, allocations: 0.6368 MB / 0.5871 GB, free: 15.39 MB / 430.1 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.0003032/0.6163, allocations: 135.1 kB / 0.5873 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005393/0.6217, allocations: 3.323 MB / 0.5905 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.6218, allocations: 0 / 0.5905 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.6235, allocations: 1.28 MB / 0.5918 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.6254, allocations: 442 kB / 0.5922 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009131/0.6346, allocations: 4.989 MB / 0.5971 GB, free: 5.184 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002086/0.6367, allocations: 1.822 MB / 0.5988 GB, free: 3.324 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002769/0.6395, allocations: 0.8628 MB / 0.5997 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005869/0.6401, allocations: 155.4 kB / 0.5998 GB, free: 2.305 MB / 430.1 MB Notification: Performance of SimCode: time 3.126e-06/0.6401, allocations: 0 / 0.5998 GB, free: 2.305 MB / 430.1 MB Notification: Performance of Templates: time 0.0541/0.6942, allocations: 27.52 MB / 0.6267 GB, free: 6.863 MB / 462.1 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)