Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009628/0.0009627, allocations: 174.9 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.177/1.177, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0008364/0.0008364, allocations: 99.12 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03851/0.03851, allocations: 8.834 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.507e-05, allocations: 4 kB / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07201/0.07205, allocations: 52.41 MB / 458 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2833/0.3554, allocations: 86.01 MB / 0.5312 GB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.3556, allocations: 75.12 kB / 0.5313 GB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1459/0.5015, allocations: 63.33 MB / 0.5931 GB, free: 6.523 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5016, allocations: 0 / 0.5931 GB, free: 6.523 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.185e-05/0.5016, allocations: 56 kB / 0.5932 GB, free: 6.469 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.008355/0.51, allocations: 3.255 MB / 0.5964 GB, free: 3.152 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5101, allocations: 12.03 kB / 0.5964 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007874/0.518, allocations: 1.93 MB / 0.5983 GB, free: 1.203 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.521, allocations: 1.704 MB / 0.5999 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.5212, allocations: 221.7 kB / 0.6001 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000623/0.5218, allocations: 291.9 kB / 0.6004 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.5338, allocations: 7.786 MB / 0.608 GB, free: 6.758 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-05/0.5339, allocations: 23.72 kB / 0.608 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003996/0.5343, allocations: 143.8 kB / 0.6082 GB, free: 6.594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001167/0.5355, allocations: 0.9194 MB / 0.6091 GB, free: 5.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.5476, allocations: 7.235 MB / 0.6161 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03062/0.5782, allocations: 25.6 MB / 0.6412 GB, free: 4.297 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00528/0.5836, allocations: 2.577 MB / 0.6437 GB, free: 1.602 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.5847, allocations: 0.8883 MB / 0.6445 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2041/0.7888, allocations: 5.108 MB / 0.6495 GB, free: 122.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.7889, allocations: 47.98 kB / 0.6496 GB, free: 122.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.487e-06/0.7889, allocations: 3.219 kB / 0.6496 GB, free: 122.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.01023/0.7992, allocations: 4.724 MB / 0.6542 GB, free: 122 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.7992, allocations: 70.81 kB / 0.6543 GB, free: 122 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003101/0.8023, allocations: 2.309 MB / 0.6565 GB, free: 121.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.554e-05/0.8024, allocations: 49.56 kB / 0.6566 GB, free: 121.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009878/0.8034, allocations: 2.088 MB / 0.6586 GB, free: 120.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004591/0.8039, allocations: 0.6489 MB / 0.6592 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.804, allocations: 82.5 kB / 0.6593 GB, free: 120.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.8043, allocations: 490.8 kB / 0.6598 GB, free: 119.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.806, allocations: 1.3 MB / 0.661 GB, free: 119.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002607/0.8087, allocations: 3.547 MB / 0.6645 GB, free: 117 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002808/0.8115, allocations: 2.199 MB / 0.6667 GB, free: 116.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.908e-05/0.8115, allocations: 22.38 kB / 0.6667 GB, free: 116.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.00686/0.8184, allocations: 5.082 MB / 0.6716 GB, free: 116.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.183e-05/0.8185, allocations: 39.53 kB / 0.6717 GB, free: 116.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-05/0.8186, allocations: 84.36 kB / 0.6718 GB, free: 116.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007404/0.8193, allocations: 363 kB / 0.6721 GB, free: 116.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.8217, allocations: 0.9199 MB / 0.673 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003731/0.8254, allocations: 3.822 MB / 0.6767 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/0.8282, allocations: 206.3 kB / 0.6769 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003706/0.8285, allocations: 244.7 kB / 0.6772 GB, free: 115 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (498): * Single equations (assignments): 493 * Array equations: 4 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004938/0.829, allocations: 411.8 kB / 0.6776 GB, free: 114.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.8294, allocations: 237.3 kB / 0.6778 GB, free: 114.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003063/0.8324, allocations: 2.255 MB / 0.68 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.87e-05/0.8326, allocations: 29.66 kB / 0.68 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.8326, allocations: 3.281 kB / 0.68 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.8326, allocations: 7.453 kB / 0.68 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008371/0.841, allocations: 6.388 MB / 0.6863 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.841, allocations: 3.5 kB / 0.6863 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000807/0.8418, allocations: 244.9 kB / 0.6865 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005538/0.8424, allocations: 256.8 kB / 0.6867 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.3e-05/0.8425, allocations: 34.3 kB / 0.6868 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.8453, allocations: 3.13 MB / 0.6898 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.8453, allocations: 11.16 kB / 0.6898 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003906/0.8492, allocations: 3.773 MB / 0.6935 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006719/0.8499, allocations: 319.4 kB / 0.6938 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.8501, allocations: 31.42 kB / 0.6939 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007997/0.8509, allocations: 76.23 kB / 0.6939 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.8511, allocations: 104.3 kB / 0.694 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/0.8512, allocations: 58.48 kB / 0.6941 GB, free: 107.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002041/0.8533, allocations: 1.625 MB / 0.6957 GB, free: 106.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8533, allocations: 0 / 0.6957 GB, free: 106.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00285/0.8561, allocations: 0.7356 MB / 0.6964 GB, free: 106.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * Array equations: 4 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003223/0.8565, allocations: 174.5 kB / 0.6966 GB, free: 106.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003992/0.8605, allocations: 3.302 MB / 0.6998 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.8605, allocations: 0 / 0.6998 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.8616, allocations: 1.123 MB / 0.7009 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.8631, allocations: 354.7 kB / 0.7012 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007475/0.8706, allocations: 5.509 MB / 0.7066 GB, free: 102.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/0.8726, allocations: 2.684 MB / 0.7092 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002573/0.8752, allocations: 1.271 MB / 0.7105 GB, free: 99.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.8756, allocations: 175.3 kB / 0.7106 GB, free: 99.2 MB / 458.7 MB Notification: Performance of SimCode: time 8.42e-07/0.8756, allocations: 0 / 0.7106 GB, free: 99.2 MB / 458.7 MB Notification: Performance of Templates: time 0.03535/0.911, allocations: 25.29 MB / 0.7353 GB, free: 81.07 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)