Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001184/0.001185, allocations: 181.1 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000866/0.000866, allocations: 97.08 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002518/0.0002518, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2341, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.3402, allocations: 96.3 MB / 472.2 MB, free: 328 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.3405, allocations: 95.88 kB / 472.3 MB, free: 232 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5142/0.8547, allocations: 161.3 MB / 0.6187 GB, free: 12.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.8547, allocations: 0 / 0.6187 GB, free: 12.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005749/0.8553, allocations: 156 kB / 0.6189 GB, free: 11.88 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02609/0.8814, allocations: 8.989 MB / 0.6276 GB, free: 2.797 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.8815, allocations: 8.031 kB / 0.6277 GB, free: 2.789 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00443/0.8859, allocations: 1.206 MB / 0.6288 GB, free: 1.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05975/0.9457, allocations: 16.47 MB / 0.6449 GB, free: 1.066 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2026/1.148, allocations: 13.56 MB / 0.6582 GB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004196/1.149, allocations: 0.5244 MB / 0.6587 GB, free: 53.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002441/1.151, allocations: 0.7259 MB / 0.6594 GB, free: 53.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03269/1.184, allocations: 16.4 MB / 0.6754 GB, free: 49.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000404/1.184, allocations: 108.3 kB / 0.6755 GB, free: 49.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001207/1.186, allocations: 341.3 kB / 0.6758 GB, free: 49.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002039/1.188, allocations: 1.48 MB / 0.6773 GB, free: 49.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02308/1.211, allocations: 12.93 MB / 0.6899 GB, free: 49.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07342/1.284, allocations: 73.42 MB / 0.7616 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01739/1.302, allocations: 7.5 MB / 0.7689 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/1.319, allocations: 11.59 MB / 0.7802 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.036e-05/1.319, allocations: 64.5 kB / 0.7803 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 4.718e-06/1.319, allocations: 3.844 kB / 0.7803 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.325/1.644, allocations: 46.61 MB / 0.8258 GB, free: 98.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/1.644, allocations: 397.1 kB / 0.8262 GB, free: 97.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007593/1.652, allocations: 6.265 MB / 0.8323 GB, free: 97.25 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005689/1.652, allocations: 77.92 kB / 0.8324 GB, free: 97.21 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002438/1.655, allocations: 5.231 MB / 0.8375 GB, free: 96.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/1.656, allocations: 1.252 MB / 0.8387 GB, free: 95.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003679/1.656, allocations: 168.1 kB / 0.8389 GB, free: 95.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003257/1.657, allocations: 0.651 MB / 0.8395 GB, free: 95.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004244/1.661, allocations: 3.802 MB / 0.8432 GB, free: 95.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/1.667, allocations: 8.471 MB / 0.8515 GB, free: 89.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007528/1.674, allocations: 5.509 MB / 0.8569 GB, free: 89.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.674, allocations: 47.12 kB / 0.8569 GB, free: 89.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03035/1.705, allocations: 16.72 MB / 0.8733 GB, free: 87.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/1.705, allocations: 76.16 kB / 0.8733 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/1.705, allocations: 161.7 kB / 0.8735 GB, free: 87.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0149/1.72, allocations: 5.51 MB / 0.8789 GB, free: 86.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005356/1.725, allocations: 1.79 MB / 0.8806 GB, free: 86.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03102/1.756, allocations: 28.97 MB / 0.9089 GB, free: 72.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00678/1.763, allocations: 0.5229 MB / 0.9094 GB, free: 72.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/1.765, allocations: 482 kB / 0.9099 GB, free: 72.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (947): * Single equations (assignments): 941 * Array equations: 3 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005694/1.77, allocations: 3.475 MB / 0.9133 GB, free: 71.18 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/1.772, allocations: 0.6558 MB / 0.9139 GB, free: 70.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01959/1.791, allocations: 10.96 MB / 0.9246 GB, free: 63.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.989e-05/1.791, allocations: 39.94 kB / 0.9247 GB, free: 63.04 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.72e-05/1.791, allocations: 20 kB / 0.9247 GB, free: 63.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.226e-05/1.791, allocations: 18.09 kB / 0.9247 GB, free: 63.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/1.827, allocations: 24.02 MB / 0.9481 GB, free: 43.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.429e-05/1.827, allocations: 15.17 kB / 0.9482 GB, free: 43.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/1.829, allocations: 432.4 kB / 0.9486 GB, free: 42.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01365/1.843, allocations: 5.09 MB / 0.9535 GB, free: 39.56 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004559/1.843, allocations: 67.83 kB / 0.9536 GB, free: 39.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02936/1.873, allocations: 27.71 MB / 0.9807 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/1.873, allocations: 11.94 kB / 0.9807 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2065/2.079, allocations: 16.88 MB / 0.9972 GB, free: 86.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004094/2.083, allocations: 1.266 MB / 0.9984 GB, free: 86.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001323/2.085, allocations: 68.31 kB / 0.9985 GB, free: 86.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003156/2.088, allocations: 257.4 kB / 0.9987 GB, free: 86.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007171/2.089, allocations: 241.8 kB / 0.9989 GB, free: 86.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002398/2.089, allocations: 85.72 kB / 0.999 GB, free: 86.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00659/2.095, allocations: 4.539 MB / 1.003 GB, free: 86.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.5e-07/2.095, allocations: 0 / 1.003 GB, free: 86.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007694/2.103, allocations: 1.962 MB / 1.005 GB, free: 86.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.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 (214): * Single equations (assignments): 208 * Array equations: 3 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0249/2.128, allocations: 18.63 MB / 1.024 GB, free: 82.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01358/2.142, allocations: 10.14 MB / 1.033 GB, free: 82.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/2.142, allocations: 3.812 kB / 1.033 GB, free: 82.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006215/2.148, allocations: 4.503 MB / 1.038 GB, free: 81.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/2.153, allocations: 0.9792 MB / 1.039 GB, free: 80.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3215/2.474, allocations: 190.1 MB / 1.224 GB, free: 71.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008218/2.482, allocations: 5.721 MB / 1.23 GB, free: 70.45 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006635/2.489, allocations: 2.636 MB / 1.233 GB, free: 70.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004735/2.494, allocations: 3.732 MB / 1.236 GB, free: 70.38 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/2.494, allocations: 0 / 1.236 GB, free: 70.38 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3914/2.885, allocations: 160 MB / 1.393 GB, free: 107.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001359/2.885, allocations: 215.6 kB / 1.393 GB, free: 106.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.05/8.936, allocations: 0 / 1.393 GB, free: 106.9 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat