Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.005037/0.005037, allocations: 100.5 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.0013/0.0013, allocations: 193.1 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1605/0.1605, allocations: 9.105 MB / 299.7 MB, free: 1.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 67.89 kB / 414.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2378, allocations: 51.43 MB / 465.6 MB, free: 17.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008699/0.2465, allocations: 8.183 MB / 473.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004833/0.2514, allocations: 2.509 MB / 476.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.2526, allocations: 32.69 kB / 476.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007746/0.2533, allocations: 350.5 kB / 476.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002658/0.2561, allocations: 1.317 MB / 478 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.2564, allocations: 123.8 kB / 478.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.2588, allocations: 2.44 MB / 480.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008679/0.2597, allocations: 0.812 MB / 481.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.2607, allocations: 0.8564 MB / 482.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.2621, allocations: 1.261 MB / 483.5 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003882/0.2625, allocations: 222.7 kB / 483.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.2639, allocations: 0.8109 MB / 484.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008642/0.2648, allocations: 1.21 MB / 485.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001048/0.2659, allocations: 1.538 MB / 487.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004685/0.2705, allocations: 4.979 MB / 492.2 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2706, allocations: 0 / 492.2 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2706, allocations: 0 / 492.2 MB, free: 440 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.2707, allocations: 1.469 kB / 492.2 MB, free: 440 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.00808/0.2788, allocations: 3.353 MB / 495.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.2789, allocations: 10.84 kB / 495.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00121/0.2801, allocations: 0.5416 MB / 496.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007214/0.2873, allocations: 1.781 MB / 497.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00297/0.2903, allocations: 1.302 MB / 499.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.2905, allocations: 139.8 kB / 499.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004615/0.291, allocations: 184.2 kB / 499.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.3047, allocations: 8.061 MB / 0.4957 GB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.19e-05/0.3048, allocations: 27.73 kB / 0.4957 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005711/0.3054, allocations: 87.86 kB / 0.4958 GB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003966/0.3094, allocations: 2.004 MB / 0.4977 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.3255, allocations: 7.141 MB / 0.5047 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03888/0.3645, allocations: 24.1 MB / 0.5283 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004924/0.3694, allocations: 2.159 MB / 0.5304 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.3708, allocations: 0.7236 MB / 0.5311 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00661/0.3774, allocations: 3.993 MB / 0.535 GB, free: 8.422 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.3775, allocations: 47.5 kB / 0.535 GB, free: 8.367 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.468e-06/0.3775, allocations: 0 / 0.535 GB, free: 8.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01149/0.389, allocations: 4.43 MB / 0.5393 GB, free: 3.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.3891, allocations: 64.41 kB / 0.5394 GB, free: 3.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005354/0.3945, allocations: 2.585 MB / 0.5419 GB, free: 1.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.3946, allocations: 37.7 kB / 0.542 GB, free: 1.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001851/0.3965, allocations: 2.195 MB / 0.5441 GB, free: 14.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005512/0.397, allocations: 480.3 kB / 0.5446 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/0.3984, allocations: 0.7584 MB / 0.5453 GB, free: 13.69 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3986, allocations: 309 kB / 0.5456 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/0.4008, allocations: 1.171 MB / 0.5467 GB, free: 12.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004115/0.4049, allocations: 3.316 MB / 0.55 GB, free: 7.836 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006528/0.4114, allocations: 4.805 MB / 0.5547 GB, free: 1.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.923e-05/0.4115, allocations: 23.75 kB / 0.5547 GB, free: 1.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.0088/0.4203, allocations: 4.43 MB / 0.559 GB, free: 13.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.223e-05/0.4204, allocations: 39.98 kB / 0.5591 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/0.4205, allocations: 76 kB / 0.5591 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001157/0.4207, allocations: 100 kB / 0.5592 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/0.4235, allocations: 0.8383 MB / 0.5601 GB, free: 12.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001553/0.4236, allocations: 151.4 kB / 0.5602 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/0.4262, allocations: 184.2 kB / 0.5604 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004323/0.4266, allocations: 228 kB / 0.5606 GB, free: 11.92 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * 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.002733/0.4293, allocations: 1.576 MB / 0.5621 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.4297, allocations: 218.5 kB / 0.5623 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.4324, allocations: 1.402 MB / 0.5637 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001314/0.4325, allocations: 31.92 kB / 0.5637 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4326, allocations: 7.938 kB / 0.5637 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4326, allocations: 7.969 kB / 0.5638 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009266/0.4418, allocations: 4.786 MB / 0.5684 GB, free: 3.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.4419, allocations: 8 kB / 0.5684 GB, free: 3.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008464/0.4427, allocations: 179.8 kB / 0.5686 GB, free: 3.551 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/0.4428, allocations: 11.94 kB / 0.5686 GB, free: 3.539 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.122e-05/0.4428, allocations: 32.05 kB / 0.5686 GB, free: 3.508 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.996e-05/0.4429, allocations: 12 kB / 0.5687 GB, free: 3.496 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.4429, allocations: 11.88 kB / 0.5687 GB, free: 3.484 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003606/0.4465, allocations: 2.369 MB / 0.571 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006123/0.4471, allocations: 299.7 kB / 0.5713 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003837/0.4475, allocations: 27.98 kB / 0.5713 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008532/0.4484, allocations: 55.94 kB / 0.5713 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.4485, allocations: 68.39 kB / 0.5714 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.965e-05/0.4486, allocations: 47.98 kB / 0.5715 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002804/0.4514, allocations: 1.652 MB / 0.5731 GB, free: 14.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4514, allocations: 3.938 kB / 0.5731 GB, free: 14.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002847/0.4543, allocations: 0.6249 MB / 0.5737 GB, free: 14.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * 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.004114/0.4584, allocations: 3.003 MB / 0.5766 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00458/0.463, allocations: 2.627 MB / 0.5792 GB, free: 8.516 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/0.463, allocations: 0 / 0.5792 GB, free: 8.516 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009883/0.464, allocations: 0.6409 MB / 0.5798 GB, free: 7.879 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.4661, allocations: 388.3 kB / 0.5802 GB, free: 7.508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2264/0.6925, allocations: 26.26 MB / 0.6058 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/0.695, allocations: 2.559 MB / 0.6083 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002359/0.6974, allocations: 1.111 MB / 0.6094 GB, free: 101.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/0.6987, allocations: 1.245 MB / 0.6106 GB, free: 100.7 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.6987, allocations: 0 / 0.6106 GB, free: 100.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06627/0.765, allocations: 42.09 MB / 0.6517 GB, free: 66.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.97, allocations: 0 / 0.6517 GB, free: 66.35 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)