Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0053/0.0053, allocations: 94.06 kB / 15.73 MB, free: 6.051 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.001248/0.001248, allocations: 195.2 kB / 16.68 MB, free: 5.973 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1501/0.1501, allocations: 9.11 MB / 299.6 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 59.91 kB / 414.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2583, allocations: 51.44 MB / 466.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01181/0.2702, allocations: 10.68 MB / 476.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006236/0.2765, allocations: 2.952 MB / 479.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.2777, allocations: 41.75 kB / 479.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009019/0.2786, allocations: 448.7 kB / 480.2 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003112/0.2818, allocations: 1.663 MB / 481.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.2822, allocations: 176 kB / 482 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003538/0.2858, allocations: 3.121 MB / 485.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.2873, allocations: 1.14 MB / 486.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.2889, allocations: 1.13 MB / 487.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.2905, allocations: 1.616 MB / 489 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004826/0.291, allocations: 294.8 kB / 489.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.2927, allocations: 0.8782 MB / 490.2 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.2938, allocations: 1.513 MB / 491.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.2951, allocations: 1.952 MB / 493.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005916/0.3011, allocations: 6.108 MB / 499.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3011, allocations: 0 / 499.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3011, allocations: 4 kB / 499.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.3012, allocations: 0 / 499.8 MB, free: 10.35 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.009034/0.3103, allocations: 4.674 MB / 0.4926 GB, free: 5.598 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.3103, allocations: 12.03 kB / 0.4926 GB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006723/0.317, allocations: 1.925 MB / 0.4945 GB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.3197, allocations: 1.601 MB / 0.4961 GB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3198, allocations: 189.1 kB / 0.4963 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004504/0.3203, allocations: 255.7 kB / 0.4965 GB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01534/0.3357, allocations: 9.788 MB / 0.5061 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.203e-05/0.3358, allocations: 31.7 kB / 0.5061 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003485/0.3361, allocations: 119.8 kB / 0.5062 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003686/0.3398, allocations: 2.299 MB / 0.5085 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/0.3575, allocations: 8.482 MB / 0.5167 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04392/0.4015, allocations: 30.62 MB / 0.5466 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007182/0.4087, allocations: 2.799 MB / 0.5494 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002022/0.4108, allocations: 1.044 MB / 0.5504 GB, free: 9.113 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00994/0.4208, allocations: 5.855 MB / 0.5561 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.4209, allocations: 47.81 kB / 0.5562 GB, free: 2.715 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 7.284e-06/0.4209, allocations: 0 / 0.5562 GB, free: 2.715 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01741/0.4383, allocations: 8.295 MB / 0.5643 GB, free: 10.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.4384, allocations: 68.72 kB / 0.5643 GB, free: 10.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005244/0.4437, allocations: 3.195 MB / 0.5674 GB, free: 7.055 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.4438, allocations: 49.7 kB / 0.5675 GB, free: 7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.4459, allocations: 2.703 MB / 0.5701 GB, free: 4.273 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006521/0.4466, allocations: 0.7131 MB / 0.5708 GB, free: 3.555 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.448, allocations: 0.9926 MB / 0.5718 GB, free: 2.551 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.598e-05/0.4481, allocations: 309.1 kB / 0.5721 GB, free: 2.246 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002576/0.4507, allocations: 1.563 MB / 0.5736 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004266/0.455, allocations: 4.357 MB / 0.5779 GB, free: 10.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008113/0.4631, allocations: 6.385 MB / 0.5841 GB, free: 3.176 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/0.4633, allocations: 28 kB / 0.5841 GB, free: 3.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.2761/0.7394, allocations: 6.039 MB / 0.59 GB, free: 106 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.754e-05/0.7396, allocations: 48.06 kB / 0.5901 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/0.7397, allocations: 97.5 kB / 0.5902 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009024/0.7407, allocations: 348.2 kB / 0.5905 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003878/0.7445, allocations: 1.094 MB / 0.5916 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004801/0.7494, allocations: 3.697 MB / 0.5952 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004491/0.7539, allocations: 253.3 kB / 0.5954 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009124/0.7548, allocations: 297.8 kB / 0.5957 GB, free: 103.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004181/0.759, allocations: 1.887 MB / 0.5975 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005333/0.7595, allocations: 287.2 kB / 0.5978 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00419/0.7637, allocations: 2.421 MB / 0.6002 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00017/0.7639, allocations: 45.2 kB / 0.6002 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.764, allocations: 5.844 kB / 0.6002 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.764, allocations: 7.969 kB / 0.6002 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.7747, allocations: 6.851 MB / 0.6069 GB, free: 99.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.7747, allocations: 4.312 kB / 0.6069 GB, free: 99.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009609/0.7757, allocations: 263.2 kB / 0.6072 GB, free: 99.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005457/0.7762, allocations: 220.2 kB / 0.6074 GB, free: 99.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.82e-05/0.7763, allocations: 37.28 kB / 0.6074 GB, free: 99.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002694/0.779, allocations: 2.941 MB / 0.6103 GB, free: 97.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7791, allocations: 12.69 kB / 0.6103 GB, free: 97.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004935/0.784, allocations: 3.752 MB / 0.614 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006331/0.7846, allocations: 363.3 kB / 0.6143 GB, free: 95.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.7849, allocations: 30.75 kB / 0.6144 GB, free: 95.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009166/0.7859, allocations: 85.66 kB / 0.6144 GB, free: 95.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.786, allocations: 106.2 kB / 0.6145 GB, free: 95.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.7862, allocations: 55.61 kB / 0.6146 GB, free: 95.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002794/0.789, allocations: 2.034 MB / 0.6166 GB, free: 95.05 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.789, allocations: 0 / 0.6166 GB, free: 95.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003916/0.7929, allocations: 0.8429 MB / 0.6174 GB, free: 94.96 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003559/0.7933, allocations: 167.8 kB / 0.6176 GB, free: 94.83 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005165/0.7984, allocations: 3.853 MB / 0.6213 GB, free: 93.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.7985, allocations: 0 / 0.6213 GB, free: 93.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.7999, allocations: 1.198 MB / 0.6225 GB, free: 93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.8017, allocations: 466.5 kB / 0.6229 GB, free: 92.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.8141, allocations: 7.987 MB / 0.6307 GB, free: 86.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003075/0.8173, allocations: 3.005 MB / 0.6337 GB, free: 83.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003225/0.8205, allocations: 1.432 MB / 0.6351 GB, free: 82.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006549/0.8212, allocations: 211.4 kB / 0.6353 GB, free: 81.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/0.8212, allocations: 0 / 0.6353 GB, free: 81.95 MB / 462.1 MB Notification: Performance of Templates: time 0.04456/0.8658, allocations: 27.7 MB / 0.6623 GB, free: 54.47 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)