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.008357/0.008357, allocations: 96.77 kB / 15.73 MB, free: 6.062 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.002038/0.002038, allocations: 197.5 kB / 16.68 MB, free: 5.984 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1528/0.1528, allocations: 9.11 MB / 299.6 MB, free: 1.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 63.91 kB / 414.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2184, allocations: 51.43 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.008171/0.2266, allocations: 9.733 MB / 475.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.2314, allocations: 2.835 MB / 478.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008302/0.2322, allocations: 39.69 kB / 478.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007604/0.233, allocations: 417.4 kB / 478.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002761/0.2358, allocations: 1.587 MB / 480.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.2362, allocations: 183 kB / 480.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002454/0.2387, allocations: 2.855 MB / 483.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.2398, allocations: 1.079 MB / 484.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.2409, allocations: 1.034 MB / 485.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.2424, allocations: 1.459 MB / 486.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004334/0.2428, allocations: 259.9 kB / 487 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.2442, allocations: 0.8622 MB / 487.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009604/0.2452, allocations: 1.349 MB / 489.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.2465, allocations: 1.766 MB / 491 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005515/0.2521, allocations: 5.493 MB / 496.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2521, allocations: 0 / 496.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.2521, allocations: 3.984 kB / 496.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001004/0.2522, allocations: 0 / 496.5 MB, free: 13.18 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.01201/0.2642, allocations: 5.277 MB / 0.49 GB, free: 7.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.2643, allocations: 8.031 kB / 0.49 GB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008539/0.2651, allocations: 0.5971 MB / 0.4906 GB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006936/0.2721, allocations: 1.839 MB / 0.4924 GB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003131/0.2752, allocations: 1.526 MB / 0.4939 GB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.2754, allocations: 180.3 kB / 0.4941 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005734/0.276, allocations: 227.8 kB / 0.4943 GB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01397/0.29, allocations: 8.944 MB / 0.503 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.533e-05/0.2901, allocations: 31.73 kB / 0.5031 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003628/0.2904, allocations: 115.8 kB / 0.5032 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003194/0.2936, allocations: 2.009 MB / 0.5051 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01511/0.3088, allocations: 7.967 MB / 0.5129 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0367/0.3455, allocations: 28.54 MB / 0.5408 GB, free: 2.719 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006881/0.3524, allocations: 2.818 MB / 0.5435 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.3539, allocations: 0.9779 MB / 0.5445 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00919/0.3631, allocations: 6.483 MB / 0.5508 GB, free: 7.691 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.3632, allocations: 47.88 kB / 0.5509 GB, free: 7.637 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 5.661e-06/0.3632, allocations: 0 / 0.5509 GB, free: 7.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.0163/0.3795, allocations: 6.543 MB / 0.5573 GB, free: 1.078 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.3796, allocations: 69.41 kB / 0.5573 GB, free: 1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/0.3838, allocations: 3.043 MB / 0.5603 GB, free: 13.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002087/0.3841, allocations: 65.69 kB / 0.5604 GB, free: 13.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001647/0.3857, allocations: 2.45 MB / 0.5627 GB, free: 11.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007389/0.3865, allocations: 0.7401 MB / 0.5635 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/0.3877, allocations: 0.9373 MB / 0.5644 GB, free: 9.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.534e-05/0.3878, allocations: 305.1 kB / 0.5647 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002438/0.3903, allocations: 1.5 MB / 0.5661 GB, free: 7.898 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004048/0.3943, allocations: 4.082 MB / 0.5701 GB, free: 2.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007279/0.4016, allocations: 6.033 MB / 0.576 GB, free: 11.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.44e-05/0.4017, allocations: 24 kB / 0.576 GB, free: 11.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01075/0.4125, allocations: 5.981 MB / 0.5819 GB, free: 5.227 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.594e-05/0.4126, allocations: 44 kB / 0.5819 GB, free: 5.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.523e-05/0.4127, allocations: 88 kB / 0.582 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/0.4143, allocations: 0.6272 MB / 0.5826 GB, free: 4.461 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003212/0.4175, allocations: 0.9981 MB / 0.5836 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2023/0.6198, allocations: 9.243 MB / 0.5926 GB, free: 104.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/0.6231, allocations: 250.3 kB / 0.5929 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004957/0.6237, allocations: 275.8 kB / 0.5931 GB, free: 104.1 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.00271/0.6264, allocations: 1.732 MB / 0.5948 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000419/0.6268, allocations: 279.2 kB / 0.5951 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004705/0.6315, allocations: 2.659 MB / 0.5977 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001478/0.6317, allocations: 30.41 kB / 0.5977 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.6317, allocations: 5 kB / 0.5977 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/0.6317, allocations: 9.141 kB / 0.5977 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01275/0.6445, allocations: 7.265 MB / 0.6048 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.6445, allocations: 4.375 kB / 0.6048 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009014/0.6454, allocations: 242.1 kB / 0.605 GB, free: 99.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.6467, allocations: 487.7 kB / 0.6055 GB, free: 99.53 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.913e-05/0.6468, allocations: 37.31 kB / 0.6055 GB, free: 99.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006989/0.6538, allocations: 7.976 MB / 0.6133 GB, free: 93.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.6538, allocations: 8.75 kB / 0.6133 GB, free: 93.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005584/0.6594, allocations: 4.01 MB / 0.6173 GB, free: 92.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008666/0.6603, allocations: 355.9 kB / 0.6176 GB, free: 92 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003236/0.6606, allocations: 38.94 kB / 0.6176 GB, free: 91.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009484/0.6616, allocations: 83.2 kB / 0.6177 GB, free: 91.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.6619, allocations: 132 kB / 0.6178 GB, free: 91.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.662, allocations: 56.89 kB / 0.6179 GB, free: 91.92 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002655/0.6646, allocations: 1.943 MB / 0.6198 GB, free: 91.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6646, allocations: 0 / 0.6198 GB, free: 91.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003932/0.6686, allocations: 0.8315 MB / 0.6206 GB, free: 91.12 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.005057/0.6736, allocations: 4.666 MB / 0.6252 GB, free: 88.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005491/0.6792, allocations: 4.104 MB / 0.6292 GB, free: 87.25 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.6792, allocations: 256 / 0.6292 GB, free: 87.25 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.6808, allocations: 1.541 MB / 0.6307 GB, free: 86.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.6829, allocations: 447.3 kB / 0.6311 GB, free: 85.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03426/0.7172, allocations: 33.08 MB / 0.6634 GB, free: 49.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002133/0.7194, allocations: 2.808 MB / 0.6662 GB, free: 46.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002402/0.7218, allocations: 1.325 MB / 0.6674 GB, free: 44.97 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/0.7232, allocations: 1.483 MB / 0.6689 GB, free: 43.49 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.7232, allocations: 0 / 0.6689 GB, free: 43.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08441/0.8076, allocations: 56.18 MB / 0.7238 GB, free: 3.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.37/22.17, allocations: 4.375 kB / 0.7238 GB, free: 3.57 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)