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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001297/0.001297, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.001088/0.001088, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.07139/0.07139, allocations: 9.123 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 67.91 kB / 363.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2191, allocations: 51.43 MB / 414.8 MB, free: 25.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00554/0.2247, allocations: 5.842 MB / 420.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2273, allocations: 2.03 MB / 422.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.2277, allocations: 23.94 kB / 422.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005035/0.2282, allocations: 262.5 kB / 422.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001647/0.2299, allocations: 1.097 MB / 424 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.692e-05/0.23, allocations: 39.89 kB / 424.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.2313, allocations: 1.884 MB / 426 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.2315, allocations: 150.7 kB / 426.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003683/0.2318, allocations: 0.6459 MB / 426.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007411/0.2326, allocations: 0.9849 MB / 427.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.2328, allocations: 180 kB / 427.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007381/0.2335, allocations: 0.7411 MB / 428.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005018/0.234, allocations: 0.9467 MB / 429.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000634/0.2347, allocations: 1.192 MB / 430.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002254/0.2369, allocations: 4.037 MB / 434.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2369, allocations: 0 / 434.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2369, allocations: 3.938 kB / 434.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.39e-05/0.237, allocations: 0 / 434.8 MB, free: 4.906 MB / 302.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.003406/0.2404, allocations: 2.575 MB / 437.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2404, allocations: 11.97 kB / 437.4 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005428/0.2459, allocations: 1.678 MB / 439.1 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.2478, allocations: 1.089 MB / 440.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.851e-05/0.2479, allocations: 102.8 kB / 440.3 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002836/0.2482, allocations: 124.3 kB / 440.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007793/0.256, allocations: 6.512 MB / 446.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.802e-05/0.2561, allocations: 7.938 kB / 446.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001969/0.2563, allocations: 59.89 kB / 447 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002489/0.2588, allocations: 1.625 MB / 448.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00918/0.268, allocations: 6.051 MB / 454.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02432/0.2923, allocations: 18.13 MB / 472.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/0.2949, allocations: 1.562 MB / 474.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008019/0.2957, allocations: 0.5343 MB / 474.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003844/0.2996, allocations: 2.141 MB / 477 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.2996, allocations: 39 kB / 477.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.004e-06/0.2996, allocations: 0 / 477.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.002941/0.3026, allocations: 1.49 MB / 478.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.3026, allocations: 67.78 kB / 478.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/0.3053, allocations: 2.007 MB / 480.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.3053, allocations: 41.69 kB / 480.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001021/0.3064, allocations: 1.647 MB / 482.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002509/0.3066, allocations: 323.9 kB / 482.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007089/0.3073, allocations: 0.5635 MB / 483.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3075, allocations: 365.9 kB / 483.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.3088, allocations: 0.9266 MB / 484.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002352/0.3112, allocations: 2.573 MB / 487.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004085/0.3153, allocations: 3.733 MB / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.947e-05/0.3153, allocations: 16 kB / 490.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005447/0.3208, allocations: 3.422 MB / 494.2 MB, free: 6.832 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.3209, allocations: 32 kB / 494.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.934e-05/0.3209, allocations: 56 kB / 494.3 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.383e-05/0.321, allocations: 80 kB / 494.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.3227, allocations: 0.6082 MB / 495 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.62e-05/0.3228, allocations: 119.5 kB / 495.1 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.3248, allocations: 423.9 kB / 495.5 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002227/0.325, allocations: 168 kB / 495.7 MB, free: 5.359 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.001977/0.327, allocations: 1.309 MB / 497 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.3272, allocations: 150 kB / 497.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.3289, allocations: 1.06 MB / 498.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-05/0.329, allocations: 19.98 kB / 498.2 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3291, allocations: 3.938 kB / 498.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.3291, allocations: 7.938 kB / 498.2 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006259/0.3353, allocations: 3.58 MB / 0.4901 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3354, allocations: 8.109 kB / 0.4901 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.3358, allocations: 107.9 kB / 0.4902 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3359, allocations: 0 / 0.4902 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/0.3359, allocations: 15.98 kB / 0.4902 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.3359, allocations: 11.88 kB / 0.4902 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.336, allocations: 0 / 0.4902 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.3383, allocations: 1.732 MB / 0.4919 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004345/0.3388, allocations: 247 kB / 0.4921 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.3389, allocations: 15.98 kB / 0.4921 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.3394, allocations: 31.91 kB / 0.4922 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.3395, allocations: 40.38 kB / 0.4922 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.375e-05/0.3396, allocations: 27.98 kB / 0.4922 GB, free: 12.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001898/0.3415, allocations: 1.313 MB / 0.4935 GB, free: 11.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3415, allocations: 0 / 0.4935 GB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002257/0.3438, allocations: 0.6301 MB / 0.4941 GB, free: 10.91 MB / 382.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.0002841/0.3441, allocations: 139.1 kB / 0.4943 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.3472, allocations: 2.017 MB / 0.4962 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3472, allocations: 192 / 0.4962 GB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006253/0.3478, allocations: 483 kB / 0.4967 GB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.349, allocations: 293.6 kB / 0.497 GB, free: 8.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007566/0.3566, allocations: 4.921 MB / 0.5018 GB, free: 3.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002097/0.3587, allocations: 2.16 MB / 0.5039 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.1588/0.5175, allocations: 0.8851 MB / 0.5048 GB, free: 86.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004928/0.5181, allocations: 119.4 kB / 0.5049 GB, free: 86.91 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5181, allocations: 0 / 0.5049 GB, free: 86.91 MB / 382.1 MB Notification: Performance of Templates: time 0.02797/0.546, allocations: 17.1 MB / 0.5216 GB, free: 80.57 MB / 382.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)