Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 176.2 kB / 7.643 MB, free: 1.414 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.379/1.379, allocations: 221.5 MB / 229.6 MB, free: 7.57 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.000998/0.0009981, allocations: 80.81 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03709/0.03709, allocations: 8.835 MB / 340.1 MB, free: 6.391 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.509e-05/1.522e-05, allocations: 1.344 kB / 398.7 MB, free: 47.65 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1468, allocations: 52.39 MB / 451.1 MB, free: 4.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5778, allocations: 87.85 MB / 0.5263 GB, free: 27.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.578, allocations: 77.92 kB / 0.5264 GB, free: 27.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1424/0.7204, allocations: 60.73 MB / 0.5857 GB, free: 12.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.7204, allocations: 3.938 kB / 0.5857 GB, free: 12.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000124/0.7206, allocations: 54.88 kB / 0.5857 GB, free: 12.16 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.009781/0.7304, allocations: 2.733 MB / 0.5884 GB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.7304, allocations: 7.938 kB / 0.5884 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.7405, allocations: 1.967 MB / 0.5903 GB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.7452, allocations: 1.669 MB / 0.592 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.7455, allocations: 96.38 kB / 0.592 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002019/0.7475, allocations: 168.2 kB / 0.5922 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009734/0.7573, allocations: 5.354 MB / 0.5974 GB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/0.7735, allocations: 7.003 MB / 0.6043 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001785/0.7737, allocations: 19.78 kB / 0.6043 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001577/0.7753, allocations: 12 kB / 0.6043 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001658/0.777, allocations: 0.8882 MB / 0.6052 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04076/0.8178, allocations: 23.28 MB / 0.6279 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00314/0.821, allocations: 1.922 MB / 0.6298 GB, free: 5.047 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.8221, allocations: 0.6459 MB / 0.6304 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006233/0.8284, allocations: 3.543 MB / 0.6339 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.8284, allocations: 43.34 kB / 0.6339 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of pre-optimization done (n=111): time 3.938e-06/0.8285, allocations: 0 / 0.6339 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of matching and sorting (n=114): time 0.007754/0.8362, allocations: 3.343 MB / 0.6372 GB, free: 13.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.8363, allocations: 64.12 kB / 0.6372 GB, free: 13.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004703/0.841, allocations: 1.914 MB / 0.6391 GB, free: 11.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.8412, allocations: 25.7 kB / 0.6391 GB, free: 11.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.8432, allocations: 2.188 MB / 0.6413 GB, free: 8.871 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006338/0.8438, allocations: 442.2 kB / 0.6417 GB, free: 8.434 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003622/0.8442, allocations: 4 kB / 0.6417 GB, free: 8.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005387/0.8448, allocations: 0.5033 MB / 0.6422 GB, free: 7.918 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002717/0.8475, allocations: 1.109 MB / 0.6433 GB, free: 6.809 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004456/0.852, allocations: 3.366 MB / 0.6466 GB, free: 2.316 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003393/0.8554, allocations: 1.957 MB / 0.6485 GB, free: 368 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.389e-05/0.8555, allocations: 24 kB / 0.6485 GB, free: 344 kB / 410.7 MB Notification: Performance of matching and sorting (n=510) (initialization): time 0.00793/0.8634, allocations: 4.034 MB / 0.6524 GB, free: 12.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.069e-05/0.8635, allocations: 41.09 kB / 0.6525 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.8637, allocations: 80 kB / 0.6525 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.8638, allocations: 120.8 kB / 0.6527 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003019/0.8669, allocations: 0.889 MB / 0.6535 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001295/0.867, allocations: 159.4 kB / 0.6537 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/0.8698, allocations: 115.9 kB / 0.6538 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005457/0.8704, allocations: 236 kB / 0.654 GB, free: 10.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 368 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (482): * Single equations (assignments): 477 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000713/0.8711, allocations: 305.2 kB / 0.6543 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000459/0.8716, allocations: 181.6 kB / 0.6545 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.8739, allocations: 1.227 MB / 0.6557 GB, free: 8.949 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001362/0.874, allocations: 27.97 kB / 0.6557 GB, free: 8.922 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.8741, allocations: 4 kB / 0.6557 GB, free: 8.918 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.8741, allocations: 3.984 kB / 0.6557 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008435/0.8825, allocations: 3.635 MB / 0.6593 GB, free: 5.176 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.8826, allocations: 4 kB / 0.6593 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008192/0.8834, allocations: 175.7 kB / 0.6594 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-05/0.8834, allocations: 12.02 kB / 0.6594 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.909e-05/0.8835, allocations: 20.27 kB / 0.6595 GB, free: 4.969 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/0.8835, allocations: 8 kB / 0.6595 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.8835, allocations: 8.281 kB / 0.6595 GB, free: 4.953 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003006/0.8866, allocations: 2.434 MB / 0.6619 GB, free: 2.332 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000744/0.8873, allocations: 270.8 kB / 0.6621 GB, free: 2.047 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000424/0.8878, allocations: 7.984 kB / 0.6621 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009178/0.8887, allocations: 35.95 kB / 0.6622 GB, free: 2.004 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.8888, allocations: 68.38 kB / 0.6622 GB, free: 1.938 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.488e-05/0.8889, allocations: 36 kB / 0.6623 GB, free: 1.902 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002467/0.8914, allocations: 1.276 MB / 0.6635 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8914, allocations: 0 / 0.6635 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004917/0.8963, allocations: 0.5507 MB / 0.664 GB, free: 88 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005162/0.8969, allocations: 162.9 kB / 0.6642 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004335/0.9012, allocations: 2.43 MB / 0.6666 GB, free: 13.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.9012, allocations: 0 / 0.6666 GB, free: 13.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007821/0.902, allocations: 0.5644 MB / 0.6671 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.9036, allocations: 207.9 kB / 0.6673 GB, free: 12.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.9159, allocations: 5.109 MB / 0.6723 GB, free: 7.531 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00378/0.9197, allocations: 2.623 MB / 0.6749 GB, free: 4.875 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003259/0.923, allocations: 1.119 MB / 0.676 GB, free: 3.754 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005715/0.9236, allocations: 151.4 kB / 0.6761 GB, free: 3.605 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.9236, allocations: 4 kB / 0.6761 GB, free: 3.602 MB / 442.7 MB Notification: Performance of Templates: time 0.03631/0.9599, allocations: 16.19 MB / 0.6919 GB, free: 3.465 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)