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.002049/0.002049, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.495/1.495, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2158/0.2158, allocations: 9.115 MB / 299.5 MB, free: 1.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 63.91 kB / 362 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 51.43 MB / 413.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007246/0.121, allocations: 5.842 MB / 419.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00418/0.1253, allocations: 2.029 MB / 421.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009447/0.1263, allocations: 20 kB / 421.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009414/0.1272, allocations: 266.4 kB / 421.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003153/0.1304, allocations: 1.101 MB / 422.7 MB, free: 152 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.1308, allocations: 35.95 kB / 422.8 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2313/0.3621, allocations: 1.874 MB / 424.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005182/0.3627, allocations: 152.4 kB / 424.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3641, allocations: 0.6405 MB / 425.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.3659, allocations: 0.997 MB / 426.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007135/0.3666, allocations: 178.9 kB / 426.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001841/0.3685, allocations: 0.7361 MB / 427.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001238/0.3698, allocations: 0.9519 MB / 428.3 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.3709, allocations: 1.188 MB / 429.5 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003638/0.3746, allocations: 3.864 MB / 433.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.3746, allocations: 0.7812 kB / 433.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3746, allocations: 0 / 433.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.536e-05/0.3747, allocations: 0.5312 kB / 433.3 MB, free: 35.1 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.005716/0.3804, allocations: 2.577 MB / 435.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.3805, allocations: 10.91 kB / 435.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005762/0.3811, allocations: 429.2 kB / 436.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006088/0.3872, allocations: 1.674 MB / 438 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002404/0.3896, allocations: 1.079 MB / 439.1 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.412e-05/0.3897, allocations: 104.8 kB / 439.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/0.3901, allocations: 125.5 kB / 439.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009614/0.3997, allocations: 6.509 MB / 445.8 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.161e-05/0.3998, allocations: 17.5 kB / 445.9 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006079/0.4004, allocations: 63.14 kB / 445.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002701/0.4032, allocations: 1.624 MB / 447.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/0.4153, allocations: 6.041 MB / 453.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0346/0.4499, allocations: 18.2 MB / 471.8 MB, free: 16.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.4533, allocations: 1.549 MB / 473.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.4544, allocations: 0.5334 MB / 473.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004894/0.4593, allocations: 2.146 MB / 476 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.4594, allocations: 37.28 kB / 476 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 4.949e-06/0.4594, allocations: 0 / 476 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=80): time 0.003942/0.4634, allocations: 1.488 MB / 477.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.4635, allocations: 65.84 kB / 477.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004722/0.4682, allocations: 2.01 MB / 479.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.4684, allocations: 35.92 kB / 479.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.4697, allocations: 1.652 MB / 481.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.4702, allocations: 319.5 kB / 481.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4714, allocations: 0.5626 MB / 482.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.4716, allocations: 364.3 kB / 482.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/0.4734, allocations: 0.9225 MB / 483.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/0.4758, allocations: 2.574 MB / 486 MB, free: 7.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003986/0.4798, allocations: 3.726 MB / 489.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.354e-05/0.4799, allocations: 18.19 kB / 489.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006117/0.4861, allocations: 3.433 MB / 493.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.006e-05/0.4862, allocations: 28 kB / 493.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.713e-05/0.4863, allocations: 60 kB / 493.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.791e-05/0.4864, allocations: 77.27 kB / 493.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.4882, allocations: 0.6121 MB / 494 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.631e-05/0.4882, allocations: 123.4 kB / 494.1 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.4907, allocations: 414.1 kB / 494.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003795/0.4911, allocations: 176 kB / 494.7 MB, free: 15.7 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.002608/0.4937, allocations: 1.305 MB / 496 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000385/0.4941, allocations: 146 kB / 496.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.4964, allocations: 1.07 MB / 497.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/0.4965, allocations: 19.98 kB / 497.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4965, allocations: 3.938 kB / 497.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.4965, allocations: 3.984 kB / 497.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008767/0.5053, allocations: 3.583 MB / 0.4891 GB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5053, allocations: 4 kB / 0.4891 GB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005373/0.5059, allocations: 103.9 kB / 0.4892 GB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.5059, allocations: 4 kB / 0.4892 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.445e-05/0.506, allocations: 19.98 kB / 0.4892 GB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.076e-06/0.506, allocations: 4 kB / 0.4892 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.506, allocations: 0.75 kB / 0.4892 GB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.5088, allocations: 1.742 MB / 0.4909 GB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.5094, allocations: 243.1 kB / 0.4911 GB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004215/0.5099, allocations: 19.98 kB / 0.4911 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007361/0.5106, allocations: 27.97 kB / 0.4912 GB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.266e-05/0.5107, allocations: 32.39 kB / 0.4912 GB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.145e-05/0.5108, allocations: 27.98 kB / 0.4912 GB, free: 7.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002798/0.5136, allocations: 1.31 MB / 0.4925 GB, free: 5.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5136, allocations: 5.062 kB / 0.4925 GB, free: 5.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003206/0.5168, allocations: 0.6332 MB / 0.4931 GB, free: 5.277 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.003403/0.5202, allocations: 2.365 MB / 0.4954 GB, free: 2.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.5249, allocations: 2.434 MB / 0.4978 GB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.5249, allocations: 4.312 kB / 0.4978 GB, free: 460 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000736/0.5257, allocations: 477.2 kB / 0.4983 GB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.5279, allocations: 294.9 kB / 0.4986 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03779/0.5657, allocations: 20.92 MB / 0.519 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00334/0.5691, allocations: 2.16 MB / 0.5211 GB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002452/0.5716, allocations: 0.8851 MB / 0.522 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001676/0.5733, allocations: 0.9288 MB / 0.5229 GB, free: 4.418 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5733, allocations: 4 kB / 0.5229 GB, free: 4.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07079/0.6441, allocations: 32.88 MB / 0.555 GB, free: 3.738 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.234/9.879, allocations: 3.938 kB / 0.555 GB, free: 3.734 MB / 430.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)