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.0008717/0.0008714, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.005842/0.005842, allocations: 172 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2238/0.2238, allocations: 9.116 MB / 300.5 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.0003141, allocations: 8.281 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 52.43 MB / 416.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.237/0.3484, allocations: 9.09 MB / 425.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007431/0.3558, allocations: 2.695 MB / 427.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.3581, allocations: 30.84 kB / 428 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.3592, allocations: 236 kB / 428.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002786/0.362, allocations: 1.037 MB / 429.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001601/0.3621, allocations: 29.64 kB / 429.3 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003025/0.3652, allocations: 2.69 MB / 432 MB, free: 34.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.3655, allocations: 152.6 kB / 432.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007947/0.3663, allocations: 0.5245 MB / 432.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3675, allocations: 0.9991 MB / 433.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.3677, allocations: 94.56 kB / 433.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001165/0.3689, allocations: 0.6966 MB / 434.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006773/0.3696, allocations: 0.882 MB / 435.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008593/0.3704, allocations: 1.15 MB / 436.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003341/0.3738, allocations: 3.666 MB / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3738, allocations: 3.344 kB / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3738, allocations: 0 / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.1e-05/0.3739, allocations: 7.75 kB / 440.1 MB, free: 32.66 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.00431/0.3782, allocations: 2.09 MB / 442.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.3783, allocations: 9.656 kB / 442.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006177/0.3844, allocations: 1.723 MB / 443.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.3862, allocations: 1.074 MB / 445 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.552e-05/0.3863, allocations: 101 kB / 445.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002892/0.3866, allocations: 137.3 kB / 445.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008869/0.3955, allocations: 6.505 MB / 451.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.233e-05/0.3956, allocations: 13.47 kB / 451.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002447/0.3959, allocations: 60.89 kB / 451.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003129/0.399, allocations: 1.625 MB / 453.5 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.4112, allocations: 6.038 MB / 459.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03785/0.4491, allocations: 18.22 MB / 477.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.4524, allocations: 1.553 MB / 479.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009656/0.4534, allocations: 0.5329 MB / 479.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004136/0.4576, allocations: 2.144 MB / 481.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.4576, allocations: 42.03 kB / 482 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.146e-06/0.4576, allocations: 0 / 482 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003443/0.4611, allocations: 1.492 MB / 483.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.4611, allocations: 60.72 kB / 483.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/0.465, allocations: 2.004 MB / 485.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.4651, allocations: 41.86 kB / 485.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009779/0.4661, allocations: 1.648 MB / 487.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002828/0.4664, allocations: 326.9 kB / 487.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.4667, allocations: 236.9 kB / 487.8 MB, free: 7.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4668, allocations: 355.6 kB / 488.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4684, allocations: 0.922 MB / 489 MB, free: 7.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00244/0.4708, allocations: 2.573 MB / 491.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/0.4745, allocations: 3.714 MB / 495.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.264e-05/0.4746, allocations: 24 kB / 495.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006844/0.4815, allocations: 3.424 MB / 498.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.937e-05/0.4816, allocations: 30.19 kB / 498.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.761e-05/0.4817, allocations: 60 kB / 498.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.182e-05/0.4818, allocations: 76.52 kB / 498.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/0.4837, allocations: 0.6205 MB / 499.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001159/0.4839, allocations: 123.5 kB / 499.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002351/0.4862, allocations: 407.7 kB / 0.4884 GB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002945/0.4865, allocations: 168 kB / 0.4885 GB, free: 10.91 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002524/0.4891, allocations: 1.319 MB / 0.4898 GB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.4894, allocations: 146 kB / 0.4899 GB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/0.4918, allocations: 1.057 MB / 0.491 GB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/0.4919, allocations: 26.95 kB / 0.491 GB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.4919, allocations: 3.938 kB / 0.491 GB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.4919, allocations: 3.938 kB / 0.491 GB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008326/0.5003, allocations: 3.584 MB / 0.4945 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.935e-05/0.5003, allocations: 4 kB / 0.4945 GB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005151/0.5008, allocations: 99.88 kB / 0.4946 GB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.5008, allocations: 4.281 kB / 0.4946 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/0.5009, allocations: 22.77 kB / 0.4946 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.5009, allocations: 8.125 kB / 0.4946 GB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5009, allocations: 7.938 kB / 0.4947 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.5036, allocations: 1.734 MB / 0.4963 GB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005731/0.5042, allocations: 262.9 kB / 0.4966 GB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003471/0.5045, allocations: 12 kB / 0.4966 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007078/0.5053, allocations: 39.23 kB / 0.4966 GB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.309e-05/0.5054, allocations: 32.39 kB / 0.4967 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.5054, allocations: 24 kB / 0.4967 GB, free: 2.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002478/0.5079, allocations: 1.313 MB / 0.498 GB, free: 1.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5079, allocations: 7.938 kB / 0.498 GB, free: 1.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002687/0.5106, allocations: 0.6301 MB / 0.4986 GB, free: 472 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003482/0.511, allocations: 133.2 kB / 0.4987 GB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003624/0.5146, allocations: 2.012 MB / 0.5007 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5146, allocations: 0 / 0.5007 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007156/0.5154, allocations: 470.5 kB / 0.5011 GB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.5173, allocations: 274.8 kB / 0.5014 GB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.5279, allocations: 6.27 MB / 0.5075 GB, free: 7.301 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00306/0.531, allocations: 2.169 MB / 0.5096 GB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002509/0.5336, allocations: 0.8852 MB / 0.5105 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.534, allocations: 115.4 kB / 0.5106 GB, free: 4.102 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.534, allocations: 4 kB / 0.5106 GB, free: 4.098 MB / 382.1 MB Notification: Performance of Templates: time 0.03494/0.5689, allocations: 16.41 MB / 0.5267 GB, free: 3.824 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)