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.005497/0.005497, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001345/0.001345, allocations: 191 kB / 16.67 MB, free: 5.934 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.09841/0.09841, allocations: 9.123 MB / 299.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 63.91 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09547/0.09747, allocations: 51.45 MB / 465.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007777/0.1053, allocations: 5.836 MB / 471.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004143/0.1095, allocations: 2.033 MB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008402/0.1103, allocations: 20 kB / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008436/0.1112, allocations: 262.4 kB / 473.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002775/0.1141, allocations: 1.098 MB / 474.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.1143, allocations: 39.89 kB / 474.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002823/0.1171, allocations: 1.886 MB / 476.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.1175, allocations: 138.8 kB / 476.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.1187, allocations: 0.6498 MB / 477.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.1203, allocations: 1 MB / 478.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003765/0.1207, allocations: 176 kB / 478.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001373/0.1221, allocations: 0.7333 MB / 479.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.1232, allocations: 0.9506 MB / 480.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001548/0.1248, allocations: 1.196 MB / 481.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005159/0.1299, allocations: 4.078 MB / 485.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.13, allocations: 0 / 485.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.13, allocations: 3.938 kB / 485.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001148/0.1301, allocations: 4 kB / 485.7 MB, free: 13.97 MB / 366.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.006363/0.1365, allocations: 2.632 MB / 488.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1365, allocations: 8.031 kB / 488.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005794/0.1371, allocations: 433.1 kB / 488.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006666/0.1438, allocations: 1.696 MB / 490.4 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.1459, allocations: 1.085 MB / 491.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.146, allocations: 102.8 kB / 491.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003459/0.1464, allocations: 128.3 kB / 491.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009812/0.1562, allocations: 6.497 MB / 498.2 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.862e-05/0.1563, allocations: 15.88 kB / 498.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.1565, allocations: 63.88 kB / 498.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/0.1595, allocations: 1.621 MB / 499.9 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01212/0.1716, allocations: 6.04 MB / 0.4941 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2423/0.414, allocations: 18.19 MB / 0.5119 GB, free: 30.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002393/0.4164, allocations: 1.553 MB / 0.5134 GB, free: 30.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007081/0.4171, allocations: 0.5294 MB / 0.5139 GB, free: 30.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003005/0.4202, allocations: 2.143 MB / 0.516 GB, free: 29.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.4202, allocations: 40.5 kB / 0.516 GB, free: 29.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.545e-06/0.4202, allocations: 0 / 0.516 GB, free: 29.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.003068/0.4233, allocations: 1.509 MB / 0.5175 GB, free: 28.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.4233, allocations: 57.44 kB / 0.5176 GB, free: 28.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/0.4264, allocations: 2.015 MB / 0.5195 GB, free: 27.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.4264, allocations: 38.34 kB / 0.5196 GB, free: 27.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008171/0.4272, allocations: 1.716 MB / 0.5212 GB, free: 26.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.4274, allocations: 332 kB / 0.5216 GB, free: 26.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006454/0.4281, allocations: 0.5717 MB / 0.5221 GB, free: 26.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4282, allocations: 365.2 kB / 0.5225 GB, free: 25.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4296, allocations: 0.9171 MB / 0.5234 GB, free: 25.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.4315, allocations: 2.575 MB / 0.5259 GB, free: 23.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.4347, allocations: 3.723 MB / 0.5295 GB, free: 19.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.092e-05/0.4348, allocations: 17.88 kB / 0.5295 GB, free: 19.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004584/0.4394, allocations: 3.439 MB / 0.5329 GB, free: 18.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.4394, allocations: 33.03 kB / 0.5329 GB, free: 18.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.986e-05/0.4395, allocations: 58.88 kB / 0.533 GB, free: 18.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-05/0.4396, allocations: 83.06 kB / 0.5331 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.4411, allocations: 0.6078 MB / 0.5336 GB, free: 18.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.651e-05/0.4412, allocations: 117 kB / 0.5338 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.443, allocations: 422.8 kB / 0.5342 GB, free: 18.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.4432, allocations: 184.2 kB / 0.5343 GB, free: 18.17 MB / 382.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.001484/0.4447, allocations: 1.311 MB / 0.5356 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.4449, allocations: 157.7 kB / 0.5358 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.4464, allocations: 1.057 MB / 0.5368 GB, free: 17.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/0.4466, allocations: 27.2 kB / 0.5368 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.4466, allocations: 0 / 0.5368 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4466, allocations: 0 / 0.5368 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/0.4511, allocations: 3.588 MB / 0.5403 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4511, allocations: 3.562 kB / 0.5403 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.4516, allocations: 103.6 kB / 0.5404 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4516, allocations: 3.781 kB / 0.5404 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.4516, allocations: 19.23 kB / 0.5405 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.4516, allocations: 7.688 kB / 0.5405 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4516, allocations: 1.641 kB / 0.5405 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.4534, allocations: 1.745 MB / 0.5422 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002692/0.4537, allocations: 256 kB / 0.5424 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.4539, allocations: 15.62 kB / 0.5424 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.4544, allocations: 35.81 kB / 0.5425 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.897e-05/0.4544, allocations: 40.33 kB / 0.5425 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-05/0.4545, allocations: 20.69 kB / 0.5425 GB, free: 14.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001348/0.4559, allocations: 1.325 MB / 0.5438 GB, free: 12.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4559, allocations: 0 / 0.5438 GB, free: 12.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001917/0.4578, allocations: 0.6348 MB / 0.5444 GB, free: 12.09 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.002066/0.4599, allocations: 2.355 MB / 0.5467 GB, free: 9.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.4626, allocations: 2.021 MB / 0.5487 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4626, allocations: 0 / 0.5487 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.4631, allocations: 478.4 kB / 0.5492 GB, free: 7.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.4644, allocations: 285.7 kB / 0.5494 GB, free: 6.957 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/0.4918, allocations: 20.06 MB / 0.569 GB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002374/0.4942, allocations: 2.16 MB / 0.5711 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002009/0.4962, allocations: 0.889 MB / 0.572 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/0.4975, allocations: 0.9288 MB / 0.5729 GB, free: 12.78 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4975, allocations: 0 / 0.5729 GB, free: 12.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0714/0.5689, allocations: 33.44 MB / 0.6056 GB, free: 11.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.82, allocations: 6.172 kB / 0.6056 GB, free: 11.5 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.FreeBody_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)