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.0007986/0.0007987, 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.00566/0.005661, allocations: 169.3 kB / 16.26 MB, free: 6.648 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.382/1.382, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1756/0.1756, allocations: 9.116 MB / 300.5 MB, free: 2.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003704, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1169, allocations: 52.43 MB / 416.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2629/0.3798, allocations: 35.12 MB / 451.3 MB, free: 21.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0212/0.401, allocations: 8.143 MB / 459.4 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009478/0.4106, allocations: 128.1 kB / 459.5 MB, free: 16.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.4121, allocations: 306.6 kB / 459.8 MB, free: 16.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003302/0.4154, allocations: 0.8085 MB / 460.7 MB, free: 16.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.4173, allocations: 0.8941 MB / 461.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003105/0.4204, allocations: 2.441 MB / 464 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002744/0.4232, allocations: 2.277 MB / 466.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.4243, allocations: 0.7529 MB / 467 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.4256, allocations: 1.025 MB / 468 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.4258, allocations: 129.1 kB / 468.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.4268, allocations: 0.5748 MB / 468.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005566/0.4274, allocations: 0.7586 MB / 469.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009059/0.4283, allocations: 1.256 MB / 470.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002832/0.4311, allocations: 3.539 MB / 474.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.4311, allocations: 0 / 474.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4312, allocations: 0 / 474.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.686e-05/0.4312, allocations: 0 / 474.3 MB, free: 10.62 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.009985/0.4412, allocations: 3.6 MB / 477.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4413, allocations: 13.59 kB / 477.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009228/0.4422, allocations: 294.7 kB / 478.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001822/0.4441, allocations: 1.135 MB / 479.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.4443, allocations: 208.2 kB / 479.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004835/0.4447, allocations: 293.8 kB / 479.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009599/0.4544, allocations: 4.742 MB / 484.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.4545, allocations: 38.38 kB / 484.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.4548, allocations: 123.7 kB / 484.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006324/0.4554, allocations: 435.9 kB / 485.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008225/0.4637, allocations: 3.373 MB / 488.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.4913, allocations: 21.64 MB / 0.4982 GB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00596/0.4973, allocations: 1.926 MB / 0.5001 GB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.4988, allocations: 0.6925 MB / 0.5008 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007548/0.5064, allocations: 5.552 MB / 0.5062 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.5064, allocations: 43.56 kB / 0.5062 GB, free: 11.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.006e-06/0.5065, allocations: 0 / 0.5062 GB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02419/0.5307, allocations: 9.565 MB / 0.5156 GB, free: 2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.5308, allocations: 64.72 kB / 0.5156 GB, free: 1.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003032/0.5338, allocations: 1.814 MB / 0.5174 GB, free: 116 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.5339, allocations: 45.7 kB / 0.5174 GB, free: 64 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00164/0.5356, allocations: 1.732 MB / 0.5191 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/0.5361, allocations: 0.5321 MB / 0.5197 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004078/0.5365, allocations: 309.8 kB / 0.5199 GB, free: 13.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.5367, allocations: 357.9 kB / 0.5203 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/0.5385, allocations: 1.222 MB / 0.5215 GB, free: 11.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/0.5422, allocations: 3.41 MB / 0.5248 GB, free: 7.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006836/0.5491, allocations: 5.116 MB / 0.5298 GB, free: 1.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.412e-05/0.5492, allocations: 20 kB / 0.5298 GB, free: 1.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008625/0.5578, allocations: 4.816 MB / 0.5345 GB, free: 12.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.088e-05/0.5579, allocations: 44.94 kB / 0.5346 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.173e-05/0.558, allocations: 80 kB / 0.5347 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009057/0.5589, allocations: 372.6 kB / 0.535 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/0.5618, allocations: 0.8967 MB / 0.5359 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005298/0.5671, allocations: 3.952 MB / 0.5397 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/0.5697, allocations: 207.8 kB / 0.5399 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002954/0.57, allocations: 228 kB / 0.5402 GB, free: 6.434 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.001622/0.5716, allocations: 0.9314 MB / 0.5411 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.5719, allocations: 193.6 kB / 0.5413 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.5761, allocations: 2.599 MB / 0.5438 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5761, allocations: 12 kB / 0.5438 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.5761, allocations: 4 kB / 0.5438 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.5762, allocations: 11.97 kB / 0.5438 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.5871, allocations: 6.516 MB / 0.5502 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.5872, allocations: 4 kB / 0.5502 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.5883, allocations: 272.1 kB / 0.5504 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007014/0.589, allocations: 262.8 kB / 0.5507 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.473e-05/0.5891, allocations: 27.98 kB / 0.5507 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.593, allocations: 3.193 MB / 0.5538 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.593, allocations: 4 kB / 0.5538 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005356/0.5984, allocations: 3.911 MB / 0.5577 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006814/0.5991, allocations: 246.7 kB / 0.5579 GB, free: 3.875 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000209/0.5993, allocations: 24 kB / 0.5579 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008609/0.6002, allocations: 111.9 kB / 0.558 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.6004, allocations: 96.8 kB / 0.5581 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.361e-05/0.6005, allocations: 36 kB / 0.5582 GB, free: 3.613 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001655/0.6022, allocations: 1.088 MB / 0.5592 GB, free: 2.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6022, allocations: 0 / 0.5592 GB, free: 2.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002761/0.605, allocations: 0.6367 MB / 0.5598 GB, free: 1.898 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.0002715/0.6053, allocations: 137.9 kB / 0.56 GB, free: 1.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005539/0.6108, allocations: 3.304 MB / 0.5632 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.6108, allocations: 0 / 0.5632 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.6127, allocations: 1.276 MB / 0.5644 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.6156, allocations: 408.7 kB / 0.5648 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009491/0.6251, allocations: 6.294 MB / 0.571 GB, free: 6.395 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.6269, allocations: 1.833 MB / 0.5728 GB, free: 4.527 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002345/0.6293, allocations: 0.8629 MB / 0.5736 GB, free: 3.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005039/0.6298, allocations: 151.4 kB / 0.5738 GB, free: 3.516 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6298, allocations: 0 / 0.5738 GB, free: 3.516 MB / 446.1 MB Notification: Performance of Templates: time 0.2413/0.8711, 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)