Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007451/0.007451, allocations: 170.4 kB / 15.11 MB, free: 5.973 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.399/1.399, allocations: 223.2 MB / 239 MB, free: 1.781 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.001034/0.001034, allocations: 99.75 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04034/0.04034, allocations: 8.944 MB / 350.3 MB, free: 2.059 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003738, allocations: 9.031 kB / 413.1 MB, free: 88.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.124, allocations: 52.4 MB / 465.5 MB, free: 41.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5405, allocations: 83.4 MB / 0.5361 GB, free: 16.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5409, allocations: 80.3 kB / 0.5361 GB, free: 16.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1476/0.6885, allocations: 47.46 MB / 0.5825 GB, free: 20.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.6885, allocations: 0 / 0.5825 GB, free: 20.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.399e-05/0.6886, allocations: 42.75 kB / 0.5825 GB, free: 20.12 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.007044/0.6957, allocations: 2.225 MB / 0.5847 GB, free: 18.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.6957, allocations: 7.625 kB / 0.5847 GB, free: 18.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00865/0.7044, allocations: 1.858 MB / 0.5865 GB, free: 17.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.7093, allocations: 1.408 MB / 0.5879 GB, free: 17.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.7095, allocations: 167.4 kB / 0.5881 GB, free: 17.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/0.711, allocations: 221.9 kB / 0.5883 GB, free: 17.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.7227, allocations: 6.087 MB / 0.5942 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.57e-05/0.7228, allocations: 19.47 kB / 0.5942 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003692/0.7232, allocations: 97.42 kB / 0.5943 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009396/0.7242, allocations: 0.7109 MB / 0.595 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/0.7353, allocations: 5.94 MB / 0.6008 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03162/0.767, allocations: 18.16 MB / 0.6185 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.7698, allocations: 1.547 MB / 0.6201 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004151/0.7739, allocations: 2.138 MB / 0.6221 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.774, allocations: 43 kB / 0.6222 GB, free: 9.535 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.697e-06/0.774, allocations: 0 / 0.6222 GB, free: 9.535 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003412/0.7774, allocations: 1.821 MB / 0.624 GB, free: 7.637 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.7775, allocations: 63.78 kB / 0.624 GB, free: 7.562 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.7806, allocations: 1.812 MB / 0.6258 GB, free: 5.746 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.782e-05/0.7807, allocations: 37.64 kB / 0.6258 GB, free: 5.703 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.7819, allocations: 1.652 MB / 0.6274 GB, free: 4.047 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003466/0.7823, allocations: 315.5 kB / 0.6277 GB, free: 3.738 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.7824, allocations: 59.75 kB / 0.6278 GB, free: 3.684 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003192/0.7828, allocations: 488.5 kB / 0.6283 GB, free: 3.199 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.7843, allocations: 0.9032 MB / 0.6292 GB, free: 2.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002698/0.787, allocations: 2.542 MB / 0.6316 GB, free: 14.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/0.7894, allocations: 1.536 MB / 0.6331 GB, free: 13.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.411e-05/0.7895, allocations: 16 kB / 0.6331 GB, free: 13.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006172/0.7956, allocations: 3.385 MB / 0.6365 GB, free: 9.984 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/0.7957, allocations: 32 kB / 0.6365 GB, free: 9.953 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.063e-05/0.7958, allocations: 56 kB / 0.6365 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.623e-05/0.7959, allocations: 88 kB / 0.6366 GB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/0.7981, allocations: 0.6121 MB / 0.6372 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001258/0.7982, allocations: 119.5 kB / 0.6373 GB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/0.8006, allocations: 403.7 kB / 0.6377 GB, free: 8.684 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.8009, allocations: 175.7 kB / 0.6379 GB, free: 8.516 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (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 (334): * Single equations (assignments): 330 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002623/0.8036, allocations: 1.32 MB / 0.6392 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.8039, allocations: 154 kB / 0.6393 GB, free: 7.031 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.8059, allocations: 1.031 MB / 0.6403 GB, free: 5.992 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/0.806, allocations: 19.98 kB / 0.6403 GB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.986e-06/0.806, allocations: 7.984 kB / 0.6404 GB, free: 5.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.806, allocations: 0 / 0.6404 GB, free: 5.965 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007092/0.8131, allocations: 3.551 MB / 0.6438 GB, free: 2.352 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.8132, allocations: 4 kB / 0.6438 GB, free: 2.348 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/0.8137, allocations: 103.8 kB / 0.6439 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/0.8137, allocations: 4 kB / 0.6439 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.692e-05/0.8138, allocations: 23.66 kB / 0.644 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.8138, allocations: 4 kB / 0.644 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.8138, allocations: 3.953 kB / 0.644 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.8163, allocations: 1.763 MB / 0.6457 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006045/0.8169, allocations: 259.2 kB / 0.6459 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.8171, allocations: 12.28 kB / 0.6459 GB, free: 116 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005262/0.8176, allocations: 35.95 kB / 0.646 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.139e-05/0.8177, allocations: 32.39 kB / 0.646 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.898e-05/0.8178, allocations: 31.53 kB / 0.646 GB, free: 20 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002325/0.8201, allocations: 1.306 MB / 0.6473 GB, free: 14.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8201, allocations: 0 / 0.6473 GB, free: 14.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002885/0.823, allocations: 0.6379 MB / 0.6479 GB, free: 14.08 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004117/0.8234, allocations: 146.7 kB / 0.6481 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003558/0.827, allocations: 1.981 MB / 0.65 GB, free: 11.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.827, allocations: 4 kB / 0.65 GB, free: 11.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.8277, allocations: 458.5 kB / 0.6504 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.829, allocations: 264.8 kB / 0.6507 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009816/0.8388, allocations: 5.977 MB / 0.6565 GB, free: 5.234 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/0.8412, allocations: 2.217 MB / 0.6587 GB, free: 2.988 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002564/0.8438, allocations: 0.889 MB / 0.6596 GB, free: 2.094 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.8442, allocations: 119.4 kB / 0.6597 GB, free: 1.977 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8442, allocations: 0 / 0.6597 GB, free: 1.977 MB / 426.7 MB Notification: Performance of Templates: time 0.03585/0.8801, allocations: 16.27 MB / 0.6756 GB, free: 1.82 MB / 442.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)