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.001296/0.001296, allocations: 170.2 kB / 16.11 MB, free: 5.586 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.507/1.507, allocations: 223.2 MB / 240.1 MB, free: 1.43 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.0007859/0.0007859, allocations: 97.95 kB / 291.3 MB, free: 13.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04033/0.04033, allocations: 8.939 MB / 351.4 MB, free: 1.879 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005271/0.000527, allocations: 10.09 kB / 414.4 MB, free: 88.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1163, allocations: 52.39 MB / 466.8 MB, free: 41.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3491/0.4655, allocations: 83.46 MB / 0.5373 GB, free: 16.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4657, allocations: 73.08 kB / 0.5374 GB, free: 16.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1055/0.5712, allocations: 47.06 MB / 0.5834 GB, free: 20.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5713, allocations: 0 / 0.5834 GB, free: 20.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.352e-05/0.5714, allocations: 38.75 kB / 0.5834 GB, free: 20.19 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.006558/0.5779, allocations: 2.19 MB / 0.5856 GB, free: 18.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.578, allocations: 12.03 kB / 0.5856 GB, free: 18.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008145/0.5861, allocations: 1.839 MB / 0.5874 GB, free: 17.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/0.5896, allocations: 1.425 MB / 0.5888 GB, free: 17.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.5898, allocations: 169.4 kB / 0.5889 GB, free: 17.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002072/0.5919, allocations: 216.6 kB / 0.5891 GB, free: 17.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.6064, allocations: 6.106 MB / 0.5951 GB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.6066, allocations: 15.81 kB / 0.5951 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.6076, allocations: 106.5 kB / 0.5952 GB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001083/0.6087, allocations: 0.7125 MB / 0.5959 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01104/0.6198, allocations: 5.924 MB / 0.6017 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03228/0.6521, allocations: 18.18 MB / 0.6194 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003181/0.6554, allocations: 1.535 MB / 0.6209 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009453/0.6564, allocations: 0.5265 MB / 0.6214 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004329/0.6607, allocations: 2.138 MB / 0.6235 GB, free: 9.109 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.6608, allocations: 39 kB / 0.6236 GB, free: 9.062 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.677e-06/0.6608, allocations: 0 / 0.6236 GB, free: 9.062 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.003472/0.6643, allocations: 1.47 MB / 0.625 GB, free: 7.586 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.6644, allocations: 59.84 kB / 0.6251 GB, free: 7.516 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004129/0.6685, allocations: 2.007 MB / 0.627 GB, free: 5.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/0.6686, allocations: 33.7 kB / 0.6271 GB, free: 5.461 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.6699, allocations: 1.644 MB / 0.6287 GB, free: 3.812 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.6703, allocations: 323.5 kB / 0.629 GB, free: 3.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.6705, allocations: 56 kB / 0.629 GB, free: 3.445 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003496/0.6708, allocations: 480.6 kB / 0.6295 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.6725, allocations: 0.9109 MB / 0.6304 GB, free: 2.055 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00269/0.6752, allocations: 2.554 MB / 0.6329 GB, free: 14.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004426/0.6796, allocations: 3.701 MB / 0.6365 GB, free: 10.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.85e-05/0.6797, allocations: 16 kB / 0.6365 GB, free: 10.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006542/0.6863, allocations: 3.374 MB / 0.6398 GB, free: 6.766 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.6863, allocations: 28 kB / 0.6398 GB, free: 6.738 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.858e-05/0.6864, allocations: 60 kB / 0.6399 GB, free: 6.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.479e-05/0.6865, allocations: 76 kB / 0.6399 GB, free: 6.605 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/0.6883, allocations: 0.616 MB / 0.6405 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001181/0.6885, allocations: 115.8 kB / 0.6407 GB, free: 5.875 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/0.6906, allocations: 427.4 kB / 0.6411 GB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002705/0.6909, allocations: 172 kB / 0.6412 GB, free: 5.289 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.002239/0.6931, allocations: 1.308 MB / 0.6425 GB, free: 3.969 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.6934, allocations: 153.9 kB / 0.6427 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.6953, allocations: 1.028 MB / 0.6437 GB, free: 2.777 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-05/0.6954, allocations: 27.73 kB / 0.6437 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.6955, allocations: 0 / 0.6437 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.6955, allocations: 7.922 kB / 0.6437 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007741/0.7032, allocations: 3.552 MB / 0.6472 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.7032, allocations: 4.125 kB / 0.6472 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.7037, allocations: 103.8 kB / 0.6473 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/0.7038, allocations: 0 / 0.6473 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.396e-05/0.7038, allocations: 23.34 kB / 0.6473 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.7038, allocations: 4 kB / 0.6473 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.7038, allocations: 3.984 kB / 0.6473 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.7063, allocations: 1.707 MB / 0.649 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005334/0.7068, allocations: 259 kB / 0.6492 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003358/0.7072, allocations: 12 kB / 0.6492 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006529/0.7078, allocations: 39.95 kB / 0.6493 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.895e-05/0.7079, allocations: 36.06 kB / 0.6493 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.708, allocations: 20 kB / 0.6493 GB, free: 12.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002467/0.7105, allocations: 1.31 MB / 0.6506 GB, free: 11.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7105, allocations: 0 / 0.6506 GB, free: 11.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002587/0.7131, allocations: 0.634 MB / 0.6512 GB, free: 10.95 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.0003438/0.7134, allocations: 150.4 kB / 0.6513 GB, free: 10.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00328/0.7167, allocations: 1.973 MB / 0.6533 GB, free: 8.828 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.7167, allocations: 0.5 kB / 0.6533 GB, free: 8.828 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006219/0.7174, allocations: 466.5 kB / 0.6537 GB, free: 8.375 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.7191, allocations: 277.1 kB / 0.654 GB, free: 8.109 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.73, allocations: 5.993 MB / 0.6598 GB, free: 2.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003056/0.7331, allocations: 2.165 MB / 0.662 GB, free: 15.87 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002604/0.7357, allocations: 0.8929 MB / 0.6628 GB, free: 14.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004148/0.7361, allocations: 123.4 kB / 0.6629 GB, free: 14.85 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.7361, allocations: 3.938 kB / 0.6629 GB, free: 14.85 MB / 442.7 MB Notification: Performance of Templates: time 0.03322/0.7694, allocations: 16.34 MB / 0.6789 GB, free: 14.63 MB / 458.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)