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.01091/0.01091, allocations: 96.89 kB / 15.73 MB, free: 6.004 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.002251/0.00225, allocations: 196.5 kB / 16.68 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 2.433/2.433, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.3254/0.3254, allocations: 9.101 MB / 299.6 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 59.91 kB / 414.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4618/0.4646, allocations: 51.43 MB / 465.6 MB, free: 17.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.012/0.4766, allocations: 5.836 MB / 471.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007684/0.4844, allocations: 2.027 MB / 473.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002253/0.4867, allocations: 24.78 kB / 473.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.4886, allocations: 267 kB / 473.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006734/0.4954, allocations: 1.125 MB / 474.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005571/0.496, allocations: 32.41 kB / 474.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005936/0.502, allocations: 1.889 MB / 476.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000784/0.5028, allocations: 152 kB / 476.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.5049, allocations: 0.6458 MB / 477.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.5076, allocations: 0.9907 MB / 478.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001068/0.5087, allocations: 181.3 kB / 478.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003368/0.5121, allocations: 0.7376 MB / 479.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002059/0.5142, allocations: 0.9432 MB / 480.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00352/0.5178, allocations: 1.198 MB / 481.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008769/0.5266, allocations: 4.07 MB / 485.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.5267, allocations: 0 / 485.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5267, allocations: 1.375 kB / 485.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001869/0.5269, allocations: 4 kB / 485.7 MB, free: 5.113 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.01155/0.5385, allocations: 2.637 MB / 488.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.5385, allocations: 13.69 kB / 488.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001699/0.5403, allocations: 429.7 kB / 488.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01304/0.5533, allocations: 1.696 MB / 490.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005249/0.5587, allocations: 1.08 MB / 491.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/0.5589, allocations: 105.9 kB / 491.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/0.5601, allocations: 125.1 kB / 491.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02185/0.5819, allocations: 6.504 MB / 498.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.5821, allocations: 15.88 kB / 498.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009825/0.5831, allocations: 63.88 kB / 498.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005474/0.5886, allocations: 1.625 MB / 500 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02362/0.6123, allocations: 6.04 MB / 0.4941 GB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06142/0.6738, allocations: 18.18 MB / 0.5119 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005741/0.6796, allocations: 1.555 MB / 0.5134 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.6815, allocations: 0.5344 MB / 0.5139 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008741/0.6904, allocations: 2.144 MB / 0.516 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001384/0.6906, allocations: 42.94 kB / 0.5161 GB, free: 12.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 7.814e-06/0.6906, allocations: 0 / 0.5161 GB, free: 12.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.006857/0.6975, allocations: 1.495 MB / 0.5175 GB, free: 10.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.6976, allocations: 63.78 kB / 0.5176 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007206/0.7049, allocations: 2.019 MB / 0.5196 GB, free: 8.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.7052, allocations: 33.7 kB / 0.5196 GB, free: 8.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002253/0.7074, allocations: 1.709 MB / 0.5213 GB, free: 6.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008321/0.7083, allocations: 341.4 kB / 0.5216 GB, free: 6.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002359/0.7107, allocations: 0.5718 MB / 0.5221 GB, free: 5.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003827/0.7111, allocations: 361.9 kB / 0.5225 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003241/0.7144, allocations: 0.9188 MB / 0.5234 GB, free: 4.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006007/0.7204, allocations: 2.577 MB / 0.5259 GB, free: 1.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009239/0.7298, allocations: 3.723 MB / 0.5295 GB, free: 12.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.73, allocations: 16 kB / 0.5296 GB, free: 12.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.01435/0.7443, allocations: 3.428 MB / 0.5329 GB, free: 9.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001778/0.7446, allocations: 31.94 kB / 0.5329 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/0.7448, allocations: 60 kB / 0.533 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.745, allocations: 76.78 kB / 0.5331 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/0.7492, allocations: 0.6237 MB / 0.5337 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002166/0.7495, allocations: 115.9 kB / 0.5338 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005016/0.7545, allocations: 417 kB / 0.5342 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.7556, allocations: 184 kB / 0.5344 GB, free: 7.746 MB / 414.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.005376/0.7611, allocations: 1.309 MB / 0.5356 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007386/0.7618, allocations: 158.9 kB / 0.5358 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004131/0.766, allocations: 1.067 MB / 0.5368 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001893/0.7662, allocations: 23.92 kB / 0.5369 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.7663, allocations: 0 / 0.5369 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.483e-05/0.7663, allocations: 8.016 kB / 0.5369 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/0.7824, allocations: 3.592 MB / 0.5404 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/0.7825, allocations: 3.938 kB / 0.5404 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.7836, allocations: 99.88 kB / 0.5405 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.547e-05/0.7837, allocations: 4 kB / 0.5405 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.7839, allocations: 19.98 kB / 0.5405 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-05/0.7839, allocations: 4 kB / 0.5405 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.7839, allocations: 0 / 0.5405 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.7891, allocations: 1.749 MB / 0.5422 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.7902, allocations: 255.9 kB / 0.5424 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006007/0.7909, allocations: 19.98 kB / 0.5425 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.7922, allocations: 27.97 kB / 0.5425 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.7924, allocations: 32.39 kB / 0.5425 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.7926, allocations: 27.98 kB / 0.5426 GB, free: 15.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004738/0.7973, allocations: 1.31 MB / 0.5438 GB, free: 13.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.7974, allocations: 0 / 0.5438 GB, free: 13.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005991/0.8034, allocations: 0.6386 MB / 0.5445 GB, free: 13.26 MB / 430.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.006231/0.8097, allocations: 2.367 MB / 0.5468 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006933/0.8167, allocations: 2.017 MB / 0.5487 GB, free: 8.844 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/0.8167, allocations: 4.125 kB / 0.5487 GB, free: 8.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.8181, allocations: 474.5 kB / 0.5492 GB, free: 8.375 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.8218, allocations: 284.4 kB / 0.5495 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06833/0.8902, allocations: 20.07 MB / 0.5691 GB, free: 1.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006444/0.8967, allocations: 2.172 MB / 0.5712 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004756/0.9015, allocations: 0.8889 MB / 0.5721 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003117/0.9047, allocations: 0.9249 MB / 0.573 GB, free: 13.86 MB / 462.1 MB Notification: Performance of SimCode: time 1.924e-06/0.9047, allocations: 4 kB / 0.573 GB, free: 13.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4314/1.336, allocations: 33.42 MB / 0.6056 GB, free: 112.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.33/22.67, allocations: 1.438 kB / 0.6056 GB, free: 112.4 MB / 462.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)