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.007764/0.007764, allocations: 98.05 kB / 15.73 MB, free: 6.004 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.001713/0.001713, allocations: 197.5 kB / 16.67 MB, free: 5.922 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1907/0.1907, allocations: 9.117 MB / 299.7 MB, free: 1.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.08 kB / 414.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2933, allocations: 51.43 MB / 466.1 MB, free: 18.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007135/0.3005, allocations: 5.838 MB / 471.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004868/0.3054, allocations: 2.026 MB / 473.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001045/0.3065, allocations: 25.44 kB / 474 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007709/0.3073, allocations: 261.3 kB / 474.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00355/0.3109, allocations: 1.099 MB / 475.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.3112, allocations: 33.67 kB / 475.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00294/0.3141, allocations: 1.888 MB / 477.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.3144, allocations: 160 kB / 477.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.3156, allocations: 0.6366 MB / 478 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.3168, allocations: 0.9917 MB / 479 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003317/0.3172, allocations: 177.8 kB / 479.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.3189, allocations: 0.7368 MB / 479.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.3203, allocations: 0.9508 MB / 480.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.322, allocations: 1.193 MB / 482.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.3289, allocations: 4.071 MB / 486.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.329, allocations: 0 / 486.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.329, allocations: 1.375 kB / 486.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002479/0.3292, allocations: 0 / 486.2 MB, free: 5.41 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.008148/0.3374, allocations: 2.645 MB / 488.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3375, allocations: 8.906 kB / 488.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006824/0.3443, allocations: 1.69 MB / 490.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002813/0.3471, allocations: 1.087 MB / 491.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.3473, allocations: 97.73 kB / 491.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003925/0.3477, allocations: 133.3 kB / 491.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.3579, allocations: 6.506 MB / 498.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.803e-05/0.358, allocations: 7.938 kB / 498.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00025/0.3582, allocations: 59.89 kB / 498.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003004/0.3613, allocations: 1.624 MB / 0.4883 GB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.3739, allocations: 6.051 MB / 0.4942 GB, free: 3.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03324/0.4072, allocations: 18.18 MB / 0.5119 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002775/0.41, allocations: 1.555 MB / 0.5135 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008934/0.4109, allocations: 0.5305 MB / 0.514 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003426/0.4144, allocations: 2.152 MB / 0.5161 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.4144, allocations: 39 kB / 0.5161 GB, free: 12.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.264e-06/0.4144, allocations: 0 / 0.5161 GB, free: 12.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.00309/0.4175, allocations: 1.503 MB / 0.5176 GB, free: 11.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.4176, allocations: 63.78 kB / 0.5176 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/0.4206, allocations: 2.008 MB / 0.5196 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/0.4207, allocations: 41.62 kB / 0.5196 GB, free: 9.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.4218, allocations: 1.716 MB / 0.5213 GB, free: 7.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.4221, allocations: 337.4 kB / 0.5216 GB, free: 7.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007595/0.4229, allocations: 0.5679 MB / 0.5222 GB, free: 6.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.423, allocations: 357.9 kB / 0.5225 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.4245, allocations: 0.9266 MB / 0.5234 GB, free: 5.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002487/0.427, allocations: 2.577 MB / 0.526 GB, free: 1.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004229/0.4313, allocations: 3.726 MB / 0.5296 GB, free: 13.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-05/0.4313, allocations: 16 kB / 0.5296 GB, free: 13.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005508/0.4368, allocations: 3.425 MB / 0.533 GB, free: 9.781 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-05/0.4369, allocations: 32 kB / 0.533 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.286e-05/0.437, allocations: 59.94 kB / 0.5331 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.035e-05/0.437, allocations: 80.28 kB / 0.5331 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/0.4388, allocations: 0.6082 MB / 0.5337 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-05/0.4389, allocations: 119.5 kB / 0.5338 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/0.4409, allocations: 433.1 kB / 0.5342 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.4411, allocations: 168 kB / 0.5344 GB, free: 8.297 MB / 414.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.001997/0.4431, allocations: 1.309 MB / 0.5357 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.4433, allocations: 158.9 kB / 0.5358 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.4452, allocations: 1.063 MB / 0.5369 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/0.4453, allocations: 27.92 kB / 0.5369 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.4453, allocations: 3.938 kB / 0.5369 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.4453, allocations: 3.984 kB / 0.5369 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008999/0.4543, allocations: 3.58 MB / 0.5404 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4544, allocations: 4.125 kB / 0.5404 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007902/0.4552, allocations: 111.8 kB / 0.5405 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.38e-05/0.4552, allocations: 4 kB / 0.5405 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-05/0.4553, allocations: 12 kB / 0.5405 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-05/0.4553, allocations: 4 kB / 0.5405 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.4554, allocations: 4.047 kB / 0.5405 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003865/0.4592, allocations: 1.749 MB / 0.5422 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009461/0.4602, allocations: 256.3 kB / 0.5425 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002893/0.4605, allocations: 12 kB / 0.5425 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008207/0.4613, allocations: 35.95 kB / 0.5425 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.4615, allocations: 40.39 kB / 0.5426 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/0.4616, allocations: 23.98 kB / 0.5426 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003338/0.4649, allocations: 1.317 MB / 0.5439 GB, free: 14.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4649, allocations: 0 / 0.5439 GB, free: 14.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004615/0.4696, allocations: 0.6348 MB / 0.5445 GB, free: 13.8 MB / 430.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.0005633/0.4702, allocations: 146.7 kB / 0.5446 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005125/0.4753, allocations: 2.013 MB / 0.5466 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4753, allocations: 0 / 0.5466 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009239/0.4763, allocations: 474.8 kB / 0.5471 GB, free: 11.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.4787, allocations: 296 kB / 0.5473 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.4916, allocations: 4.998 MB / 0.5522 GB, free: 5.863 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003501/0.4952, allocations: 2.168 MB / 0.5543 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003392/0.4986, allocations: 0.8889 MB / 0.5552 GB, free: 2.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/0.4991, allocations: 119.4 kB / 0.5553 GB, free: 2.652 MB / 430.1 MB Notification: Performance of SimCode: time 3.186e-06/0.4991, allocations: 0 / 0.5553 GB, free: 2.652 MB / 430.1 MB Notification: Performance of Templates: time 0.04199/0.5411, allocations: 18.12 MB / 0.573 GB, free: 0.6133 MB / 446.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)