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.0008215/0.0008215, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005628/0.005628, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2069/0.2069, allocations: 9.11 MB / 300.5 MB, free: 2.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003235, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 52.44 MB / 416.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.2114/0.3182, allocations: 9.088 MB / 425.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005143/0.3234, allocations: 2.693 MB / 427.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.3246, allocations: 34.81 kB / 428 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000842/0.3254, allocations: 231.1 kB / 428.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002675/0.3281, allocations: 1.036 MB / 429.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.3283, allocations: 36.86 kB / 429.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00263/0.3309, allocations: 2.685 MB / 432 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.3312, allocations: 153.2 kB / 432.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008235/0.3321, allocations: 0.5223 MB / 432.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.3332, allocations: 0.9966 MB / 433.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.3334, allocations: 96.19 kB / 433.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.3345, allocations: 0.6913 MB / 434.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006652/0.3352, allocations: 0.8872 MB / 435.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008293/0.336, allocations: 1.148 MB / 436.4 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002843/0.3389, allocations: 3.671 MB / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3389, allocations: 0 / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3389, allocations: 0 / 440.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.317e-05/0.339, allocations: 3.281 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.00378/0.3428, allocations: 2.09 MB / 442.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3428, allocations: 17.19 kB / 442.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005987/0.3488, allocations: 1.714 MB / 443.9 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.3505, allocations: 1.083 MB / 445 MB, free: 30.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.066e-05/0.3506, allocations: 99.77 kB / 445.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.351, allocations: 129.5 kB / 445.2 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008771/0.3597, allocations: 6.505 MB / 451.7 MB, free: 27.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.455e-05/0.3599, allocations: 14.47 kB / 451.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002372/0.3601, allocations: 60.45 kB / 451.8 MB, free: 27.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002536/0.3627, allocations: 1.627 MB / 453.4 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.3732, allocations: 6.043 MB / 459.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02647/0.3997, allocations: 18.21 MB / 477.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002718/0.4025, allocations: 1.558 MB / 479.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009204/0.4035, allocations: 0.5292 MB / 479.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003595/0.4071, allocations: 2.146 MB / 481.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.4071, allocations: 39.7 kB / 482 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.735e-06/0.4071, allocations: 0 / 482 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003248/0.4104, allocations: 1.491 MB / 483.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.4104, allocations: 61.22 kB / 483.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/0.4138, allocations: 2.013 MB / 485.5 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/0.4139, allocations: 37.64 kB / 485.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008257/0.4147, allocations: 1.648 MB / 487.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/0.4149, allocations: 324.8 kB / 487.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.4152, allocations: 225 kB / 487.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.4153, allocations: 363.1 kB / 488.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.4168, allocations: 0.9169 MB / 489 MB, free: 7.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002252/0.4191, allocations: 2.572 MB / 491.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003107/0.4222, allocations: 3.729 MB / 495.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.274e-05/0.4223, allocations: 16 kB / 495.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005369/0.4276, allocations: 3.42 MB / 498.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.024e-05/0.4277, allocations: 36 kB / 498.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.567e-05/0.4278, allocations: 56 kB / 498.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.479e-05/0.4279, allocations: 79.94 kB / 498.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.4296, allocations: 0.6121 MB / 499.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-05/0.4297, allocations: 119.5 kB / 499.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.4316, allocations: 411.7 kB / 0.4883 GB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.4318, allocations: 170.2 kB / 0.4885 GB, free: 10.96 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.00205/0.4339, allocations: 1.316 MB / 0.4898 GB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.4341, allocations: 150 kB / 0.4899 GB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.4359, allocations: 1.054 MB / 0.491 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/0.436, allocations: 19.98 kB / 0.491 GB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.4361, allocations: 7.875 kB / 0.491 GB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.4361, allocations: 7.984 kB / 0.491 GB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00655/0.4426, allocations: 3.588 MB / 0.4945 GB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4427, allocations: 8.031 kB / 0.4945 GB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004802/0.4431, allocations: 103.9 kB / 0.4946 GB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.4432, allocations: 0.9375 kB / 0.4946 GB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.158e-05/0.4432, allocations: 20.27 kB / 0.4946 GB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4432, allocations: 4 kB / 0.4946 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4432, allocations: 160 / 0.4946 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.4457, allocations: 1.735 MB / 0.4963 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004158/0.4461, allocations: 262.9 kB / 0.4966 GB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.4464, allocations: 13.95 kB / 0.4966 GB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.4469, allocations: 35.95 kB / 0.4966 GB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.16e-05/0.447, allocations: 36.39 kB / 0.4967 GB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.259e-05/0.4471, allocations: 26.27 kB / 0.4967 GB, free: 2.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.4492, allocations: 1.313 MB / 0.498 GB, free: 1.148 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4492, allocations: 3.938 kB / 0.498 GB, free: 1.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002376/0.4516, allocations: 0.6301 MB / 0.4986 GB, free: 0.5117 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 (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.0003478/0.452, allocations: 141.4 kB / 0.4987 GB, free: 376 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003458/0.4554, allocations: 2.008 MB / 0.5007 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.4555, allocations: 0 / 0.5007 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007554/0.4562, allocations: 475 kB / 0.5011 GB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4581, allocations: 285 kB / 0.5014 GB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009919/0.468, allocations: 6.27 MB / 0.5075 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002806/0.4708, allocations: 2.161 MB / 0.5096 GB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002276/0.4731, allocations: 0.8852 MB / 0.5105 GB, free: 4.258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002902/0.4734, allocations: 119.4 kB / 0.5106 GB, free: 4.145 MB / 382.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4734, allocations: 4 kB / 0.5106 GB, free: 4.141 MB / 382.1 MB Notification: Performance of Templates: time 0.03357/0.507, allocations: 16.4 MB / 0.5266 GB, free: 3.875 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)