Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 175.7 kB / 7.648 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 221.5 MB / 229.6 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007858/0.0007859, allocations: 93.67 kB / 280.5 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0374/0.0374, allocations: 8.834 MB / 340.1 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.759e-05/1.761e-05, allocations: 1.719 kB / 398.7 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 52.39 MB / 451.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4158/0.5222, allocations: 89.66 MB / 0.5281 GB, free: 28.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.5225, allocations: 73.14 kB / 0.5281 GB, free: 28.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1559/0.6784, allocations: 66.93 MB / 0.5935 GB, free: 8.473 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6784, allocations: 0 / 0.5935 GB, free: 8.473 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001562/0.6786, allocations: 60 kB / 0.5935 GB, free: 8.414 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.01198/0.6906, allocations: 2.991 MB / 0.5965 GB, free: 5.613 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.6907, allocations: 8.031 kB / 0.5965 GB, free: 5.605 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/0.7011, allocations: 2.015 MB / 0.5984 GB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.7061, allocations: 1.828 MB / 0.6002 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.7063, allocations: 108 kB / 0.6003 GB, free: 2.086 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002001/0.7083, allocations: 191.9 kB / 0.6005 GB, free: 1.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009994/0.7183, allocations: 5.663 MB / 0.606 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.735, allocations: 7.53 MB / 0.6134 GB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/0.7352, allocations: 23.81 kB / 0.6134 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004346/0.7356, allocations: 16 kB / 0.6134 GB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001435/0.7371, allocations: 0.9512 MB / 0.6144 GB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04274/0.7798, allocations: 26.28 MB / 0.64 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003576/0.7834, allocations: 1.925 MB / 0.6419 GB, free: 8.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/0.7851, allocations: 0.8428 MB / 0.6427 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001603/0.7868, allocations: 1.31 MB / 0.644 GB, free: 6.105 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.705e-05/0.7869, allocations: 47.81 kB / 0.6441 GB, free: 6.047 MB / 410.7 MB Notification: Performance of pre-optimization done (n=140): time 5.391e-06/0.7869, allocations: 0 / 0.6441 GB, free: 6.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=160): time 0.01516/0.8021, allocations: 6.837 MB / 0.6507 GB, free: 15.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.8022, allocations: 90.42 kB / 0.6508 GB, free: 14.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004816/0.807, allocations: 2.043 MB / 0.6528 GB, free: 12.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002049/0.8072, allocations: 25.7 kB / 0.6528 GB, free: 12.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001925/0.8092, allocations: 2.374 MB / 0.6552 GB, free: 10.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008254/0.81, allocations: 0.5742 MB / 0.6557 GB, free: 9.812 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/0.8104, allocations: 0 / 0.6557 GB, free: 9.812 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005434/0.811, allocations: 0.5359 MB / 0.6562 GB, free: 9.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/0.8135, allocations: 1.293 MB / 0.6575 GB, free: 7.965 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004809/0.8184, allocations: 3.836 MB / 0.6613 GB, free: 2.844 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/0.8223, allocations: 2.241 MB / 0.6634 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.66e-05/0.8224, allocations: 28 kB / 0.6635 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.009932/0.8324, allocations: 5.197 MB / 0.6685 GB, free: 11.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.982e-05/0.8325, allocations: 47.94 kB / 0.6686 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/0.8327, allocations: 96.06 kB / 0.6687 GB, free: 11.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008669/0.8336, allocations: 380.7 kB / 0.669 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/0.837, allocations: 0.9748 MB / 0.67 GB, free: 9.777 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008433/0.8454, allocations: 8.107 MB / 0.6779 GB, free: 1.094 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/0.8499, allocations: 123.9 kB / 0.678 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/0.8513, allocations: 272 kB / 0.6783 GB, free: 0.707 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[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 (538): * Single equations (assignments): 528 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 14,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001748/0.8531, allocations: 350 kB / 0.6786 GB, free: 368 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008437/0.8539, allocations: 209.3 kB / 0.6788 GB, free: 156 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004814/0.8588, allocations: 2.415 MB / 0.6812 GB, free: 13.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001516/0.8589, allocations: 35.92 kB / 0.6812 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.859, allocations: 8 kB / 0.6812 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.859, allocations: 12.03 kB / 0.6812 GB, free: 13.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/0.8715, allocations: 5.568 MB / 0.6867 GB, free: 7.801 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.8716, allocations: 8 kB / 0.6867 GB, free: 7.793 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/0.8725, allocations: 211.7 kB / 0.6869 GB, free: 7.586 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/0.8729, allocations: 139.1 kB / 0.687 GB, free: 7.441 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.873, allocations: 15.98 kB / 0.687 GB, free: 7.426 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003871/0.8769, allocations: 4.501 MB / 0.6914 GB, free: 2.574 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-05/0.877, allocations: 15.92 kB / 0.6914 GB, free: 2.559 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2972/1.174, allocations: 3.547 MB / 0.6949 GB, free: 118.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000832/1.175, allocations: 295.6 kB / 0.6952 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/1.175, allocations: 7.875 kB / 0.6952 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008195/1.176, allocations: 41.3 kB / 0.6952 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/1.176, allocations: 104.8 kB / 0.6953 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.192e-05/1.176, allocations: 51.83 kB / 0.6954 GB, free: 118.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002138/1.179, allocations: 1.36 MB / 0.6967 GB, free: 118.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.71e-07/1.179, allocations: 0 / 0.6967 GB, free: 118.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003805/1.182, allocations: 0.6367 MB / 0.6973 GB, free: 118.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 114 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003818/1.183, allocations: 161.2 kB / 0.6975 GB, free: 118.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005853/1.189, allocations: 3.554 MB / 0.701 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.189, allocations: 0.9062 kB / 0.701 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/1.19, allocations: 1.119 MB / 0.702 GB, free: 117.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/1.192, allocations: 225 kB / 0.7023 GB, free: 117.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.202, allocations: 5.542 MB / 0.7077 GB, free: 116.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/1.205, allocations: 2.823 MB / 0.7104 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003193/1.209, allocations: 1.266 MB / 0.7117 GB, free: 115.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003918/1.209, allocations: 167.4 kB / 0.7118 GB, free: 115.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/1.209, allocations: 3.609 kB / 0.7118 GB, free: 115.3 MB / 458.7 MB Notification: Performance of Templates: time 0.03737/1.246, allocations: 19.77 MB / 0.7311 GB, free: 114.5 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)