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.0009941/0.000994, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007201/0.007201, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1884/0.1884, allocations: 9.107 MB / 300.5 MB, free: 2.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004695, allocations: 15.92 kB / 363.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1609, allocations: 52.43 MB / 416.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2858/0.4468, allocations: 35.13 MB / 451.3 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02321/0.4701, allocations: 8.152 MB / 459.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008521/0.4786, allocations: 128.5 kB / 459.6 MB, free: 16.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.4799, allocations: 310 kB / 459.9 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003069/0.4829, allocations: 0.8056 MB / 460.7 MB, free: 16.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.4846, allocations: 0.8913 MB / 461.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002513/0.4871, allocations: 2.444 MB / 464 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00213/0.4893, allocations: 2.274 MB / 466.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007605/0.49, allocations: 0.752 MB / 467 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009884/0.491, allocations: 1.024 MB / 468 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.4912, allocations: 127 kB / 468.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008997/0.4921, allocations: 0.5775 MB / 468.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004895/0.4926, allocations: 0.7623 MB / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007761/0.4934, allocations: 1.255 MB / 470.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002567/0.496, allocations: 3.537 MB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/0.496, allocations: 4 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.496, allocations: 0 / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.691e-05/0.4961, allocations: 3.031 kB / 474.3 MB, free: 10.63 MB / 350.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.01046/0.5066, allocations: 3.594 MB / 477.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.5066, allocations: 9.25 kB / 477.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000719/0.5074, allocations: 301.6 kB / 478.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.5091, allocations: 1.128 MB / 479.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.5093, allocations: 216.4 kB / 479.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004386/0.5098, allocations: 290.6 kB / 479.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008603/0.5184, allocations: 4.739 MB / 484.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.5185, allocations: 38.31 kB / 484.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000247/0.5188, allocations: 135.7 kB / 484.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000566/0.5193, allocations: 427.7 kB / 485.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01/0.5294, allocations: 3.37 MB / 488.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02857/0.558, allocations: 21.64 MB / 0.4982 GB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005535/0.5636, allocations: 1.926 MB / 0.5001 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.5648, allocations: 0.6972 MB / 0.5008 GB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008049/0.5728, allocations: 5.547 MB / 0.5062 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.5729, allocations: 43.56 kB / 0.5062 GB, free: 11.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.326e-06/0.5729, allocations: 4 kB / 0.5062 GB, free: 11.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02542/0.5983, allocations: 9.564 MB / 0.5156 GB, free: 1.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.5984, allocations: 68.72 kB / 0.5156 GB, free: 1.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/0.6023, allocations: 1.802 MB / 0.5174 GB, free: 100 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.6024, allocations: 49.7 kB / 0.5174 GB, free: 44 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.6041, allocations: 1.735 MB / 0.5191 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008257/0.605, allocations: 0.5322 MB / 0.5197 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005761/0.6056, allocations: 305.8 kB / 0.5199 GB, free: 13.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.6058, allocations: 357.9 kB / 0.5203 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.608, allocations: 1.222 MB / 0.5215 GB, free: 11.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003917/0.612, allocations: 3.417 MB / 0.5248 GB, free: 7.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007112/0.6191, allocations: 5.116 MB / 0.5298 GB, free: 1.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.09e-05/0.6192, allocations: 24 kB / 0.5298 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009595/0.6288, allocations: 4.813 MB / 0.5345 GB, free: 12.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.469e-05/0.6289, allocations: 40 kB / 0.5346 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001202/0.629, allocations: 76 kB / 0.5347 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.63, allocations: 373.2 kB / 0.535 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/0.633, allocations: 0.8928 MB / 0.5359 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005487/0.6385, allocations: 3.954 MB / 0.5397 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002901/0.6414, allocations: 215.7 kB / 0.5399 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005276/0.642, allocations: 232 kB / 0.5402 GB, free: 6.406 MB / 414.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.002094/0.6441, allocations: 0.9276 MB / 0.5411 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004503/0.6445, allocations: 193.5 kB / 0.5413 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004674/0.6492, allocations: 2.603 MB / 0.5438 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.6492, allocations: 16 kB / 0.5438 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.6493, allocations: 0 / 0.5438 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/0.6493, allocations: 11.97 kB / 0.5438 GB, free: 2.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.6626, allocations: 6.512 MB / 0.5502 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.6626, allocations: 4 kB / 0.5502 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.6638, allocations: 267.6 kB / 0.5504 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/0.6646, allocations: 265 kB / 0.5507 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.6647, allocations: 28 kB / 0.5507 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/0.669, allocations: 3.195 MB / 0.5538 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.669, allocations: 4 kB / 0.5538 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005889/0.6749, allocations: 3.911 MB / 0.5577 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007027/0.6756, allocations: 242.7 kB / 0.5579 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005967/0.6762, allocations: 24 kB / 0.5579 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.6776, allocations: 115.8 kB / 0.558 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002911/0.6779, allocations: 92.81 kB / 0.5581 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.678, allocations: 36 kB / 0.5582 GB, free: 3.594 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002998/0.681, allocations: 1.088 MB / 0.5592 GB, free: 2.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.681, allocations: 0 / 0.5592 GB, free: 2.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004868/0.6859, allocations: 0.6367 MB / 0.5598 GB, free: 1.879 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.000567/0.6865, allocations: 141.9 kB / 0.56 GB, free: 1.734 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007621/0.6941, allocations: 3.3 MB / 0.5632 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.6941, allocations: 0 / 0.5632 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00232/0.6965, allocations: 1.277 MB / 0.5644 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004186/0.7007, allocations: 411.1 kB / 0.5648 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.7126, allocations: 6.298 MB / 0.571 GB, free: 6.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.7151, allocations: 1.829 MB / 0.5728 GB, free: 4.508 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002975/0.7181, allocations: 0.8629 MB / 0.5736 GB, free: 3.641 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006728/0.7188, allocations: 155.4 kB / 0.5738 GB, free: 3.492 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7188, allocations: 0 / 0.5738 GB, free: 3.492 MB / 446.1 MB Notification: Performance of Templates: time 0.2655/0.9843, allocations: 25.07 MB / 0.5982 GB, free: 121.3 MB / 446.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)