Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.002008/0.002008, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003274/0.003274, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.874/1.874, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2208/0.2208, allocations: 9.093 MB / 299.5 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 59.91 kB / 362 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1669, allocations: 51.43 MB / 413.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.3064/0.4734, allocations: 9.731 MB / 423.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006902/0.4804, allocations: 2.839 MB / 426 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001766/0.4822, allocations: 41.69 kB / 426.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.4835, allocations: 415.5 kB / 426.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00468/0.4882, allocations: 1.53 MB / 428 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008618/0.4891, allocations: 183.2 kB / 428.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004101/0.4932, allocations: 2.837 MB / 431 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.495, allocations: 1.07 MB / 432.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.4968, allocations: 1.032 MB / 433.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002118/0.499, allocations: 1.464 MB / 434.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006165/0.4996, allocations: 261.9 kB / 434.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.5015, allocations: 0.8605 MB / 435.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.5028, allocations: 1.351 MB / 437.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001893/0.5047, allocations: 1.764 MB / 438.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005639/0.5104, allocations: 5.21 MB / 444 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.5104, allocations: 0 / 444 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5104, allocations: 0 / 444 MB, free: 30.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001963/0.5106, allocations: 0 / 444 MB, free: 30.35 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01444/0.5251, allocations: 5.169 MB / 449.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.5251, allocations: 13.97 kB / 449.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001249/0.5264, allocations: 0.6039 MB / 449.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006781/0.5332, allocations: 1.813 MB / 451.6 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.5369, allocations: 1.508 MB / 453.2 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.5371, allocations: 173.4 kB / 453.3 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007848/0.5379, allocations: 232.7 kB / 453.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.555, allocations: 8.946 MB / 462.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000251/0.5553, allocations: 37.38 kB / 462.5 MB, free: 22.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/0.5565, allocations: 109.9 kB / 462.6 MB, free: 22.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004973/0.5615, allocations: 2.009 MB / 464.7 MB, free: 22.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02396/0.5855, allocations: 7.969 MB / 472.6 MB, free: 19.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05139/0.637, allocations: 28.56 MB / 0.4894 GB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008616/0.6457, allocations: 2.811 MB / 0.4922 GB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002143/0.6479, allocations: 0.9903 MB / 0.4931 GB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01249/0.6604, allocations: 6.474 MB / 0.4995 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.858e-05/0.6605, allocations: 51.86 kB / 0.4995 GB, free: 15.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 7.575e-06/0.6605, allocations: 0 / 0.4995 GB, free: 15.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.02024/0.6808, allocations: 6.479 MB / 0.5058 GB, free: 9.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.6809, allocations: 69.41 kB / 0.5059 GB, free: 9.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00692/0.6878, allocations: 3.039 MB / 0.5089 GB, free: 6.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003576/0.6882, allocations: 49.7 kB / 0.5089 GB, free: 6.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002287/0.6905, allocations: 2.356 MB / 0.5112 GB, free: 3.672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001047/0.6916, allocations: 0.7047 MB / 0.5119 GB, free: 2.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002254/0.6939, allocations: 0.9315 MB / 0.5128 GB, free: 2.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.694, allocations: 309.1 kB / 0.5131 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003131/0.6972, allocations: 1.504 MB / 0.5146 GB, free: 220 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005286/0.7025, allocations: 4.071 MB / 0.5186 GB, free: 10.87 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008803/0.7113, allocations: 6.036 MB / 0.5245 GB, free: 3.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001074/0.7115, allocations: 24 kB / 0.5245 GB, free: 3.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01507/0.7265, allocations: 5.971 MB / 0.5303 GB, free: 13.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.7268, allocations: 44 kB / 0.5304 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002225/0.7271, allocations: 95.98 kB / 0.5304 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/0.7291, allocations: 0.6307 MB / 0.5311 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003832/0.7329, allocations: 1.006 MB / 0.532 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.7455, allocations: 9.248 MB / 0.5411 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004276/0.7499, allocations: 243.1 kB / 0.5413 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/0.751, allocations: 280 kB / 0.5416 GB, free: 1.617 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.004509/0.7555, allocations: 1.725 MB / 0.5433 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000947/0.7565, allocations: 268.6 kB / 0.5435 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006272/0.7628, allocations: 2.654 MB / 0.5461 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/0.7629, allocations: 40.06 kB / 0.5461 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-05/0.763, allocations: 8 kB / 0.5461 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.763, allocations: 11.95 kB / 0.5462 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01791/0.7809, allocations: 7.32 MB / 0.5533 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.171e-05/0.781, allocations: 8 kB / 0.5533 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.782, allocations: 235.7 kB / 0.5535 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.7836, allocations: 496.2 kB / 0.554 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.7838, allocations: 35.98 kB / 0.554 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.7944, allocations: 7.985 MB / 0.5618 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.347e-05/0.7945, allocations: 7.938 kB / 0.5619 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008816/0.8033, allocations: 3.989 MB / 0.5658 GB, free: 8.211 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/0.8047, allocations: 345.7 kB / 0.5661 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/0.8057, allocations: 35.98 kB / 0.5661 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.8074, allocations: 82.17 kB / 0.5662 GB, free: 7.738 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003694/0.8078, allocations: 121 kB / 0.5663 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.808, allocations: 59.98 kB / 0.5664 GB, free: 7.559 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004736/0.8128, allocations: 1.951 MB / 0.5683 GB, free: 5.602 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8128, allocations: 0 / 0.5683 GB, free: 5.602 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005865/0.8186, allocations: 0.8305 MB / 0.5691 GB, free: 4.773 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,88.9%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008634/0.8273, allocations: 4.646 MB / 0.5736 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01171/0.8391, allocations: 5.686 MB / 0.5792 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/0.8391, allocations: 0 / 0.5792 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/0.8421, allocations: 1.548 MB / 0.5807 GB, free: 8.758 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/0.8463, allocations: 454.6 kB / 0.5811 GB, free: 8.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3087/1.155, allocations: 36.64 MB / 0.6169 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004098/1.159, allocations: 2.806 MB / 0.6196 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003341/1.163, allocations: 1.33 MB / 0.6209 GB, free: 116.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002397/1.165, allocations: 1.485 MB / 0.6224 GB, free: 114.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.243e-06/1.165, allocations: 1.531 kB / 0.6224 GB, free: 114.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1374/1.302, allocations: 58.94 MB / 0.6799 GB, free: 79.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.59, allocations: 11.98 kB / 0.68 GB, free: 79.27 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PistonEngine_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)