Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.004857/0.004857, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001303/0.001303, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04847/0.04847, allocations: 9.119 MB / 299.7 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 59.91 kB / 414.1 MB, free: 21.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09567, allocations: 51.45 MB / 465.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008539/0.1042, allocations: 7.004 MB / 472.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005046/0.1093, allocations: 2.355 MB / 474.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007711/0.1101, allocations: 31.94 kB / 475 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008097/0.111, allocations: 314 kB / 475.3 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.114, allocations: 1.261 MB / 476.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.1144, allocations: 79.84 kB / 476.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002667/0.1171, allocations: 2.158 MB / 478.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009513/0.118, allocations: 0.7153 MB / 479.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009747/0.119, allocations: 0.7587 MB / 480.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001861/0.1209, allocations: 1.125 MB / 481.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005497/0.1214, allocations: 200 kB / 481.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.1232, allocations: 0.8035 MB / 482.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.1243, allocations: 1.064 MB / 483.4 MB, free: 268 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.1258, allocations: 1.351 MB / 484.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005522/0.1313, allocations: 4.505 MB / 489.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.1314, allocations: 3.984 kB / 489.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1314, allocations: 0 / 489.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.163e-05/0.1315, allocations: 0 / 489.3 MB, free: 10.38 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.007328/0.1388, allocations: 3.433 MB / 492.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1389, allocations: 8.031 kB / 492.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006787/0.1395, allocations: 484.1 kB / 493.2 MB, free: 6.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006674/0.1462, allocations: 1.734 MB / 494.9 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002388/0.1487, allocations: 1.202 MB / 496.1 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.1488, allocations: 123.3 kB / 496.3 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004312/0.1492, allocations: 156 kB / 496.4 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.1611, allocations: 7.208 MB / 0.4918 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.852e-05/0.1612, allocations: 19.77 kB / 0.4918 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002703/0.1614, allocations: 83.88 kB / 0.4919 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003047/0.1645, allocations: 1.73 MB / 0.4936 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.1777, allocations: 6.588 MB / 0.5 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2287/0.4065, allocations: 21.14 MB / 0.5207 GB, free: 28.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003778/0.4103, allocations: 2.027 MB / 0.5227 GB, free: 27.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009963/0.4113, allocations: 0.6778 MB / 0.5233 GB, free: 27.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004267/0.4156, allocations: 3.28 MB / 0.5265 GB, free: 25.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.4157, allocations: 42.66 kB / 0.5266 GB, free: 25.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=106): time 3.186e-06/0.4157, allocations: 1.344 kB / 0.5266 GB, free: 25.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.009852/0.4255, allocations: 5.572 MB / 0.532 GB, free: 22.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.4256, allocations: 64.3 kB / 0.5321 GB, free: 22.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/0.4283, allocations: 2.277 MB / 0.5343 GB, free: 21.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.93e-05/0.4284, allocations: 41.17 kB / 0.5343 GB, free: 21.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008109/0.4292, allocations: 1.909 MB / 0.5362 GB, free: 19.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.4295, allocations: 484 kB / 0.5367 GB, free: 19.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007086/0.4302, allocations: 0.6662 MB / 0.5373 GB, free: 19.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.159e-05/0.4302, allocations: 309 kB / 0.5376 GB, free: 18.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.4316, allocations: 1.098 MB / 0.5387 GB, free: 18.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/0.4336, allocations: 2.959 MB / 0.5416 GB, free: 15.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.4372, allocations: 4.376 MB / 0.5458 GB, free: 10.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.02e-05/0.4373, allocations: 21.88 kB / 0.5459 GB, free: 10.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.005354/0.4426, allocations: 4.138 MB / 0.5499 GB, free: 6.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.4427, allocations: 32 kB / 0.5499 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.957e-05/0.4427, allocations: 68 kB / 0.55 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004391/0.4432, allocations: 204.7 kB / 0.5502 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.445, allocations: 0.7253 MB / 0.5509 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.4472, allocations: 2.714 MB / 0.5536 GB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.4493, allocations: 163.8 kB / 0.5537 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002446/0.4496, allocations: 204 kB / 0.5539 GB, free: 2.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (395): * Single equations (assignments): 390 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001706/0.4513, allocations: 1.43 MB / 0.5553 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002531/0.4516, allocations: 190.7 kB / 0.5555 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.4543, allocations: 1.615 MB / 0.5571 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/0.4544, allocations: 31.8 kB / 0.5571 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4544, allocations: 4 kB / 0.5571 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.4545, allocations: 7.922 kB / 0.5571 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008779/0.4632, allocations: 4.858 MB / 0.5619 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4633, allocations: 4 kB / 0.5619 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.4641, allocations: 155.8 kB / 0.562 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003648/0.4645, allocations: 120.6 kB / 0.5621 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.171e-05/0.4646, allocations: 24 kB / 0.5621 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/0.467, allocations: 2.169 MB / 0.5643 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.467, allocations: 8 kB / 0.5643 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004056/0.4711, allocations: 2.557 MB / 0.5668 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006132/0.4717, allocations: 275.8 kB / 0.567 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.472, allocations: 20 kB / 0.567 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.4726, allocations: 51.94 kB / 0.5671 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4728, allocations: 68.8 kB / 0.5672 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.357e-05/0.4729, allocations: 42.47 kB / 0.5672 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002449/0.4753, allocations: 1.476 MB / 0.5686 GB, free: 2.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4754, allocations: 0 / 0.5686 GB, free: 2.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002487/0.4779, allocations: 0.5663 MB / 0.5692 GB, free: 2.004 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004519/0.4824, allocations: 3.187 MB / 0.5723 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004768/0.4872, allocations: 2.659 MB / 0.5749 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4872, allocations: 0 / 0.5749 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.4885, allocations: 0.8203 MB / 0.5757 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.4904, allocations: 343.4 kB / 0.576 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04457/0.535, allocations: 23.65 MB / 0.5991 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005316/0.5403, allocations: 2.357 MB / 0.6014 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004651/0.545, allocations: 1.032 MB / 0.6024 GB, free: 13.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00288/0.548, allocations: 1.101 MB / 0.6035 GB, free: 12.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.548, allocations: 0 / 0.6035 GB, free: 12.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.6484, allocations: 39.43 MB / 0.642 GB, free: 5.082 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.22, allocations: 18.59 kB / 0.642 GB, free: 5.066 MB / 478.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.Pendulum_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_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)