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.0125/0.0125, allocations: 96.7 kB / 15.73 MB, free: 6.043 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.003209/0.003209, allocations: 196.2 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 2.547/2.547, allocations: 222.9 MB / 240.4 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2651/0.2651, allocations: 9.109 MB / 299.6 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003197/0.003197, allocations: 59.91 kB / 414.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4777/0.4809, allocations: 51.43 MB / 465.6 MB, free: 17.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.01527/0.4963, allocations: 7.007 MB / 472.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006641/0.503, allocations: 2.352 MB / 474.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.5049, allocations: 28.47 kB / 475 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.5064, allocations: 308.4 kB / 475.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005915/0.5124, allocations: 1.303 MB / 476.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009205/0.5134, allocations: 87.17 kB / 476.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005603/0.519, allocations: 2.155 MB / 478.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001696/0.5207, allocations: 0.7208 MB / 479.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.5226, allocations: 0.753 MB / 480.3 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.525, allocations: 1.128 MB / 481.4 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008199/0.5258, allocations: 201.2 kB / 481.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002522/0.5284, allocations: 0.7991 MB / 482.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.5303, allocations: 1.062 MB / 483.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003838/0.5342, allocations: 1.356 MB / 484.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008274/0.5425, allocations: 4.498 MB / 489.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.5425, allocations: 0 / 489.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5425, allocations: 0 / 489.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002274/0.5427, allocations: 0 / 489.3 MB, free: 2.523 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.01375/0.5565, allocations: 3.43 MB / 492.7 MB, free: 100 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.706e-05/0.5566, allocations: 9.562 kB / 492.8 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003398/0.56, allocations: 484.7 kB / 493.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01359/0.5737, allocations: 1.729 MB / 495 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005274/0.579, allocations: 1.206 MB / 496.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.5794, allocations: 123.3 kB / 496.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/0.581, allocations: 164 kB / 496.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02291/0.6039, allocations: 7.208 MB / 0.4918 GB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.055e-05/0.6041, allocations: 23.83 kB / 0.4919 GB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/0.6045, allocations: 75.88 kB / 0.4919 GB, free: 5.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004345/0.6089, allocations: 1.742 MB / 0.4936 GB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01758/0.6265, allocations: 6.58 MB / 0.5001 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05201/0.6786, allocations: 21.16 MB / 0.5207 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007667/0.6863, allocations: 2.03 MB / 0.5227 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002192/0.6886, allocations: 0.6737 MB / 0.5234 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01207/0.7007, allocations: 3.278 MB / 0.5266 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.709e-05/0.7009, allocations: 43.22 kB / 0.5266 GB, free: 1.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 1.051e-05/0.7009, allocations: 0 / 0.5266 GB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.02455/0.7255, allocations: 5.579 MB / 0.5321 GB, free: 11.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.7256, allocations: 60.41 kB / 0.5321 GB, free: 11.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00902/0.7347, allocations: 2.27 MB / 0.5343 GB, free: 9.168 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003512/0.7351, allocations: 45.7 kB / 0.5344 GB, free: 9.117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002857/0.738, allocations: 1.908 MB / 0.5362 GB, free: 7.188 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/0.7391, allocations: 476.2 kB / 0.5367 GB, free: 6.719 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003022/0.7422, allocations: 0.6711 MB / 0.5374 GB, free: 6.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.7424, allocations: 305.1 kB / 0.5376 GB, free: 5.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004255/0.7467, allocations: 1.099 MB / 0.5387 GB, free: 4.637 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007541/0.7543, allocations: 2.97 MB / 0.5416 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.7658, allocations: 4.368 MB / 0.5459 GB, free: 11.46 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001454/0.766, allocations: 20 kB / 0.5459 GB, free: 11.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.0176/0.7837, allocations: 4.141 MB / 0.5499 GB, free: 7.293 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.7839, allocations: 38.69 kB / 0.55 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/0.7841, allocations: 64 kB / 0.55 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.7851, allocations: 208.7 kB / 0.5502 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005187/0.7903, allocations: 0.7293 MB / 0.551 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006785/0.7972, allocations: 2.702 MB / 0.5536 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005719/0.803, allocations: 159.9 kB / 0.5538 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/0.8045, allocations: 203.9 kB / 0.5539 GB, free: 3.055 MB / 430.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.006584/0.8111, allocations: 1.423 MB / 0.5553 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/0.8122, allocations: 198.7 kB / 0.5555 GB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006089/0.8184, allocations: 1.623 MB / 0.5571 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002035/0.8187, allocations: 23.98 kB / 0.5571 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.8187, allocations: 4 kB / 0.5571 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.321e-05/0.8188, allocations: 3.984 kB / 0.5571 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01908/0.8378, allocations: 4.867 MB / 0.5619 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/0.8379, allocations: 8.062 kB / 0.5619 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.8393, allocations: 155.8 kB / 0.562 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005969/0.8399, allocations: 112.8 kB / 0.5622 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.8401, allocations: 23.98 kB / 0.5622 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004118/0.8442, allocations: 2.176 MB / 0.5643 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.8443, allocations: 0 / 0.5643 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007747/0.852, allocations: 2.565 MB / 0.5668 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/0.8535, allocations: 272.1 kB / 0.5671 GB, free: 5.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008653/0.8545, allocations: 28 kB / 0.5671 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001739/0.8562, allocations: 59.91 kB / 0.5672 GB, free: 5.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003295/0.8566, allocations: 64.8 kB / 0.5672 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/0.8568, allocations: 32 kB / 0.5672 GB, free: 5.062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00535/0.8621, allocations: 1.476 MB / 0.5687 GB, free: 3.562 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.8622, allocations: 8 kB / 0.5687 GB, free: 3.555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007316/0.8696, allocations: 0.5662 MB / 0.5692 GB, free: 2.988 MB / 446.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.008557/0.8782, allocations: 3.183 MB / 0.5724 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00914/0.8874, allocations: 2.654 MB / 0.5749 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.8875, allocations: 448 / 0.5749 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002235/0.8897, allocations: 0.8241 MB / 0.5758 GB, free: 12.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003651/0.8934, allocations: 340.4 kB / 0.5761 GB, free: 11.92 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5634/1.457, allocations: 23.64 MB / 0.5992 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006071/1.463, allocations: 2.356 MB / 0.6015 GB, free: 107.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005733/1.469, allocations: 1.039 MB / 0.6025 GB, free: 107.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003541/1.472, allocations: 1.099 MB / 0.6035 GB, free: 106.7 MB / 462.1 MB Notification: Performance of SimCode: time 3.797e-06/1.472, allocations: 4 kB / 0.6036 GB, free: 106.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.132/1.605, allocations: 39.43 MB / 0.6421 GB, free: 77.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.08/26.68, allocations: 7.938 kB / 0.6421 GB, free: 77.91 MB / 462.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)