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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000832/0.000832, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1892/0.1892, allocations: 9.114 MB / 300.2 MB, free: 2.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004682, allocations: 8 kB / 363.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1229, allocations: 52.43 MB / 415.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.2514/0.3743, allocations: 8.519 MB / 424.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006888/0.3813, allocations: 2.552 MB / 426.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.3828, allocations: 32.78 kB / 426.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009533/0.3838, allocations: 395.4 kB / 427 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003693/0.3875, allocations: 1.552 MB / 428.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.3877, allocations: 33.39 kB / 428.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.3905, allocations: 2.074 MB / 430.7 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.3908, allocations: 154 kB / 430.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.3919, allocations: 0.5637 MB / 431.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.3932, allocations: 0.9835 MB / 432.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002345/0.3934, allocations: 92.06 kB / 432.5 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001242/0.3947, allocations: 0.6037 MB / 433.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008609/0.3956, allocations: 0.8544 MB / 433.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005022/0.3961, allocations: 0.5057 MB / 434.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002906/0.399, allocations: 3.008 MB / 437.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.399, allocations: 0 / 437.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.399, allocations: 0 / 437.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.218e-05/0.3991, allocations: 3.438 kB / 437.5 MB, free: 32.99 MB / 350.1 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.004832/0.404, allocations: 2.124 MB / 439.6 MB, free: 31.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.404, allocations: 9.844 kB / 439.6 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00586/0.4099, allocations: 1.716 MB / 441.3 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.4121, allocations: 1.073 MB / 442.4 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.4122, allocations: 102 kB / 442.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003122/0.4125, allocations: 128.7 kB / 442.6 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009343/0.4219, allocations: 6.494 MB / 449.1 MB, free: 29.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.368e-05/0.422, allocations: 14.5 kB / 449.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.4223, allocations: 63.84 kB / 449.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002583/0.4248, allocations: 1.626 MB / 450.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.4364, allocations: 6.017 MB / 456.8 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03303/0.4695, allocations: 18.2 MB / 475 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.4724, allocations: 1.551 MB / 476.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009554/0.4734, allocations: 0.525 MB / 477.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004651/0.478, allocations: 2.147 MB / 479.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.4781, allocations: 37.16 kB / 479.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.627e-06/0.4781, allocations: 0 / 479.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003416/0.4815, allocations: 1.487 MB / 480.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.4816, allocations: 62.91 kB / 480.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003304/0.4849, allocations: 1.997 MB / 482.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/0.4849, allocations: 36.88 kB / 482.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.4861, allocations: 1.647 MB / 484.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/0.4863, allocations: 322.7 kB / 484.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.4864, allocations: 51.78 kB / 484.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002319/0.4867, allocations: 485.2 kB / 485.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.4883, allocations: 0.9155 MB / 486.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/0.4904, allocations: 2.559 MB / 488.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.4926, allocations: 1.553 MB / 490.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.023e-05/0.4926, allocations: 16.5 kB / 490.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005171/0.4978, allocations: 3.395 MB / 493.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.4978, allocations: 36.06 kB / 493.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.655e-05/0.4979, allocations: 60 kB / 493.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.203e-05/0.498, allocations: 84 kB / 494 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.4995, allocations: 0.6082 MB / 494.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.817e-05/0.4996, allocations: 119.5 kB / 494.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.5015, allocations: 416.3 kB / 495.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.5017, allocations: 176 kB / 495.3 MB, free: 1.137 MB / 350.1 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.001801/0.5035, allocations: 1.312 MB / 496.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002634/0.5038, allocations: 154 kB / 496.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.5056, allocations: 1.056 MB / 497.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-05/0.5057, allocations: 24 kB / 497.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5058, allocations: 3.984 kB / 497.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.5058, allocations: 4 kB / 497.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006716/0.5125, allocations: 3.566 MB / 0.4896 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5125, allocations: 4.125 kB / 0.4896 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.5131, allocations: 111.8 kB / 0.4897 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.5131, allocations: 4 kB / 0.4897 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.5131, allocations: 16 kB / 0.4898 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.5132, allocations: 3.984 kB / 0.4898 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.5132, allocations: 4 kB / 0.4898 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.5159, allocations: 1.733 MB / 0.4915 GB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006193/0.5165, allocations: 259.2 kB / 0.4917 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.5167, allocations: 8 kB / 0.4917 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.5172, allocations: 36.52 kB / 0.4917 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.5173, allocations: 48.22 kB / 0.4918 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.153e-05/0.5173, allocations: 26.5 kB / 0.4918 GB, free: 8.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.5195, allocations: 1.302 MB / 0.4931 GB, free: 7.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5195, allocations: 0 / 0.4931 GB, free: 7.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002714/0.5222, allocations: 0.634 MB / 0.4937 GB, free: 6.727 MB / 366.1 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 (55): * Single equations (assignments): 51 * 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.0003229/0.5226, allocations: 138.1 kB / 0.4938 GB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003685/0.5262, allocations: 1.994 MB / 0.4958 GB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.5263, allocations: 0 / 0.4958 GB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007359/0.527, allocations: 477.3 kB / 0.4962 GB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.5286, allocations: 274.6 kB / 0.4965 GB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.5401, allocations: 6.016 MB / 0.5024 GB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002702/0.543, allocations: 2.161 MB / 0.5045 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002508/0.5455, allocations: 0.8891 MB / 0.5054 GB, free: 10.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.5458, allocations: 119.4 kB / 0.5055 GB, free: 10.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.5458, allocations: 4 kB / 0.5055 GB, free: 10.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03575/0.5816, allocations: 16.11 MB / 0.5212 GB, free: 10.66 MB / 398.1 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)