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.01037/0.01037, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.002111/0.002111, allocations: 189.6 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.503/2.503, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.08367/0.08367, allocations: 9.121 MB / 299.7 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002598/0.002599, allocations: 59.91 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1675, allocations: 51.45 MB / 465.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01747/0.185, allocations: 9.721 MB / 475.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.1955, allocations: 2.839 MB / 478.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.1985, allocations: 39.94 kB / 478.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.2009, allocations: 417.1 kB / 478.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00884/0.2099, allocations: 1.583 MB / 480.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.2114, allocations: 187.7 kB / 480.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007127/0.2185, allocations: 2.859 MB / 483.2 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003221/0.2218, allocations: 1.071 MB / 484.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.225, allocations: 1.043 MB / 485.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003945/0.229, allocations: 1.459 MB / 486.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.2307, allocations: 256 kB / 487 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003681/0.2344, allocations: 0.8582 MB / 487.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003042/0.2375, allocations: 1.36 MB / 489.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004663/0.2422, allocations: 1.759 MB / 491 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01155/0.2538, allocations: 5.493 MB / 496.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.2539, allocations: 0 / 496.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.2539, allocations: 0 / 496.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000231/0.2541, allocations: 0 / 496.5 MB, free: 3.105 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.02367/0.2778, allocations: 5.277 MB / 0.49 GB, free: 13.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.595e-05/0.2779, allocations: 8.031 kB / 0.49 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002742/0.2807, allocations: 0.6049 MB / 0.4906 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/0.2939, allocations: 1.835 MB / 0.4924 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00755/0.3015, allocations: 1.514 MB / 0.4939 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006368/0.3023, allocations: 168.3 kB / 0.4941 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/0.3052, allocations: 243.7 kB / 0.4943 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4108/0.716, allocations: 8.947 MB / 0.503 GB, free: 40.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002859/0.7164, allocations: 28.62 kB / 0.503 GB, free: 40.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001439/0.7178, allocations: 107.2 kB / 0.5032 GB, free: 40.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00637/0.7242, allocations: 2.012 MB / 0.5051 GB, free: 40.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/0.7546, allocations: 7.969 MB / 0.5129 GB, free: 38.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08375/0.8384, allocations: 28.55 MB / 0.5408 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01344/0.852, allocations: 2.811 MB / 0.5435 GB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003031/0.855, allocations: 0.9894 MB / 0.5445 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.8697, allocations: 6.479 MB / 0.5508 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/0.8698, allocations: 47.86 kB / 0.5509 GB, free: 5.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 8.436e-06/0.8698, allocations: 0 / 0.5509 GB, free: 5.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01931/0.8892, allocations: 6.538 MB / 0.5572 GB, free: 15.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.8894, allocations: 73.41 kB / 0.5573 GB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009433/0.8988, allocations: 3.044 MB / 0.5603 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003276/0.8992, allocations: 57.14 kB / 0.5603 GB, free: 12.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/0.9016, allocations: 2.453 MB / 0.5627 GB, free: 9.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009812/0.9026, allocations: 0.7363 MB / 0.5635 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002291/0.9049, allocations: 0.9354 MB / 0.5644 GB, free: 8.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.905, allocations: 305.1 kB / 0.5647 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003293/0.9083, allocations: 1.504 MB / 0.5661 GB, free: 6.391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005213/0.9136, allocations: 4.08 MB / 0.5701 GB, free: 1.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008432/0.9221, allocations: 6.04 MB / 0.576 GB, free: 9.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/0.9222, allocations: 28 kB / 0.576 GB, free: 9.723 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.0134/0.9356, allocations: 5.982 MB / 0.5819 GB, free: 3.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/0.9358, allocations: 47.94 kB / 0.5819 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001787/0.936, allocations: 95.92 kB / 0.582 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/0.938, allocations: 0.6118 MB / 0.5826 GB, free: 2.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003659/0.9417, allocations: 1.006 MB / 0.5836 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/0.9547, allocations: 9.257 MB / 0.5926 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004258/0.959, allocations: 242.3 kB / 0.5929 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001084/0.9601, allocations: 276 kB / 0.5931 GB, free: 7.785 MB / 430.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.004393/0.9645, allocations: 1.721 MB / 0.5948 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007067/0.9652, allocations: 282.1 kB / 0.5951 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005827/0.9711, allocations: 2.659 MB / 0.5977 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001517/0.9713, allocations: 35.97 kB / 0.5977 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.122e-05/0.9713, allocations: 7.938 kB / 0.5977 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.9713, allocations: 7.969 kB / 0.5977 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/0.9878, allocations: 7.262 MB / 0.6048 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.323e-05/0.9879, allocations: 4 kB / 0.6048 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.989, allocations: 239.6 kB / 0.605 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.9906, allocations: 497.2 kB / 0.6055 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000229/0.9908, allocations: 39.97 kB / 0.6056 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/1.001, allocations: 7.974 MB / 0.6133 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/1.001, allocations: 11.94 kB / 0.6134 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007985/1.009, allocations: 4.01 MB / 0.6173 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/1.011, allocations: 359.3 kB / 0.6176 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001057/1.012, allocations: 35.98 kB / 0.6177 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/1.014, allocations: 75.91 kB / 0.6177 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003962/1.014, allocations: 125 kB / 0.6178 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/1.014, allocations: 59.98 kB / 0.6179 GB, free: 13.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004441/1.019, allocations: 1.94 MB / 0.6198 GB, free: 11.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.92e-07/1.019, allocations: 0 / 0.6198 GB, free: 11.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005357/1.024, allocations: 0.8358 MB / 0.6206 GB, free: 10.93 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.00882/1.033, allocations: 4.669 MB / 0.6252 GB, free: 6.172 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008503/1.041, allocations: 4.098 MB / 0.6292 GB, free: 2.066 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.042, allocations: 0 / 0.6292 GB, free: 2.066 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/1.044, allocations: 1.558 MB / 0.6307 GB, free: 480 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00356/1.048, allocations: 448.1 kB / 0.6311 GB, free: 40 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09757/1.146, allocations: 33.08 MB / 0.6634 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008518/1.154, allocations: 2.805 MB / 0.6662 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007729/1.162, allocations: 1.325 MB / 0.6675 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004924/1.167, allocations: 1.483 MB / 0.6689 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of SimCode: time 2.325e-06/1.167, allocations: 0 / 0.6689 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5153/1.682, allocations: 56.16 MB / 0.7238 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.23/41.91, allocations: 7.547 kB / 0.7238 GB, free: 177.1 MB / 0.5294 GB (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)