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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001072/0.001072, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001376/0.001376, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1559/0.1559, allocations: 9.092 MB / 300.1 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 8 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1073, allocations: 52.42 MB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2005/0.3079, allocations: 37.84 MB / 453.3 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.3249, allocations: 9.335 MB / 462.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00637/0.3314, allocations: 163.8 kB / 462.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005989/0.3374, allocations: 1.876 MB / 464.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01645/0.3539, allocations: 5.592 MB / 470.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.3559, allocations: 171 kB / 470.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003974/0.3599, allocations: 1.777 MB / 472.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.3613, allocations: 1.011 MB / 473.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.3624, allocations: 0.8451 MB / 474 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.3638, allocations: 1.198 MB / 475.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005289/0.3643, allocations: 166.4 kB / 475.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001434/0.3658, allocations: 0.684 MB / 476.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.367, allocations: 1.277 MB / 477.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007601/0.3678, allocations: 0.7821 MB / 478.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005535/0.3733, allocations: 4.447 MB / 482.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3734, allocations: 1.125 kB / 482.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.3734, allocations: 3.938 kB / 482.6 MB, free: 6.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002547/0.3736, allocations: 0 / 482.6 MB, free: 6.922 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01131/0.3849, allocations: 3.886 MB / 486.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.385, allocations: 9.5 kB / 486.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009409/0.3944, allocations: 2.332 MB / 488.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004343/0.3988, allocations: 1.561 MB / 490.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.399, allocations: 194.6 kB / 490.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.4004, allocations: 252.5 kB / 490.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01684/0.4172, allocations: 9.79 MB / 0.4889 GB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.4174, allocations: 36.11 kB / 0.4889 GB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004262/0.4178, allocations: 120.1 kB / 0.489 GB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003811/0.4216, allocations: 2.301 MB / 0.4913 GB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01752/0.4392, allocations: 8.496 MB / 0.4996 GB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04572/0.4849, allocations: 30.7 MB / 0.5295 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006799/0.4918, allocations: 2.783 MB / 0.5323 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001968/0.4938, allocations: 2.036 MB / 0.5342 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.4938, allocations: 47.88 kB / 0.5343 GB, free: 14.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=181): time 4.528e-06/0.4938, allocations: 0 / 0.5343 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=203): time 0.02157/0.5154, allocations: 9.586 MB / 0.5437 GB, free: 4.754 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.5155, allocations: 77.39 kB / 0.5437 GB, free: 4.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004771/0.5203, allocations: 3.094 MB / 0.5467 GB, free: 1.555 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.5205, allocations: 57.64 kB / 0.5468 GB, free: 1.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/0.5223, allocations: 2.54 MB / 0.5493 GB, free: 14.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006841/0.523, allocations: 0.7478 MB / 0.55 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.5232, allocations: 96 kB / 0.5501 GB, free: 14.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003289/0.5235, allocations: 0.5089 MB / 0.5506 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.5263, allocations: 1.575 MB / 0.5521 GB, free: 11.97 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004636/0.5309, allocations: 4.341 MB / 0.5564 GB, free: 6.246 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004172/0.5351, allocations: 2.597 MB / 0.5589 GB, free: 3.656 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.5352, allocations: 28 kB / 0.5589 GB, free: 3.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01127/0.5465, allocations: 6.059 MB / 0.5649 GB, free: 13.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.632e-05/0.5466, allocations: 48.94 kB / 0.5649 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.5467, allocations: 99.94 kB / 0.565 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008853/0.5476, allocations: 388.6 kB / 0.5654 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003568/0.5512, allocations: 1.1 MB / 0.5664 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004359/0.5556, allocations: 3.491 MB / 0.5699 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003697/0.5593, allocations: 244 kB / 0.5701 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00062/0.5599, allocations: 296 kB / 0.5704 GB, free: 7.777 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 445 * 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 (603): * Single equations (assignments): 597 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00352/0.5634, allocations: 1.893 MB / 0.5722 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005175/0.564, allocations: 276.4 kB / 0.5725 GB, free: 5.602 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004936/0.5689, allocations: 2.818 MB / 0.5752 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001867/0.5691, allocations: 51.94 kB / 0.5753 GB, free: 2.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/0.5691, allocations: 8 kB / 0.5753 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.5692, allocations: 7.969 kB / 0.5753 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2194/0.7886, allocations: 7.632 MB / 0.5827 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.7887, allocations: 6.562 kB / 0.5828 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.7898, allocations: 299.6 kB / 0.583 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006511/0.7904, allocations: 253.7 kB / 0.5833 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.7906, allocations: 39.88 kB / 0.5833 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002899/0.7935, allocations: 2.811 MB / 0.5861 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.7935, allocations: 13.34 kB / 0.5861 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005482/0.799, allocations: 4.663 MB / 0.5906 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009776/0.8, allocations: 369.4 kB / 0.591 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/0.8004, allocations: 39.78 kB / 0.591 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.8015, allocations: 85.3 kB / 0.5911 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.8017, allocations: 133.2 kB / 0.5912 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.8018, allocations: 66.23 kB / 0.5913 GB, free: 118.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003388/0.8052, allocations: 1.984 MB / 0.5932 GB, free: 117.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8052, allocations: 0 / 0.5932 GB, free: 117.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005232/0.8105, allocations: 0.8461 MB / 0.5941 GB, free: 117.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (162): * Single equations (assignments): 156 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004366/0.8109, allocations: 179.4 kB / 0.5942 GB, free: 117.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006653/0.8176, allocations: 3.925 MB / 0.5981 GB, free: 115.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.8176, allocations: 3.25 kB / 0.5981 GB, free: 115.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.8196, allocations: 1.304 MB / 0.5993 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/0.8219, allocations: 418.2 kB / 0.5997 GB, free: 115.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/0.8379, allocations: 9.717 MB / 0.6092 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005611/0.8436, allocations: 3.101 MB / 0.6123 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004073/0.8477, allocations: 1.489 MB / 0.6137 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007202/0.8485, allocations: 217.4 kB / 0.6139 GB, free: 108.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.8485, allocations: 0 / 0.6139 GB, free: 108.5 MB / 446.1 MB Notification: Performance of Templates: time 0.05537/0.9039, allocations: 28.86 MB / 0.6421 GB, free: 94 MB / 446.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)