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.001364/0.001364, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001765/0.001765, allocations: 194 kB / 16.25 MB, free: 6.617 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2072/0.2072, allocations: 9.098 MB / 299.2 MB, free: 1.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1175, allocations: 51.44 MB / 413 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.01208/0.1296, allocations: 9.585 MB / 422.5 MB, free: 216 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2243/0.3539, allocations: 2.703 MB / 425.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.3556, allocations: 30.75 kB / 425.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007116/0.3563, allocations: 229.4 kB / 425.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002344/0.3587, allocations: 1.035 MB / 426.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.3588, allocations: 28.36 kB / 426.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.3606, allocations: 1.896 MB / 428.5 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.3609, allocations: 151.8 kB / 428.6 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007177/0.3616, allocations: 0.6485 MB / 429.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.3626, allocations: 1.078 MB / 430.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002235/0.3629, allocations: 181.8 kB / 430.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.3639, allocations: 0.7463 MB / 431.3 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006091/0.3645, allocations: 0.9606 MB / 432.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006975/0.3652, allocations: 1.204 MB / 433.4 MB, free: 34.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002833/0.3681, allocations: 3.886 MB / 437.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3681, allocations: 0 / 437.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3681, allocations: 0 / 437.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.526e-05/0.3682, allocations: 0 / 437.3 MB, free: 32.75 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.004384/0.3725, allocations: 2.569 MB / 439.9 MB, free: 31.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.3726, allocations: 11.44 kB / 439.9 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004219/0.373, allocations: 431.8 kB / 440.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005571/0.3786, allocations: 1.673 MB / 442 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.3804, allocations: 1.083 MB / 443.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-05/0.3805, allocations: 101.3 kB / 443.2 MB, free: 30.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002736/0.3808, allocations: 126.3 kB / 443.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008257/0.389, allocations: 6.502 MB / 449.8 MB, free: 27.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.84e-05/0.3891, allocations: 18.09 kB / 449.8 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002071/0.3893, allocations: 67.78 kB / 449.9 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002229/0.3916, allocations: 1.624 MB / 451.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009937/0.4015, allocations: 6.041 MB / 457.5 MB, free: 24.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02827/0.4298, allocations: 18.2 MB / 475.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003016/0.4329, allocations: 1.554 MB / 477.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008273/0.4337, allocations: 0.5368 MB / 477.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003764/0.4375, allocations: 2.137 MB / 480 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.4376, allocations: 36.38 kB / 480 MB, free: 11.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 3.406e-06/0.4376, allocations: 1.375 kB / 480 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003219/0.4408, allocations: 1.494 MB / 481.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.4408, allocations: 62.97 kB / 481.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002865/0.4437, allocations: 2.01 MB / 483.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.4438, allocations: 36.83 kB / 483.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008498/0.4446, allocations: 1.653 MB / 485.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.4449, allocations: 320.3 kB / 485.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006892/0.4456, allocations: 0.5638 MB / 486.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.4457, allocations: 364.2 kB / 486.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/0.447, allocations: 0.92 MB / 487.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.449, allocations: 2.578 MB / 490 MB, free: 4.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.4521, allocations: 3.723 MB / 493.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-05/0.4521, allocations: 16 kB / 493.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.00554/0.4576, allocations: 3.423 MB / 497.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.8e-05/0.4577, allocations: 40.19 kB / 497.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.933e-05/0.4578, allocations: 56 kB / 497.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-05/0.4579, allocations: 80 kB / 497.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.4596, allocations: 0.616 MB / 497.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-05/0.4597, allocations: 111.9 kB / 498 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.4617, allocations: 413.3 kB / 498.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.4619, allocations: 174.2 kB / 498.6 MB, free: 10.88 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.002032/0.464, allocations: 1.316 MB / 499.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.4642, allocations: 150 kB / 0.4884 GB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.466, allocations: 1.062 MB / 0.4894 GB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-05/0.4661, allocations: 23.92 kB / 0.4894 GB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4661, allocations: 0 / 0.4894 GB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4661, allocations: 3.984 kB / 0.4894 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/0.4721, allocations: 3.583 MB / 0.4929 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4722, allocations: 4.125 kB / 0.4929 GB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.4727, allocations: 108 kB / 0.493 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.4727, allocations: 7.984 kB / 0.493 GB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.4727, allocations: 16 kB / 0.4931 GB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.4728, allocations: 3.938 kB / 0.4931 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4728, allocations: 4 kB / 0.4931 GB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.4752, allocations: 1.738 MB / 0.4948 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.4757, allocations: 247.1 kB / 0.495 GB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.4759, allocations: 8 kB / 0.495 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000503/0.4764, allocations: 31.95 kB / 0.495 GB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/0.4765, allocations: 45.69 kB / 0.4951 GB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.837e-05/0.4765, allocations: 26.03 kB / 0.4951 GB, free: 2.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002093/0.4786, allocations: 1.313 MB / 0.4964 GB, free: 1.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4786, allocations: 0 / 0.4964 GB, free: 1.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002434/0.4811, allocations: 0.634 MB / 0.497 GB, free: 452 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.00286/0.4839, allocations: 2.346 MB / 0.4993 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004384/0.4883, allocations: 2.439 MB / 0.5017 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.4884, allocations: 1.5 kB / 0.5017 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006471/0.489, allocations: 474.4 kB / 0.5021 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.4907, allocations: 300.8 kB / 0.5024 GB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03475/0.5255, allocations: 22.05 MB / 0.524 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.5278, allocations: 2.164 MB / 0.5261 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002226/0.53, allocations: 0.8891 MB / 0.5269 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/0.5313, allocations: 0.9327 MB / 0.5278 GB, free: 14.44 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5313, allocations: 0 / 0.5278 GB, free: 14.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05845/0.5898, allocations: 32.78 MB / 0.5599 GB, free: 13.91 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.59, allocations: 185.4 kB / 0.56 GB, free: 13.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.681/3.271, allocations: 0 / 0.56 GB, free: 13.65 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)