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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 171.5 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.3 MB / 240.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008325/0.0008327, allocations: 109.7 kB / 291.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04212/0.04212, allocations: 8.951 MB / 351.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003533, allocations: 8 kB / 414.4 MB, free: 56.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.08928, allocations: 52.39 MB / 466.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.4224, allocations: 96.52 MB / 0.5501 GB, free: 5.094 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/0.4227, allocations: 87.06 kB / 0.5502 GB, free: 5.055 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5051/0.9278, allocations: 108.3 MB / 0.656 GB, free: 100.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.9278, allocations: 0 / 0.656 GB, free: 100.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001887/0.928, allocations: 93.06 kB / 0.6561 GB, free: 100.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.01707/0.9451, allocations: 4.795 MB / 0.6608 GB, free: 98.72 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.9452, allocations: 10.28 kB / 0.6608 GB, free: 98.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01783/0.963, allocations: 3.711 MB / 0.6644 GB, free: 98.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008692/0.9717, allocations: 2.881 MB / 0.6672 GB, free: 97.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006111/0.9724, allocations: 398.3 kB / 0.6676 GB, free: 97.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00339/0.9758, allocations: 0.5145 MB / 0.6681 GB, free: 97.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03191/1.008, allocations: 14.09 MB / 0.6818 GB, free: 94.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002275/1.008, allocations: 69.34 kB / 0.6819 GB, free: 94.57 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001299/1.009, allocations: 258.8 kB / 0.6822 GB, free: 94.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001827/1.011, allocations: 1.593 MB / 0.6837 GB, free: 94.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02096/1.032, allocations: 12.31 MB / 0.6957 GB, free: 94.42 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06078/1.093, allocations: 57.76 MB / 0.7521 GB, free: 51.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006386/1.099, allocations: 3.885 MB / 0.7559 GB, free: 49.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/1.101, allocations: 1.349 MB / 0.7573 GB, free: 48.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008907/1.11, allocations: 6.813 MB / 0.7639 GB, free: 44.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/1.11, allocations: 58.06 kB / 0.764 GB, free: 44.27 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 5.571e-06/1.11, allocations: 4 kB / 0.764 GB, free: 44.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.01829/1.129, allocations: 11.62 MB / 0.7753 GB, free: 34.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/1.129, allocations: 157.8 kB / 0.7755 GB, free: 34.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006449/1.135, allocations: 5.314 MB / 0.7807 GB, free: 29.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003542/1.135, allocations: 49.7 kB / 0.7807 GB, free: 29.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/1.137, allocations: 4.094 MB / 0.7847 GB, free: 25.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000813/1.138, allocations: 0.8945 MB / 0.7856 GB, free: 25.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002798/1.138, allocations: 160 kB / 0.7857 GB, free: 24.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003361/1.139, allocations: 0.6604 MB / 0.7864 GB, free: 24.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003284/1.142, allocations: 2.449 MB / 0.7888 GB, free: 22.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005035/1.147, allocations: 7.59 MB / 0.7962 GB, free: 12.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/1.157, allocations: 10.92 MB / 0.8068 GB, free: 15.78 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002783/1.158, allocations: 56 kB / 0.8069 GB, free: 15.72 MB / 474.7 MB Notification: Performance of matching and sorting (n=1076) (initialization): time 0.02132/1.179, allocations: 9.856 MB / 0.8165 GB, free: 6.945 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002786/1.179, allocations: 80 kB / 0.8166 GB, free: 6.867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000403/1.18, allocations: 184 kB / 0.8168 GB, free: 6.688 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/1.181, allocations: 445.1 kB / 0.8172 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006395/1.188, allocations: 1.853 MB / 0.819 GB, free: 4.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004866/1.192, allocations: 3.537 MB / 0.8225 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00655/1.199, allocations: 403.5 kB / 0.8228 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001869/1.201, allocations: 0.5 MB / 0.8233 GB, free: 188 kB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 832 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[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 (1007): * Single equations (assignments): 998 * Array equations: 8 * 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.2556/1.457, allocations: 2.898 MB / 0.8262 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008769/1.457, allocations: 429.1 kB / 0.8266 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/1.463, allocations: 2.439 MB / 0.829 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001598/1.463, allocations: 40.81 kB / 0.829 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.463, allocations: 5.062 kB / 0.829 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.703e-05/1.463, allocations: 12.38 kB / 0.829 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/1.48, allocations: 8.132 MB / 0.837 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/1.48, allocations: 8.562 kB / 0.837 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/1.481, allocations: 294.6 kB / 0.8372 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005388/1.482, allocations: 203.6 kB / 0.8374 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/1.482, allocations: 45.92 kB / 0.8375 GB, free: 101.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002994/1.485, allocations: 2.703 MB / 0.8401 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/1.485, allocations: 7.531 kB / 0.8401 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006946/1.492, allocations: 4.896 MB / 0.8449 GB, free: 99.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.493, allocations: 0.5085 MB / 0.8454 GB, free: 99.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004935/1.494, allocations: 41.19 kB / 0.8454 GB, free: 99.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/1.495, allocations: 84.09 kB / 0.8455 GB, free: 99.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/1.495, allocations: 130.8 kB / 0.8456 GB, free: 99.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/1.496, allocations: 66.31 kB / 0.8457 GB, free: 99.85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005264/1.501, allocations: 3.317 MB / 0.8489 GB, free: 99.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.501, allocations: 0 / 0.8489 GB, free: 99.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00678/1.508, allocations: 1.215 MB / 0.8501 GB, free: 99.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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): 153 * Array equations: 8 * 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.0004198/1.508, allocations: 188.4 kB / 0.8503 GB, free: 99.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007904/1.516, allocations: 5.797 MB / 0.856 GB, free: 99.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/1.516, allocations: 0 / 0.856 GB, free: 99.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/1.518, allocations: 1.455 MB / 0.8574 GB, free: 99.11 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006064/1.524, allocations: 0.5659 MB / 0.8579 GB, free: 99.08 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.543, allocations: 13.51 MB / 0.8711 GB, free: 93.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003861/1.547, allocations: 4.064 MB / 0.8751 GB, free: 91.77 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00585/1.553, allocations: 2.533 MB / 0.8776 GB, free: 91.72 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000694/1.554, allocations: 308.9 kB / 0.8779 GB, free: 91.71 MB / 474.7 MB Notification: Performance of SimCode: time 8.51e-07/1.554, allocations: 0 / 0.8779 GB, free: 91.71 MB / 474.7 MB Notification: Performance of Templates: time 0.0677/1.621, allocations: 39.05 MB / 0.916 GB, free: 77.13 MB / 474.7 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)