Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001396/0.001395, allocations: 181.2 kB / 16.39 MB, free: 5.762 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.358/1.358, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009693/0.0009696, allocations: 105.4 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002645, allocations: 12 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2385, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.3564, allocations: 98.14 MB / 499.7 MB, free: 14.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.3568, allocations: 91.95 kB / 499.8 MB, free: 14.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5731/0.93, allocations: 163.2 MB / 0.6474 GB, free: 11.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.93, allocations: 0 / 0.6474 GB, free: 11.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006124/0.9306, allocations: 160 kB / 0.6476 GB, free: 11.23 MB / 426.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.02844/0.9591, allocations: 8.903 MB / 0.6563 GB, free: 2.234 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.9591, allocations: 12.03 kB / 0.6563 GB, free: 2.223 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004713/0.9638, allocations: 1.21 MB / 0.6575 GB, free: 1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5543/1.518, allocations: 16.45 MB / 0.6735 GB, free: 50.99 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03473/1.553, allocations: 12.61 MB / 0.6858 GB, free: 50.51 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005826/1.554, allocations: 0.5248 MB / 0.6864 GB, free: 50.5 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003711/1.557, allocations: 0.7243 MB / 0.6871 GB, free: 50.48 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03957/1.597, allocations: 16.4 MB / 0.7031 GB, free: 46.88 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004323/1.597, allocations: 111.7 kB / 0.7032 GB, free: 46.86 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/1.599, allocations: 335 kB / 0.7035 GB, free: 46.86 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002079/1.601, allocations: 1.487 MB / 0.705 GB, free: 46.85 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0264/1.627, allocations: 12.92 MB / 0.7176 GB, free: 46.79 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08015/1.707, allocations: 73.26 MB / 0.7891 GB, free: 5.242 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01831/1.726, allocations: 7.503 MB / 0.7964 GB, free: 15.13 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/1.745, allocations: 11.5 MB / 0.8077 GB, free: 5.371 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.43e-05/1.745, allocations: 59.75 kB / 0.8077 GB, free: 5.309 MB / 458.8 MB Notification: Performance of pre-optimization done (n=280): time 4.989e-06/1.745, allocations: 0 / 0.8077 GB, free: 5.309 MB / 458.8 MB Notification: Performance of matching and sorting (n=339): time 0.4321/2.177, allocations: 45.35 MB / 0.852 GB, free: 88.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/2.178, allocations: 396.9 kB / 0.8524 GB, free: 88.36 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01007/2.188, allocations: 6.178 MB / 0.8584 GB, free: 87.88 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007232/2.188, allocations: 78.39 kB / 0.8585 GB, free: 87.85 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003619/2.192, allocations: 5.232 MB / 0.8636 GB, free: 85.63 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001607/2.194, allocations: 1.246 MB / 0.8648 GB, free: 84.9 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006511/2.194, allocations: 166.8 kB / 0.865 GB, free: 84.9 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003666/2.195, allocations: 0.6548 MB / 0.8656 GB, free: 84.58 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005233/2.2, allocations: 3.794 MB / 0.8693 GB, free: 84.55 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007353/2.207, allocations: 8.464 MB / 0.8776 GB, free: 78.57 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0079/2.215, allocations: 5.512 MB / 0.883 GB, free: 78.52 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001749/2.215, allocations: 47.94 kB / 0.883 GB, free: 78.52 MB / 474.8 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.03436/2.25, allocations: 16.72 MB / 0.8994 GB, free: 76.45 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/2.25, allocations: 74.12 kB / 0.8994 GB, free: 76.45 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/2.25, allocations: 163.4 kB / 0.8996 GB, free: 76.45 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01518/2.265, allocations: 5.49 MB / 0.905 GB, free: 75.53 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005651/2.271, allocations: 1.8 MB / 0.9067 GB, free: 75.32 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03404/2.305, allocations: 29 MB / 0.935 GB, free: 60.82 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007173/2.312, allocations: 0.5257 MB / 0.9355 GB, free: 60.39 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/2.314, allocations: 478.2 kB / 0.936 GB, free: 59.93 MB / 474.8 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 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * 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 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006806/2.321, allocations: 3.469 MB / 0.9394 GB, free: 56.91 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/2.322, allocations: 0.6557 MB / 0.94 GB, free: 56.25 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02172/2.344, allocations: 10.95 MB / 0.9507 GB, free: 47.88 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.176e-05/2.344, allocations: 36 kB / 0.9507 GB, free: 47.84 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.495e-05/2.344, allocations: 19.52 kB / 0.9508 GB, free: 47.83 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.394e-05/2.344, allocations: 18.44 kB / 0.9508 GB, free: 47.82 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04298/2.387, allocations: 23.97 MB / 0.9742 GB, free: 28.12 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.556e-05/2.387, allocations: 4 kB / 0.9742 GB, free: 28.12 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/2.389, allocations: 448.6 kB / 0.9746 GB, free: 27.77 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01439/2.404, allocations: 5.091 MB / 0.9796 GB, free: 24.37 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006409/2.404, allocations: 60 kB / 0.9797 GB, free: 24.31 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3098/2.714, allocations: 27.72 MB / 1.007 GB, free: 77.88 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/2.714, allocations: 9.812 kB / 1.007 GB, free: 77.88 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02801/2.742, allocations: 16.86 MB / 1.023 GB, free: 75.73 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003358/2.746, allocations: 0.6663 MB / 1.024 GB, free: 75.63 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002785/2.749, allocations: 66.19 kB / 1.024 GB, free: 75.63 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004835/2.753, allocations: 260.6 kB / 1.024 GB, free: 75.63 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.755, allocations: 241.1 kB / 1.024 GB, free: 75.62 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/2.755, allocations: 85.44 kB / 1.024 GB, free: 75.62 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.009895/2.765, allocations: 4.471 MB / 1.029 GB, free: 75.41 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.61e-07/2.765, allocations: 0.875 kB / 1.029 GB, free: 75.41 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01107/2.776, allocations: 1.966 MB / 1.031 GB, free: 75.41 MB / 474.8 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.02793/2.804, allocations: 18.6 MB / 1.049 GB, free: 71.79 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0166/2.821, allocations: 10.12 MB / 1.059 GB, free: 71.26 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/2.821, allocations: 3.656 kB / 1.059 GB, free: 71.26 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008072/2.829, allocations: 4.5 MB / 1.063 GB, free: 69.92 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007307/2.836, allocations: 0.9788 MB / 1.064 GB, free: 69.56 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.444/3.28, allocations: 189.4 MB / 1.249 GB, free: 86.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008745/3.289, allocations: 5.687 MB / 1.255 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008642/3.298, allocations: 2.639 MB / 1.257 GB, free: 85.88 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006947/3.305, allocations: 3.751 MB / 1.261 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of SimCode: time 2.725e-06/3.305, allocations: 0 / 1.261 GB, free: 85.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5275/3.832, allocations: 159.4 MB / 1.417 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/3.832, allocations: 224.5 kB / 1.417 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/11.6, allocations: 4 kB / 1.417 GB, free: 107.1 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat