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.001287/0.001287, allocations: 169.3 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0008619/0.0008619, allocations: 96.27 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0369/0.0369, allocations: 8.823 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.43e-05/1.432e-05, allocations: 3 kB / 398.7 MB, free: 47.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 52.39 MB / 451.1 MB, free: 4.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.2209, allocations: 82.69 MB / 0.5213 GB, free: 1.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.2212, allocations: 67.97 kB / 0.5213 GB, free: 1.695 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3106/0.5317, allocations: 46.59 MB / 0.5668 GB, free: 48.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5318, allocations: 0 / 0.5668 GB, free: 48.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.199e-05/0.5319, allocations: 47.94 kB / 0.5669 GB, free: 48.82 MB / 362.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.008133/0.54, allocations: 2.166 MB / 0.569 GB, free: 46.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.5401, allocations: 15.95 kB / 0.569 GB, free: 46.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009132/0.5492, allocations: 1.837 MB / 0.5708 GB, free: 44.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.553, allocations: 1.411 MB / 0.5722 GB, free: 43.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.5532, allocations: 76 kB / 0.5722 GB, free: 43.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.5547, allocations: 127.9 kB / 0.5724 GB, free: 43.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007362/0.5621, allocations: 4.404 MB / 0.5767 GB, free: 38.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.5743, allocations: 5.679 MB / 0.5822 GB, free: 32.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.755e-05/0.5744, allocations: 11.94 kB / 0.5822 GB, free: 32.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000934/0.5754, allocations: 8 kB / 0.5822 GB, free: 32.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001104/0.5765, allocations: 0.7036 MB / 0.5829 GB, free: 32.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02527/0.6018, allocations: 17.28 MB / 0.5998 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002228/0.6041, allocations: 1.59 MB / 0.6013 GB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007041/0.6048, allocations: 498.8 kB / 0.6018 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003526/0.6084, allocations: 2.066 MB / 0.6038 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.6084, allocations: 35 kB / 0.6039 GB, free: 9.984 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 5.26e-06/0.6084, allocations: 4 kB / 0.6039 GB, free: 9.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=80): time 0.001869/0.6103, allocations: 0.9611 MB / 0.6048 GB, free: 9.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.6104, allocations: 59.84 kB / 0.6049 GB, free: 8.941 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002765/0.6131, allocations: 1.504 MB / 0.6063 GB, free: 7.426 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/0.6132, allocations: 29.7 kB / 0.6064 GB, free: 7.391 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009439/0.6142, allocations: 1.715 MB / 0.608 GB, free: 5.648 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.6144, allocations: 315.9 kB / 0.6083 GB, free: 5.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.6146, allocations: 3.938 kB / 0.6083 GB, free: 5.332 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.6148, allocations: 473 kB / 0.6088 GB, free: 4.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.616, allocations: 0.8881 MB / 0.6097 GB, free: 3.969 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.6179, allocations: 2.665 MB / 0.6123 GB, free: 416 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002329/0.6202, allocations: 1.58 MB / 0.6138 GB, free: 14.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.46e-05/0.6203, allocations: 20 kB / 0.6138 GB, free: 14.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.005723/0.626, allocations: 3.185 MB / 0.6169 GB, free: 11.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.51e-05/0.6261, allocations: 36 kB / 0.617 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.981e-05/0.6262, allocations: 60 kB / 0.617 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001123/0.6264, allocations: 96.78 kB / 0.6171 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002113/0.6285, allocations: 0.6589 MB / 0.6178 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001481/0.6286, allocations: 123.5 kB / 0.6179 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/0.631, allocations: 351.8 kB / 0.6182 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/0.6314, allocations: 187.9 kB / 0.6184 GB, free: 10.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 290 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (358): * Single equations (assignments): 354 * 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.0004717/0.6319, allocations: 263.3 kB / 0.6186 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003287/0.6323, allocations: 130.2 kB / 0.6188 GB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.6339, allocations: 0.9461 MB / 0.6197 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/0.634, allocations: 19.98 kB / 0.6197 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.6341, allocations: 0 / 0.6197 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.6341, allocations: 3.984 kB / 0.6197 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005372/0.6394, allocations: 2.81 MB / 0.6225 GB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.6395, allocations: 7.984 kB / 0.6225 GB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/0.64, allocations: 103.9 kB / 0.6226 GB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-06/0.64, allocations: 7.984 kB / 0.6226 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.968e-05/0.64, allocations: 15.98 kB / 0.6226 GB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.6401, allocations: 4 kB / 0.6226 GB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.6401, allocations: 0 / 0.6226 GB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.6422, allocations: 1.664 MB / 0.6242 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000361/0.6426, allocations: 231.2 kB / 0.6244 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.6427, allocations: 7.984 kB / 0.6244 GB, free: 3.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000518/0.6432, allocations: 20.22 kB / 0.6245 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.451e-05/0.6433, allocations: 36.39 kB / 0.6245 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.515e-05/0.6434, allocations: 27.98 kB / 0.6245 GB, free: 3.664 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001452/0.6448, allocations: 1.022 MB / 0.6255 GB, free: 2.641 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6449, allocations: 0 / 0.6255 GB, free: 2.641 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00245/0.6473, allocations: 0.6219 MB / 0.6261 GB, free: 2.016 MB / 378.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 () * 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.000304/0.6476, allocations: 135 kB / 0.6263 GB, free: 1.871 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.6504, allocations: 1.913 MB / 0.6281 GB, free: 15.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6504, allocations: 192 / 0.6281 GB, free: 15.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005349/0.6509, allocations: 437.8 kB / 0.6285 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.6517, allocations: 170.4 kB / 0.6287 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007792/0.6595, allocations: 4 MB / 0.6326 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002589/0.6621, allocations: 2.204 MB / 0.6348 GB, free: 9.094 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002263/0.6644, allocations: 0.915 MB / 0.6357 GB, free: 8.172 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.6647, allocations: 107.4 kB / 0.6358 GB, free: 8.066 MB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6647, allocations: 0 / 0.6358 GB, free: 8.066 MB / 394.7 MB Notification: Performance of Templates: time 0.02457/0.6893, allocations: 12.37 MB / 0.6478 GB, free: 11.74 MB / 410.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)