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.001254/0.001254, allocations: 170.1 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.33/1.33, allocations: 223.3 MB / 240.1 MB, free: 9.965 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.0008381/0.0008384, allocations: 96 kB / 291.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04115/0.04115, allocations: 8.942 MB / 351.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003386, allocations: 17.31 kB / 414.4 MB, free: 56.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09245/0.0928, allocations: 52.38 MB / 466.8 MB, free: 4.387 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3107/0.4035, allocations: 86.1 MB / 0.5399 GB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.4038, allocations: 81.97 kB / 0.54 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.5634, allocations: 62.77 MB / 0.6013 GB, free: 2.457 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5635, allocations: 0 / 0.6013 GB, free: 2.457 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000163/0.5637, allocations: 59.94 kB / 0.6014 GB, free: 2.398 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.01286/0.5765, allocations: 3.219 MB / 0.6045 GB, free: 15.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.309e-05/0.5766, allocations: 12.03 kB / 0.6045 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01008/0.5867, allocations: 1.939 MB / 0.6064 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005038/0.5918, allocations: 1.72 MB / 0.6081 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/0.5922, allocations: 226.9 kB / 0.6083 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00197/0.5942, allocations: 291.8 kB / 0.6086 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.615, allocations: 7.84 MB / 0.6162 GB, free: 2.633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/0.6153, allocations: 23.81 kB / 0.6163 GB, free: 2.609 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001682/0.617, allocations: 135.9 kB / 0.6164 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/0.6186, allocations: 0.9194 MB / 0.6173 GB, free: 1.555 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01889/0.6376, allocations: 7.305 MB / 0.6244 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04579/0.6834, allocations: 25.58 MB / 0.6494 GB, free: 128 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2387/0.9222, allocations: 2.619 MB / 0.652 GB, free: 122.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.9237, allocations: 0.8987 MB / 0.6528 GB, free: 122.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/0.9304, allocations: 5.093 MB / 0.6578 GB, free: 120.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.9305, allocations: 45.88 kB / 0.6579 GB, free: 120 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 4.007e-06/0.9305, allocations: 2.094 kB / 0.6579 GB, free: 120 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.01308/0.9436, allocations: 5.437 MB / 0.6632 GB, free: 119.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.9436, allocations: 67.95 kB / 0.6632 GB, free: 119.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004175/0.9478, allocations: 2.589 MB / 0.6658 GB, free: 119.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.948, allocations: 49.36 kB / 0.6658 GB, free: 119.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.9491, allocations: 2.096 MB / 0.6679 GB, free: 118 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005005/0.9496, allocations: 0.645 MB / 0.6685 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.9498, allocations: 83.78 kB / 0.6686 GB, free: 117.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.95, allocations: 484.4 kB / 0.669 GB, free: 117.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.9521, allocations: 1.348 MB / 0.6704 GB, free: 117.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003134/0.9553, allocations: 3.604 MB / 0.6739 GB, free: 114.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005138/0.9604, allocations: 5.384 MB / 0.6791 GB, free: 111.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.977e-05/0.9605, allocations: 21.75 kB / 0.6791 GB, free: 111.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008027/0.9686, allocations: 5.174 MB / 0.6842 GB, free: 110.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.9687, allocations: 43.25 kB / 0.6842 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.17e-05/0.9688, allocations: 78.84 kB / 0.6843 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008536/0.9696, allocations: 357 kB / 0.6847 GB, free: 110 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002761/0.9724, allocations: 0.9137 MB / 0.6856 GB, free: 109.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.9765, allocations: 3.832 MB / 0.6893 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003897/0.9805, allocations: 202.1 kB / 0.6895 GB, free: 107.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008592/0.9813, allocations: 241.4 kB / 0.6897 GB, free: 107.5 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 () * Number of clocked 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.003432/0.9848, allocations: 1.61 MB / 0.6913 GB, free: 106.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007722/0.9856, allocations: 234.8 kB / 0.6915 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003755/0.9893, allocations: 2.3 MB / 0.6938 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.304e-05/0.9894, allocations: 29.78 kB / 0.6938 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.9895, allocations: 7.438 kB / 0.6938 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.9895, allocations: 7.219 kB / 0.6938 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.9995, allocations: 6.416 MB / 0.7001 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.9996, allocations: 3.938 kB / 0.7001 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000866/1, allocations: 244.2 kB / 0.7003 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006081/1.001, allocations: 266.1 kB / 0.7006 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.639e-05/1.001, allocations: 41.91 kB / 0.7006 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003129/1.004, allocations: 3.131 MB / 0.7037 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.004, allocations: 7.906 kB / 0.7037 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004675/1.009, allocations: 3.558 MB / 0.7071 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008824/1.01, allocations: 314.6 kB / 0.7074 GB, free: 99.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/1.01, allocations: 30.7 kB / 0.7075 GB, free: 99.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008047/1.011, allocations: 81.14 kB / 0.7075 GB, free: 99.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/1.011, allocations: 107.6 kB / 0.7076 GB, free: 99.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.497e-05/1.011, allocations: 50.59 kB / 0.7077 GB, free: 99.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002283/1.014, allocations: 1.66 MB / 0.7093 GB, free: 98.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.014, allocations: 0 / 0.7093 GB, free: 98.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003768/1.017, allocations: 0.7331 MB / 0.71 GB, free: 98.55 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 () * Number of clocked 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.0004177/1.018, allocations: 181.9 kB / 0.7102 GB, free: 98.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005221/1.023, allocations: 3.37 MB / 0.7135 GB, free: 97.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.023, allocations: 3.906 kB / 0.7135 GB, free: 97.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/1.025, allocations: 1.154 MB / 0.7146 GB, free: 96.72 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/1.028, allocations: 380.3 kB / 0.715 GB, free: 96.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.039, allocations: 8.015 MB / 0.7228 GB, free: 89.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002267/1.042, allocations: 2.617 MB / 0.7254 GB, free: 87.31 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0031/1.045, allocations: 1.271 MB / 0.7266 GB, free: 86.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003742/1.045, allocations: 178.2 kB / 0.7268 GB, free: 86.35 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/1.045, allocations: 0 / 0.7268 GB, free: 86.35 MB / 458.7 MB Notification: Performance of Templates: time 0.04085/1.086, allocations: 25.4 MB / 0.7516 GB, free: 66.34 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)