Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.00548/0.00548, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.001215/0.001215, allocations: 201.3 kB / 16.68 MB, free: 5.926 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05981/0.05981, allocations: 9.126 MB / 299.7 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.88 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1229, allocations: 51.44 MB / 465.6 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01791/0.1409, allocations: 10.69 MB / 476.3 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008218/0.1492, allocations: 2.953 MB / 479.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.151, allocations: 43.94 kB / 479.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.1527, allocations: 452.9 kB / 479.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006171/0.1589, allocations: 1.708 MB / 481.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009405/0.1598, allocations: 183.7 kB / 481.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004947/0.1648, allocations: 3.115 MB / 484.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.1664, allocations: 1.149 MB / 485.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.1681, allocations: 1.124 MB / 487 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.1701, allocations: 1.623 MB / 488.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005322/0.1707, allocations: 296 kB / 488.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.1722, allocations: 0.8816 MB / 489.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.1735, allocations: 1.508 MB / 491.3 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001884/0.1754, allocations: 1.957 MB / 493.2 MB, free: 6.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006582/0.182, allocations: 6.1 MB / 499.3 MB, free: 268 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.182, allocations: 0 / 499.3 MB, free: 268 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.182, allocations: 0 / 499.3 MB, free: 268 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001386/0.1821, allocations: 4 kB / 499.3 MB, free: 264 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.009872/0.192, allocations: 4.69 MB / 0.4922 GB, free: 11.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1921, allocations: 8.031 kB / 0.4922 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007614/0.1928, allocations: 0.6755 MB / 0.4929 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007355/0.2002, allocations: 1.929 MB / 0.4948 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.2034, allocations: 1.605 MB / 0.4963 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.2035, allocations: 188.8 kB / 0.4965 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000496/0.204, allocations: 259.8 kB / 0.4968 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2031/0.4071, allocations: 9.774 MB / 0.5063 GB, free: 38.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002295/0.4074, allocations: 32.91 kB / 0.5063 GB, free: 38.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001428/0.4088, allocations: 117.7 kB / 0.5065 GB, free: 38.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005287/0.4142, allocations: 2.304 MB / 0.5087 GB, free: 38.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01941/0.4336, allocations: 8.47 MB / 0.517 GB, free: 35.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03924/0.4729, allocations: 30.64 MB / 0.5469 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005646/0.4786, allocations: 2.802 MB / 0.5496 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.48, allocations: 1.06 MB / 0.5507 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007512/0.4876, allocations: 5.837 MB / 0.5564 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.4876, allocations: 51.88 kB / 0.5564 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.687e-06/0.4876, allocations: 0 / 0.5564 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01738/0.505, allocations: 8.346 MB / 0.5646 GB, free: 8.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.5051, allocations: 68.72 kB / 0.5646 GB, free: 8.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004406/0.5095, allocations: 3.203 MB / 0.5678 GB, free: 5.289 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.5097, allocations: 49.7 kB / 0.5678 GB, free: 5.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001734/0.5115, allocations: 2.706 MB / 0.5704 GB, free: 2.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007075/0.5122, allocations: 0.7015 MB / 0.5711 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.5134, allocations: 0.9966 MB / 0.5721 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.5135, allocations: 305.1 kB / 0.5724 GB, free: 500 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002588/0.5161, allocations: 1.571 MB / 0.5739 GB, free: 14.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004278/0.5204, allocations: 4.346 MB / 0.5782 GB, free: 9.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007256/0.5277, allocations: 6.382 MB / 0.5844 GB, free: 1.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.531e-05/0.5278, allocations: 29.69 kB / 0.5844 GB, free: 1.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01007/0.5379, allocations: 6.041 MB / 0.5903 GB, free: 11.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/0.538, allocations: 51.98 kB / 0.5904 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.5381, allocations: 96 kB / 0.5905 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008828/0.539, allocations: 381.3 kB / 0.5908 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003322/0.5423, allocations: 1.092 MB / 0.5919 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004591/0.5469, allocations: 3.7 MB / 0.5955 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/0.5504, allocations: 251.9 kB / 0.5958 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004548/0.5509, allocations: 292 kB / 0.596 GB, free: 5.363 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002916/0.5538, allocations: 1.887 MB / 0.5979 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004696/0.5543, allocations: 286.1 kB / 0.5982 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.5586, allocations: 2.422 MB / 0.6005 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001788/0.5588, allocations: 39.97 kB / 0.6006 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5588, allocations: 7.938 kB / 0.6006 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.5588, allocations: 12.02 kB / 0.6006 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/0.5711, allocations: 6.864 MB / 0.6073 GB, free: 9.691 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.5711, allocations: 7.938 kB / 0.6073 GB, free: 9.684 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.5722, allocations: 255.7 kB / 0.6075 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006753/0.5729, allocations: 253 kB / 0.6078 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-05/0.573, allocations: 39.97 kB / 0.6078 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003277/0.5763, allocations: 2.938 MB / 0.6107 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.5763, allocations: 7.938 kB / 0.6107 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005588/0.5819, allocations: 3.748 MB / 0.6143 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008065/0.5827, allocations: 359.2 kB / 0.6147 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003535/0.5831, allocations: 35.98 kB / 0.6147 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.5841, allocations: 75.91 kB / 0.6148 GB, free: 1.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.5843, allocations: 113 kB / 0.6149 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5844, allocations: 55.98 kB / 0.615 GB, free: 1.598 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002874/0.5873, allocations: 2.033 MB / 0.6169 GB, free: 15.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5873, allocations: 0 / 0.6169 GB, free: 15.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003493/0.5908, allocations: 0.8475 MB / 0.6178 GB, free: 14.71 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006161/0.5969, allocations: 4.407 MB / 0.6221 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006955/0.6039, allocations: 3.861 MB / 0.6258 GB, free: 6.375 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.604, allocations: 0 / 0.6258 GB, free: 6.375 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001984/0.606, allocations: 1.209 MB / 0.627 GB, free: 5.152 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/0.6087, allocations: 478.6 kB / 0.6275 GB, free: 4.699 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05037/0.6591, allocations: 34.49 MB / 0.6612 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/0.6626, allocations: 3.003 MB / 0.6641 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003221/0.6658, allocations: 1.436 MB / 0.6655 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002149/0.668, allocations: 1.69 MB / 0.6671 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of SimCode: time 1.232e-06/0.668, allocations: 0 / 0.6671 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2936/0.9616, allocations: 54.27 MB / 0.7201 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.82/20.79, allocations: 13.77 kB / 0.7202 GB, free: 184.5 MB / 0.5294 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)