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.001135/0.001136, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001124/0.001124, allocations: 193.6 kB / 16.14 MB, free: 6.727 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.395/1.395, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1944/0.1944, allocations: 9.115 MB / 299.1 MB, free: 1.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 63.89 kB / 361.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1122, allocations: 51.44 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2363/0.3486, allocations: 36.18 MB / 448.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.3668, allocations: 8.17 MB / 457.1 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008864/0.3757, allocations: 133.4 kB / 457.2 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.3772, allocations: 312 kB / 457.5 MB, free: 16.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002553/0.3798, allocations: 0.795 MB / 458.3 MB, free: 16.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.3812, allocations: 0.9009 MB / 459.2 MB, free: 16.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.3833, allocations: 2.445 MB / 461.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002152/0.3855, allocations: 2.425 MB / 464.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007987/0.3863, allocations: 0.9107 MB / 465 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009957/0.3873, allocations: 1.217 MB / 466.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.3876, allocations: 197.1 kB / 466.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009295/0.3885, allocations: 0.64 MB / 467 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006407/0.3891, allocations: 0.8667 MB / 467.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009143/0.3901, allocations: 1.366 MB / 469.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.3929, allocations: 3.678 MB / 472.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3929, allocations: 3.562 kB / 472.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3929, allocations: 0 / 472.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.555e-05/0.393, allocations: 0 / 472.9 MB, free: 9.918 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.01108/0.4041, allocations: 4.167 MB / 477.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.4042, allocations: 10.59 kB / 477.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007941/0.405, allocations: 297.2 kB / 477.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.4068, allocations: 1.121 MB / 478.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.407, allocations: 212.3 kB / 478.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004381/0.4075, allocations: 297.6 kB / 479 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009985/0.4175, allocations: 4.739 MB / 483.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001354/0.4176, allocations: 38.59 kB / 483.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.4179, allocations: 136.2 kB / 483.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006654/0.4186, allocations: 427.6 kB / 484.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008076/0.4267, allocations: 3.369 MB / 487.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02578/0.4525, allocations: 21.63 MB / 0.4974 GB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005564/0.4581, allocations: 1.923 MB / 0.4993 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.4593, allocations: 0.6967 MB / 0.5 GB, free: 356 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007526/0.4669, allocations: 5.535 MB / 0.5054 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.467, allocations: 51.48 kB / 0.5054 GB, free: 10.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.326e-06/0.467, allocations: 4 kB / 0.5054 GB, free: 10.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02462/0.4916, allocations: 9.553 MB / 0.5148 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4917, allocations: 72.7 kB / 0.5148 GB, free: 496 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00274/0.4945, allocations: 1.806 MB / 0.5166 GB, free: 14.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.4946, allocations: 49.7 kB / 0.5166 GB, free: 14.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.4958, allocations: 1.736 MB / 0.5183 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006089/0.4964, allocations: 0.5281 MB / 0.5188 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.4974, allocations: 0.7386 MB / 0.5196 GB, free: 11.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.4976, allocations: 365.9 kB / 0.5199 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/0.4994, allocations: 1.218 MB / 0.5211 GB, free: 10 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003459/0.5029, allocations: 3.406 MB / 0.5244 GB, free: 5.512 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006037/0.509, allocations: 5.124 MB / 0.5294 GB, free: 15.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.512e-05/0.5091, allocations: 20 kB / 0.5295 GB, free: 15.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008615/0.5177, allocations: 4.821 MB / 0.5342 GB, free: 10.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/0.5178, allocations: 41.25 kB / 0.5342 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.73e-05/0.5178, allocations: 76 kB / 0.5343 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009124/0.5188, allocations: 364.6 kB / 0.5346 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/0.5216, allocations: 0.897 MB / 0.5355 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005548/0.5272, allocations: 3.949 MB / 0.5394 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/0.5305, allocations: 207.6 kB / 0.5396 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004127/0.531, allocations: 236 kB / 0.5398 GB, free: 4.562 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.001725/0.5327, allocations: 0.9276 MB / 0.5407 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000349/0.5331, allocations: 193.5 kB / 0.5409 GB, free: 3.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.5375, allocations: 2.603 MB / 0.5434 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.5376, allocations: 19.98 kB / 0.5434 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.5376, allocations: 4 kB / 0.5434 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.5376, allocations: 3.984 kB / 0.5434 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.5503, allocations: 6.493 MB / 0.5498 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.5504, allocations: 4 kB / 0.5498 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.5515, allocations: 267.6 kB / 0.55 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007401/0.5522, allocations: 256.6 kB / 0.5503 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.767e-05/0.5523, allocations: 36 kB / 0.5503 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/0.5563, allocations: 3.186 MB / 0.5534 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/0.5563, allocations: 4 kB / 0.5534 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005948/0.5622, allocations: 3.915 MB / 0.5573 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008233/0.5631, allocations: 238.7 kB / 0.5575 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000587/0.5637, allocations: 35.98 kB / 0.5575 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009697/0.5647, allocations: 99.8 kB / 0.5576 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.5649, allocations: 96.81 kB / 0.5577 GB, free: 1.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.524e-05/0.565, allocations: 39.98 kB / 0.5577 GB, free: 1.781 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001808/0.5668, allocations: 1.092 MB / 0.5588 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5668, allocations: 0 / 0.5588 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003697/0.5705, allocations: 0.6367 MB / 0.5594 GB, free: 64 kB / 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.0003638/0.5709, allocations: 139.2 kB / 0.5596 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005939/0.5769, allocations: 3.304 MB / 0.5628 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/0.5769, allocations: 4 kB / 0.5628 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.5788, allocations: 1.267 MB / 0.564 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.5811, allocations: 408.6 kB / 0.5644 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.5926, allocations: 6.213 MB / 0.5705 GB, free: 4.648 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/0.5945, allocations: 1.829 MB / 0.5723 GB, free: 2.777 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002738/0.5972, allocations: 0.8629 MB / 0.5731 GB, free: 1.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005347/0.5978, allocations: 155.4 kB / 0.5733 GB, free: 1.758 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5978, allocations: 0 / 0.5733 GB, free: 1.758 MB / 446.1 MB Notification: Performance of Templates: time 0.272/0.8698, allocations: 25.43 MB / 0.5981 GB, free: 124 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)