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.006654/0.006654, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001395/0.001395, allocations: 190.9 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.326/1.326, 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.04469/0.04469, allocations: 9.136 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.89 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.09047, allocations: 51.45 MB / 465.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008896/0.09942, allocations: 8.187 MB / 473.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004976/0.1044, allocations: 2.51 MB / 476.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.1057, allocations: 31.94 kB / 476.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.1068, allocations: 349.7 kB / 476.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003253/0.1102, allocations: 1.37 MB / 478 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.1106, allocations: 119.7 kB / 478.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.1136, allocations: 2.442 MB / 480.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.1149, allocations: 0.8016 MB / 481.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.1163, allocations: 0.8598 MB / 482.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.1177, allocations: 1.257 MB / 483.5 MB, free: 164 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.1181, allocations: 232 kB / 483.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1194, allocations: 0.8036 MB / 484.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.1205, allocations: 1.215 MB / 485.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.1219, allocations: 1.538 MB / 487.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004771/0.1267, allocations: 4.98 MB / 492.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1267, allocations: 0 / 492.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1267, allocations: 0 / 492.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.034e-05/0.1268, allocations: 0 / 492.3 MB, free: 7.363 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.00563/0.1324, allocations: 3.349 MB / 495.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1324, allocations: 16.03 kB / 495.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005834/0.133, allocations: 0.5352 MB / 496.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006637/0.1397, allocations: 1.785 MB / 497.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.1419, allocations: 1.298 MB / 499.2 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.142, allocations: 147.8 kB / 499.4 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003982/0.1424, allocations: 188.2 kB / 499.6 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.1533, allocations: 8.065 MB / 0.4957 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.1534, allocations: 19.81 kB / 0.4958 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002642/0.1537, allocations: 87.86 kB / 0.4958 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003453/0.1572, allocations: 2.004 MB / 0.4978 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2257/0.3829, allocations: 7.133 MB / 0.5048 GB, free: 39.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03046/0.4134, allocations: 24.12 MB / 0.5283 GB, free: 23.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003973/0.4174, allocations: 2.142 MB / 0.5304 GB, free: 22.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009842/0.4184, allocations: 0.7292 MB / 0.5311 GB, free: 22.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005054/0.4235, allocations: 3.997 MB / 0.535 GB, free: 18.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.4235, allocations: 43.53 kB / 0.5351 GB, free: 18.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 4.268e-06/0.4235, allocations: 0 / 0.5351 GB, free: 18.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.007791/0.4313, allocations: 4.432 MB / 0.5394 GB, free: 16.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.4314, allocations: 63.53 kB / 0.5395 GB, free: 16.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/0.4342, allocations: 2.593 MB / 0.542 GB, free: 15.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.858e-05/0.4342, allocations: 37.45 kB / 0.542 GB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008087/0.4351, allocations: 2.204 MB / 0.5442 GB, free: 13.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.4353, allocations: 482.5 kB / 0.5446 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007582/0.4361, allocations: 0.7588 MB / 0.5454 GB, free: 12.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.311e-05/0.4361, allocations: 301.1 kB / 0.5457 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.4376, allocations: 1.163 MB / 0.5468 GB, free: 10.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.4397, allocations: 3.321 MB / 0.55 GB, free: 6.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00369/0.4434, allocations: 4.786 MB / 0.5547 GB, free: 488 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-05/0.4434, allocations: 24 kB / 0.5547 GB, free: 464 kB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.006587/0.45, allocations: 4.434 MB / 0.5591 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.297e-05/0.4501, allocations: 44.91 kB / 0.5591 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.621e-05/0.4502, allocations: 76 kB / 0.5592 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.797e-05/0.4503, allocations: 104 kB / 0.5593 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002405/0.4527, allocations: 0.8422 MB / 0.5601 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001083/0.4528, allocations: 147.4 kB / 0.5602 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/0.4551, allocations: 179.8 kB / 0.5604 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/0.4554, allocations: 225.7 kB / 0.5606 GB, free: 10.43 MB / 398.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.00263/0.458, allocations: 1.579 MB / 0.5622 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003342/0.4584, allocations: 218.5 kB / 0.5624 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.4607, allocations: 1.417 MB / 0.5638 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001214/0.4608, allocations: 23.98 kB / 0.5638 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.4609, allocations: 0 / 0.5638 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.4609, allocations: 7.984 kB / 0.5638 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007433/0.4683, allocations: 4.787 MB / 0.5685 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.547e-06/0.4684, allocations: 4 kB / 0.5685 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000813/0.4692, allocations: 188.4 kB / 0.5687 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.4692, allocations: 8 kB / 0.5687 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/0.4693, allocations: 31.98 kB / 0.5687 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.541e-05/0.4693, allocations: 16.69 kB / 0.5687 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4693, allocations: 8.219 kB / 0.5687 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.4726, allocations: 2.373 MB / 0.571 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006157/0.4732, allocations: 307.7 kB / 0.5713 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002449/0.4734, allocations: 27.61 kB / 0.5714 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007284/0.4742, allocations: 48.14 kB / 0.5714 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.4743, allocations: 76.45 kB / 0.5715 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.516e-05/0.4744, allocations: 39.98 kB / 0.5715 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002372/0.4768, allocations: 1.659 MB / 0.5731 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4768, allocations: 0 / 0.5731 GB, free: 13.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003129/0.4799, allocations: 0.6202 MB / 0.5737 GB, free: 12.77 MB / 414.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.003658/0.4836, allocations: 3.011 MB / 0.5767 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004152/0.4878, allocations: 2.63 MB / 0.5792 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.4878, allocations: 0 / 0.5792 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009116/0.4887, allocations: 0.6332 MB / 0.5799 GB, free: 6.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.4909, allocations: 371.4 kB / 0.5802 GB, free: 6.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03922/0.5301, allocations: 26.27 MB / 0.6059 GB, free: 8.863 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002956/0.5331, allocations: 2.555 MB / 0.6084 GB, free: 6.277 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002417/0.5356, allocations: 1.121 MB / 0.6095 GB, free: 5.152 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.5371, allocations: 1.245 MB / 0.6107 GB, free: 3.906 MB / 446.1 MB Notification: Performance of SimCode: time 6.62e-07/0.5371, allocations: 0 / 0.6107 GB, free: 3.906 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07434/0.6114, allocations: 42.07 MB / 0.6518 GB, free: 10.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.5, allocations: 3.781 kB / 0.6518 GB, free: 10.04 MB / 494.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)