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.001312/0.001312, allocations: 108.6 kB / 15.73 MB, free: 72 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.001354/0.001354, allocations: 187.1 kB / 16.66 MB, free: 6.602 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1561/0.1561, allocations: 9.103 MB / 299.6 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 64.11 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2316, allocations: 51.43 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.008952/0.2406, allocations: 9.731 MB / 475.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005188/0.2459, allocations: 2.837 MB / 478.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.2474, allocations: 40.09 kB / 478.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.2486, allocations: 416.6 kB / 478.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003678/0.2523, allocations: 1.53 MB / 480.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005923/0.2529, allocations: 186.7 kB / 480.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003036/0.2559, allocations: 2.857 MB / 483.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.2571, allocations: 1.079 MB / 484.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.2582, allocations: 1.027 MB / 485.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.2597, allocations: 1.463 MB / 486.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004257/0.2601, allocations: 263.5 kB / 487 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.2616, allocations: 0.8583 MB / 487.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009427/0.2625, allocations: 1.35 MB / 489.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.2639, allocations: 1.765 MB / 491 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006281/0.2701, allocations: 5.5 MB / 496.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2702, allocations: 4 kB / 496.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2702, allocations: 0 / 496.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001525/0.2704, allocations: 0 / 496.5 MB, free: 13.25 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01356/0.2839, allocations: 5.269 MB / 0.49 GB, free: 7.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.284, allocations: 8.031 kB / 0.49 GB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/0.285, allocations: 0.6088 MB / 0.4906 GB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007244/0.2923, allocations: 1.828 MB / 0.4924 GB, free: 5.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.2953, allocations: 1.526 MB / 0.4938 GB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.2955, allocations: 172.3 kB / 0.494 GB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005755/0.296, allocations: 235.8 kB / 0.4942 GB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.3117, allocations: 8.948 MB / 0.503 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.3118, allocations: 27.81 kB / 0.503 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006482/0.3125, allocations: 107.9 kB / 0.5031 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003602/0.3161, allocations: 2.017 MB / 0.5051 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.3329, allocations: 7.963 MB / 0.5128 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04249/0.3754, allocations: 28.54 MB / 0.5407 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007855/0.3833, allocations: 2.816 MB / 0.5435 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.3851, allocations: 0.9935 MB / 0.5444 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.3954, allocations: 6.479 MB / 0.5508 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.3955, allocations: 43.88 kB / 0.5508 GB, free: 7.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 3.426e-06/0.3955, allocations: 0 / 0.5508 GB, free: 7.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01782/0.4133, allocations: 6.547 MB / 0.5572 GB, free: 1.148 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.4134, allocations: 69.41 kB / 0.5573 GB, free: 1.07 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004997/0.4184, allocations: 3.044 MB / 0.5602 GB, free: 14.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002365/0.4187, allocations: 53.7 kB / 0.5603 GB, free: 13.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002376/0.4211, allocations: 2.446 MB / 0.5627 GB, free: 11.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009265/0.422, allocations: 0.744 MB / 0.5634 GB, free: 10.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/0.4236, allocations: 0.9374 MB / 0.5643 GB, free: 9.789 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4237, allocations: 309.1 kB / 0.5646 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003001/0.4267, allocations: 1.504 MB / 0.5661 GB, free: 7.973 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005733/0.4325, allocations: 4.082 MB / 0.5701 GB, free: 2.613 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008897/0.4414, allocations: 6.035 MB / 0.576 GB, free: 11.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.306e-05/0.4415, allocations: 28 kB / 0.576 GB, free: 11.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01208/0.4536, allocations: 5.982 MB / 0.5818 GB, free: 5.297 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.029e-05/0.4537, allocations: 44 kB / 0.5819 GB, free: 5.254 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001136/0.4538, allocations: 88 kB / 0.582 GB, free: 5.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.4556, allocations: 0.6276 MB / 0.5826 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003367/0.459, allocations: 1.002 MB / 0.5835 GB, free: 3.527 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1979/0.6569, allocations: 9.239 MB / 0.5926 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003521/0.6605, allocations: 239 kB / 0.5928 GB, free: 104.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007769/0.6613, allocations: 275.8 kB / 0.5931 GB, free: 104.2 MB / 462.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.003225/0.6645, allocations: 1.724 MB / 0.5947 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004954/0.665, allocations: 280.8 kB / 0.595 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004725/0.6698, allocations: 2.667 MB / 0.5976 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/0.6699, allocations: 32.09 kB / 0.5976 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.6699, allocations: 9.125 kB / 0.5977 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.67, allocations: 8.516 kB / 0.5977 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.6817, allocations: 7.264 MB / 0.6048 GB, free: 99.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.6817, allocations: 3.844 kB / 0.6048 GB, free: 99.76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008443/0.6826, allocations: 239.3 kB / 0.605 GB, free: 99.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.6838, allocations: 497.5 kB / 0.6055 GB, free: 99.63 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.551e-05/0.6839, allocations: 33.69 kB / 0.6055 GB, free: 99.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006869/0.6908, allocations: 7.975 MB / 0.6133 GB, free: 93.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.6908, allocations: 8.812 kB / 0.6133 GB, free: 93.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005692/0.6965, allocations: 4.005 MB / 0.6172 GB, free: 92.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007833/0.6974, allocations: 354.5 kB / 0.6175 GB, free: 92.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003527/0.6977, allocations: 43.28 kB / 0.6176 GB, free: 92.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009485/0.6987, allocations: 76.86 kB / 0.6177 GB, free: 92.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.6989, allocations: 129 kB / 0.6178 GB, free: 92.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.6991, allocations: 57.69 kB / 0.6178 GB, free: 92.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002745/0.7018, allocations: 1.942 MB / 0.6197 GB, free: 91.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7018, allocations: 3.5 kB / 0.6197 GB, free: 91.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00379/0.7056, allocations: 0.8377 MB / 0.6205 GB, free: 91.21 MB / 462.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.005136/0.7108, allocations: 4.656 MB / 0.6251 GB, free: 88.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005604/0.7164, allocations: 4.106 MB / 0.6291 GB, free: 87.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.7164, allocations: 0 / 0.6291 GB, free: 87.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7183, allocations: 1.542 MB / 0.6306 GB, free: 86.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/0.7207, allocations: 452.5 kB / 0.631 GB, free: 85.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0382/0.7589, allocations: 33.09 MB / 0.6634 GB, free: 49.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.7615, allocations: 2.804 MB / 0.6661 GB, free: 46.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002693/0.7642, allocations: 1.329 MB / 0.6674 GB, free: 45.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/0.7658, allocations: 1.479 MB / 0.6688 GB, free: 43.62 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7658, allocations: 2.297 kB / 0.6688 GB, free: 43.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/0.8685, allocations: 56.16 MB / 0.7237 GB, free: 3.715 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.83/22.7, allocations: 6.719 kB / 0.7237 GB, free: 3.711 MB / 478.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)