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.0009267/0.0009268, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.157/1.157, allocations: 221.4 MB / 234.6 MB, free: 14.4 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.0008302/0.0008301, allocations: 98.39 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03881/0.03881, allocations: 8.837 MB / 345.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.32e-05, allocations: 4 kB / 405.6 MB, free: 61.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.07133, allocations: 52.39 MB / 457.9 MB, free: 9.078 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2969/0.3682, allocations: 96.44 MB / 0.5414 GB, free: 5.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.3684, allocations: 73.72 kB / 0.5415 GB, free: 5.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4533/0.8218, allocations: 109.3 MB / 0.6482 GB, free: 100.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.8218, allocations: 0 / 0.6482 GB, free: 100.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001991/0.822, allocations: 91.41 kB / 0.6483 GB, free: 100.8 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.01469/0.8367, allocations: 4.778 MB / 0.653 GB, free: 99.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.8368, allocations: 14.22 kB / 0.653 GB, free: 99.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.853, allocations: 3.708 MB / 0.6566 GB, free: 99.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006954/0.86, allocations: 2.842 MB / 0.6594 GB, free: 98.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003331/0.8604, allocations: 402.6 kB / 0.6598 GB, free: 98.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002024/0.8624, allocations: 0.5081 MB / 0.6603 GB, free: 98.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02285/0.8853, allocations: 13.97 MB / 0.6739 GB, free: 95.76 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001688/0.8855, allocations: 65.22 kB / 0.674 GB, free: 95.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007322/0.8862, allocations: 254.5 kB / 0.6742 GB, free: 95.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001669/0.8879, allocations: 1.597 MB / 0.6758 GB, free: 95.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01692/0.9049, allocations: 12.13 MB / 0.6876 GB, free: 95.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05337/0.9583, allocations: 57.78 MB / 0.7441 GB, free: 53.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006048/0.9644, allocations: 3.844 MB / 0.7478 GB, free: 50.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.9661, allocations: 1.305 MB / 0.7491 GB, free: 50.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009012/0.9752, allocations: 6.84 MB / 0.7558 GB, free: 46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.9752, allocations: 57.06 kB / 0.7558 GB, free: 45.94 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 5.69e-06/0.9752, allocations: 0 / 0.7558 GB, free: 45.94 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.01843/0.9937, allocations: 10.56 MB / 0.7661 GB, free: 37.19 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.9938, allocations: 145.8 kB / 0.7663 GB, free: 37.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006068/0.9999, allocations: 4.728 MB / 0.7709 GB, free: 32.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002982/1, allocations: 60.36 kB / 0.771 GB, free: 32.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/1.002, allocations: 4.097 MB / 0.775 GB, free: 29.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/1.002, allocations: 0.8937 MB / 0.7758 GB, free: 28.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/1.003, allocations: 159.9 kB / 0.776 GB, free: 28.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003297/1.003, allocations: 0.653 MB / 0.7766 GB, free: 27.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002868/1.006, allocations: 2.373 MB / 0.7789 GB, free: 25.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004681/1.011, allocations: 7.485 MB / 0.7863 GB, free: 15.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004851/1.016, allocations: 4.327 MB / 0.7905 GB, free: 11.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.26e-05/1.016, allocations: 52 kB / 0.7905 GB, free: 11.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=1076) (initialization): time 0.01324/1.029, allocations: 9.717 MB / 0.8 GB, free: 3.258 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/1.029, allocations: 87.95 kB / 0.8001 GB, free: 3.172 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/1.029, allocations: 180 kB / 0.8003 GB, free: 2.996 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007408/1.03, allocations: 472.8 kB / 0.8007 GB, free: 2.574 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004732/1.035, allocations: 1.842 MB / 0.8025 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004109/1.039, allocations: 3.555 MB / 0.806 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005395/1.044, allocations: 402.4 kB / 0.8064 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/1.045, allocations: 0.4958 MB / 0.8069 GB, free: 12.85 MB / 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 () * 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.001471/1.047, allocations: 0.7407 MB / 0.8076 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007003/1.047, allocations: 430.3 kB / 0.808 GB, free: 11.69 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/1.051, allocations: 2.395 MB / 0.8103 GB, free: 9.629 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001507/1.052, allocations: 42.33 kB / 0.8104 GB, free: 9.594 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/1.052, allocations: 4 kB / 0.8104 GB, free: 9.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/1.052, allocations: 7.594 kB / 0.8104 GB, free: 9.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/1.065, allocations: 8.068 MB / 0.8183 GB, free: 2.938 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/1.065, allocations: 7.062 kB / 0.8183 GB, free: 2.934 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/1.067, allocations: 296.2 kB / 0.8186 GB, free: 2.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005289/1.067, allocations: 207.8 kB / 0.8188 GB, free: 2.523 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/1.067, allocations: 39.8 kB / 0.8188 GB, free: 2.488 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2146/1.282, allocations: 2.737 MB / 0.8215 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.282, allocations: 5.219 kB / 0.8215 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006683/1.289, allocations: 5.35 MB / 0.8267 GB, free: 101.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/1.29, allocations: 0.504 MB / 0.8272 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004262/1.29, allocations: 37.86 kB / 0.8272 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/1.292, allocations: 88.53 kB / 0.8273 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/1.292, allocations: 121.8 kB / 0.8274 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/1.292, allocations: 65.55 kB / 0.8275 GB, free: 101.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005183/1.297, allocations: 3.27 MB / 0.8307 GB, free: 101 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.297, allocations: 0 / 0.8307 GB, free: 101 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005982/1.303, allocations: 1.205 MB / 0.8319 GB, free: 101 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 () * 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.0004449/1.304, allocations: 188 kB / 0.832 GB, free: 100.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009129/1.313, allocations: 5.705 MB / 0.8376 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.313, allocations: 0 / 0.8376 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/1.315, allocations: 1.416 MB / 0.839 GB, free: 100.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003384/1.318, allocations: 0.5414 MB / 0.8395 GB, free: 100.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/1.336, allocations: 9.32 MB / 0.8486 GB, free: 98.73 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004404/1.341, allocations: 4.174 MB / 0.8527 GB, free: 97.91 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005824/1.347, allocations: 2.527 MB / 0.8552 GB, free: 97.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006448/1.347, allocations: 314.2 kB / 0.8555 GB, free: 97.86 MB / 474.7 MB Notification: Performance of SimCode: time 9.72e-07/1.347, allocations: 0 / 0.8555 GB, free: 97.86 MB / 474.7 MB Notification: Performance of Templates: time 0.0594/1.407, allocations: 38.92 MB / 0.8935 GB, free: 94.86 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)