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: "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001687/0.001687, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2464/0.2464, allocations: 9.098 MB / 299 MB, free: 1.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 55.91 kB / 361.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1221, allocations: 51.43 MB / 412.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.01054/0.1327, allocations: 9.582 MB / 422.4 MB, free: 420 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2031/0.3358, allocations: 2.727 MB / 425.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.3373, allocations: 31.72 kB / 425.1 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006253/0.3379, allocations: 230.9 kB / 425.3 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.34, allocations: 1.037 MB / 426.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001221/0.3402, allocations: 35.06 kB / 426.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00205/0.3422, allocations: 2.688 MB / 429.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.3425, allocations: 147.8 kB / 429.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005974/0.3431, allocations: 0.5322 MB / 429.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000932/0.344, allocations: 0.9985 MB / 430.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001849/0.3442, allocations: 98 kB / 430.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009924/0.3452, allocations: 0.6906 MB / 431.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000536/0.3458, allocations: 0.8781 MB / 432.4 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006774/0.3465, allocations: 1.114 MB / 433.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.3489, allocations: 3.759 MB / 437.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3489, allocations: 0 / 437.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3489, allocations: 0 / 437.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.85e-05/0.3489, allocations: 0 / 437.3 MB, free: 33.01 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.004164/0.3531, allocations: 2.569 MB / 439.9 MB, free: 31.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3532, allocations: 10.16 kB / 439.9 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004255/0.3536, allocations: 428.9 kB / 440.3 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005575/0.3592, allocations: 1.679 MB / 442 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/0.3613, allocations: 1.078 MB / 443.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.774e-05/0.3613, allocations: 110.4 kB / 443.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/0.3616, allocations: 130 kB / 443.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008042/0.3697, allocations: 6.501 MB / 449.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.992e-05/0.3698, allocations: 14.94 kB / 449.8 MB, free: 27.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/0.37, allocations: 61.61 kB / 449.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002178/0.3722, allocations: 1.626 MB / 451.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.3832, allocations: 6.042 MB / 457.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02878/0.412, allocations: 18.2 MB / 475.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003048/0.4151, allocations: 1.549 MB / 477.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009479/0.4161, allocations: 0.5411 MB / 477.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004148/0.4203, allocations: 2.141 MB / 480 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.4203, allocations: 39.42 kB / 480 MB, free: 11.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.196e-06/0.4204, allocations: 0 / 480 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003518/0.4239, allocations: 1.494 MB / 481.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.4239, allocations: 67.17 kB / 481.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/0.4275, allocations: 2.002 MB / 483.6 MB, free: 10 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.4276, allocations: 36.27 kB / 483.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.4286, allocations: 1.655 MB / 485.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003506/0.429, allocations: 315.3 kB / 485.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009531/0.4299, allocations: 0.5627 MB / 486.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4301, allocations: 370.3 kB / 486.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.4317, allocations: 0.9224 MB / 487.4 MB, free: 7.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002352/0.434, allocations: 2.568 MB / 490 MB, free: 4.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003398/0.4374, allocations: 3.73 MB / 493.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.764e-05/0.4375, allocations: 16 kB / 493.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006455/0.444, allocations: 3.432 MB / 497.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.614e-05/0.4441, allocations: 28 kB / 497.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-05/0.4442, allocations: 60 kB / 497.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.631e-05/0.4442, allocations: 76 kB / 497.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.4462, allocations: 0.6121 MB / 497.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001092/0.4463, allocations: 119.7 kB / 498.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.4487, allocations: 416 kB / 498.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002936/0.449, allocations: 178.1 kB / 498.6 MB, free: 10.75 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.002174/0.4512, allocations: 1.304 MB / 499.9 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.4515, allocations: 150 kB / 0.4884 GB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.4536, allocations: 1.067 MB / 0.4894 GB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/0.4537, allocations: 23.92 kB / 0.4894 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4537, allocations: 0 / 0.4894 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.4538, allocations: 3.984 kB / 0.4894 GB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007735/0.4615, allocations: 3.583 MB / 0.4929 GB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4615, allocations: 0 / 0.4929 GB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005498/0.4621, allocations: 107.8 kB / 0.493 GB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.4621, allocations: 4.75 kB / 0.493 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.594e-05/0.4622, allocations: 19.98 kB / 0.4931 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.4622, allocations: 4 kB / 0.4931 GB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4622, allocations: 0 / 0.4931 GB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.4648, allocations: 1.737 MB / 0.4948 GB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000504/0.4653, allocations: 247.1 kB / 0.495 GB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.4656, allocations: 16.28 kB / 0.495 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006332/0.4663, allocations: 39.89 kB / 0.4951 GB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.4664, allocations: 32.39 kB / 0.4951 GB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/0.4664, allocations: 27.22 kB / 0.4951 GB, free: 2.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002176/0.4686, allocations: 1.313 MB / 0.4964 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4686, allocations: 0 / 0.4964 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002401/0.471, allocations: 0.6379 MB / 0.497 GB, free: 336 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.002962/0.474, allocations: 2.351 MB / 0.4993 GB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003493/0.4775, allocations: 2.009 MB / 0.5013 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4775, allocations: 4.25 kB / 0.5013 GB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006517/0.4782, allocations: 478.4 kB / 0.5017 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.4799, allocations: 263.6 kB / 0.502 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/0.5151, allocations: 22.06 MB / 0.5235 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002704/0.5178, allocations: 2.162 MB / 0.5256 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002323/0.5202, allocations: 0.8853 MB / 0.5265 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/0.5218, allocations: 0.9288 MB / 0.5274 GB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 1.373e-06/0.5218, allocations: 4 kB / 0.5274 GB, free: 14.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05582/0.5776, allocations: 32.22 MB / 0.5589 GB, free: 14.79 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.5779, allocations: 184.9 kB / 0.5591 GB, free: 14.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.935, allocations: 0 / 0.5591 GB, free: 14.54 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)