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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004353/0.004353, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 223.2 MB / 239 MB, free: 68 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 103.4 kB / 290.2 MB, free: 4.492 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03962/0.03962, allocations: 8.935 MB / 350.2 MB, free: 4.176 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002954, allocations: 8 kB / 413.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1861, allocations: 52.39 MB / 465.6 MB, free: 69.25 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08245/0.2686, allocations: 87.53 MB / 0.5402 GB, free: 13.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/0.2688, allocations: 83.94 kB / 0.5403 GB, free: 13.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3149/0.5837, allocations: 70.13 MB / 0.6087 GB, free: 46.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5837, allocations: 0 / 0.6087 GB, free: 46.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.467e-05/0.5838, allocations: 63.94 kB / 0.6088 GB, free: 46.69 MB / 378.7 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.009435/0.5933, allocations: 3.81 MB / 0.6125 GB, free: 42.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.5933, allocations: 12.03 kB / 0.6125 GB, free: 42.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001102/0.5944, allocations: 0.6438 MB / 0.6132 GB, free: 42.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007123/0.6016, allocations: 1.985 MB / 0.6151 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003908/0.6055, allocations: 1.864 MB / 0.6169 GB, free: 38.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.6056, allocations: 250.4 kB / 0.6172 GB, free: 38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006973/0.6063, allocations: 327.8 kB / 0.6175 GB, free: 37.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.6182, allocations: 8.546 MB / 0.6258 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.202e-05/0.6183, allocations: 27.72 kB / 0.6259 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004053/0.6187, allocations: 147.9 kB / 0.626 GB, free: 28.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001089/0.6198, allocations: 1.006 MB / 0.627 GB, free: 27.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.632, allocations: 7.873 MB / 0.6347 GB, free: 19.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03391/0.6659, allocations: 28.49 MB / 0.6625 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006846/0.6728, allocations: 2.827 MB / 0.6652 GB, free: 3.582 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008685/0.6815, allocations: 6.466 MB / 0.6716 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.6816, allocations: 51.88 kB / 0.6716 GB, free: 12.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=155): time 3.397e-06/0.6816, allocations: 4 kB / 0.6716 GB, free: 12.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=193): time 0.01534/0.6969, allocations: 7.007 MB / 0.6785 GB, free: 5.301 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.697, allocations: 69.41 kB / 0.6785 GB, free: 5.223 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/0.7011, allocations: 2.658 MB / 0.6811 GB, free: 2.555 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.694e-05/0.7012, allocations: 53.7 kB / 0.6812 GB, free: 2.496 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001483/0.7026, allocations: 2.354 MB / 0.6835 GB, free: 112 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005629/0.7032, allocations: 0.7056 MB / 0.6842 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/0.7035, allocations: 96 kB / 0.6842 GB, free: 15.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002914/0.7037, allocations: 0.5002 MB / 0.6847 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002276/0.706, allocations: 1.461 MB / 0.6862 GB, free: 13.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/0.7098, allocations: 4.019 MB / 0.6901 GB, free: 8.023 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/0.7133, allocations: 2.428 MB / 0.6925 GB, free: 5.594 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-05/0.7134, allocations: 28 kB / 0.6925 GB, free: 5.566 MB / 426.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.009177/0.7225, allocations: 5.876 MB / 0.6982 GB, free: 15.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.315e-05/0.7226, allocations: 45.72 kB / 0.6983 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.7227, allocations: 96.02 kB / 0.6984 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.7241, allocations: 0.5692 MB / 0.6989 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/0.7268, allocations: 0.9904 MB / 0.6999 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009028/0.7358, allocations: 8.545 MB / 0.7082 GB, free: 4.996 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002865/0.7387, allocations: 227.9 kB / 0.7084 GB, free: 4.773 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004111/0.7391, allocations: 276.1 kB / 0.7087 GB, free: 4.504 MB / 442.7 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 (546): * Single equations (assignments): 539 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.002632/0.7418, allocations: 1.742 MB / 0.7104 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003708/0.7421, allocations: 264.5 kB / 0.7107 GB, free: 2.488 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004172/0.7463, allocations: 2.621 MB / 0.7132 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/0.7464, allocations: 35.94 kB / 0.7133 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.7465, allocations: 4 kB / 0.7133 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.7465, allocations: 7.969 kB / 0.7133 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.7583, allocations: 7.276 MB / 0.7204 GB, free: 8.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.7583, allocations: 7.938 kB / 0.7204 GB, free: 8.359 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008419/0.7592, allocations: 235.7 kB / 0.7206 GB, free: 8.129 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.7602, allocations: 426.2 kB / 0.721 GB, free: 7.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.7603, allocations: 43.92 kB / 0.7211 GB, free: 7.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1863/0.9466, allocations: 7.372 MB / 0.7283 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.778e-06/0.9467, allocations: 9.844 kB / 0.7283 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005465/0.9521, allocations: 4.303 MB / 0.7325 GB, free: 118.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006749/0.9528, allocations: 356.8 kB / 0.7328 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/0.9531, allocations: 33.75 kB / 0.7328 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008602/0.954, allocations: 83 kB / 0.7329 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.9542, allocations: 120.8 kB / 0.733 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.9543, allocations: 54.92 kB / 0.7331 GB, free: 118.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002384/0.9567, allocations: 1.888 MB / 0.7349 GB, free: 118.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9567, allocations: 0 / 0.7349 GB, free: 118.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002936/0.9596, allocations: 0.8376 MB / 0.7357 GB, free: 118.7 MB / 458.7 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 (134): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.005118/0.9648, allocations: 6.046 MB / 0.7417 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004979/0.9698, allocations: 4.018 MB / 0.7456 GB, free: 115.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.9698, allocations: 0 / 0.7456 GB, free: 115.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.9714, allocations: 1.529 MB / 0.7471 GB, free: 115.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.9729, allocations: 391.7 kB / 0.7474 GB, free: 115.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04144/1.014, allocations: 86.04 MB / 0.8315 GB, free: 40.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/1.017, allocations: 2.878 MB / 0.8343 GB, free: 39.21 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00292/1.02, allocations: 1.328 MB / 0.8356 GB, free: 39.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/1.021, allocations: 1.493 MB / 0.837 GB, free: 37.89 MB / 458.7 MB Notification: Performance of SimCode: time 6.21e-07/1.021, allocations: 2.734 kB / 0.837 GB, free: 37.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07653/1.098, allocations: 62.21 MB / 0.8978 GB, free: 3.68 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/1.098, allocations: 194.4 kB / 0.898 GB, free: 3.441 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.258/4.355, allocations: 4 kB / 0.898 GB, free: 3.438 MB / 474.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)