Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.001601/0.001601, allocations: 174.9 kB / 13.63 MB, free: 1.684 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.617/1.617, allocations: 221.3 MB / 235.5 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008227/0.0008227, allocations: 93.88 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.051e-05, allocations: 0 / 343.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 50.42 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4715, allocations: 99.66 MB / 494 MB, free: 3.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4718, allocations: 87.94 kB / 494.1 MB, free: 3.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7118/1.184, allocations: 168.1 MB / 0.6467 GB, free: 57.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.884e-06/1.184, allocations: 0 / 0.6467 GB, free: 57.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006595/1.184, allocations: 164 kB / 0.6469 GB, free: 57.27 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02851/1.213, allocations: 8.168 MB / 0.6548 GB, free: 49.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/1.213, allocations: 8.031 kB / 0.6548 GB, free: 49.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007075/1.22, allocations: 1.256 MB / 0.6561 GB, free: 47.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05936/1.279, allocations: 16.55 MB / 0.6722 GB, free: 31.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03298/1.312, allocations: 12.82 MB / 0.6848 GB, free: 18.24 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000654/1.313, allocations: 0.5497 MB / 0.6853 GB, free: 17.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004616/1.318, allocations: 0.7612 MB / 0.686 GB, free: 16.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04343/1.361, allocations: 16.83 MB / 0.7025 GB, free: 14.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006902/1.362, allocations: 111 kB / 0.7026 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002872/1.365, allocations: 351.8 kB / 0.7029 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002605/1.368, allocations: 1.535 MB / 0.7044 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6208/1.988, allocations: 13.13 MB / 0.7172 GB, free: 68.92 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1057/2.094, allocations: 75.16 MB / 0.7906 GB, free: 27.88 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01975/2.114, allocations: 7.801 MB / 0.7982 GB, free: 25.41 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00535/2.119, allocations: 4.093 MB / 0.8022 GB, free: 23.63 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/2.14, allocations: 11.87 MB / 0.8138 GB, free: 17.91 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/2.14, allocations: 71.38 kB / 0.8139 GB, free: 17.85 MB / 442.8 MB Notification: Performance of pre-optimization done (n=294): time 5.791e-06/2.14, allocations: 5.531 kB / 0.8139 GB, free: 17.85 MB / 442.8 MB Notification: Performance of matching and sorting (n=361): time 0.1349/2.275, allocations: 40.43 MB / 0.8534 GB, free: 1.156 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/2.275, allocations: 396.5 kB / 0.8538 GB, free: 0.6836 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/2.288, allocations: 6.239 MB / 0.8599 GB, free: 11.2 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001055/2.289, allocations: 81.7 kB / 0.8599 GB, free: 11.11 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005177/2.294, allocations: 5.41 MB / 0.8652 GB, free: 6.242 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002346/2.297, allocations: 1.322 MB / 0.8665 GB, free: 5.066 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008916/2.298, allocations: 172 kB / 0.8667 GB, free: 4.898 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0006911/2.298, allocations: 0.6651 MB / 0.8673 GB, free: 4.328 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006503/2.305, allocations: 3.899 MB / 0.8711 GB, free: 0.793 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02385/2.329, allocations: 9.708 MB / 0.8806 GB, free: 8.785 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009955/2.339, allocations: 5.698 MB / 0.8862 GB, free: 3.211 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/2.339, allocations: 48 kB / 0.8862 GB, free: 3.164 MB / 474.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.3862/2.725, allocations: 17.27 MB / 0.9031 GB, free: 96.24 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001777/2.725, allocations: 78.91 kB / 0.9032 GB, free: 96.24 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004087/2.726, allocations: 166.8 kB / 0.9033 GB, free: 96.24 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02031/2.746, allocations: 5.741 MB / 0.9089 GB, free: 96.2 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008184/2.754, allocations: 1.845 MB / 0.9107 GB, free: 96.04 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0408/2.795, allocations: 29.16 MB / 0.9392 GB, free: 90.05 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009216/2.805, allocations: 0.547 MB / 0.9398 GB, free: 89.91 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002022/2.807, allocations: 490.9 kB / 0.9402 GB, free: 89.85 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001834/2.808, allocations: 0.7692 MB / 0.941 GB, free: 89.34 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/2.81, allocations: 0.6722 MB / 0.9416 GB, free: 89.34 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02469/2.835, allocations: 11.5 MB / 0.9529 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.36e-05/2.835, allocations: 41.73 kB / 0.9529 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.866e-05/2.835, allocations: 21.47 kB / 0.9529 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.181e-05/2.835, allocations: 24.53 kB / 0.9529 GB, free: 85.61 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05331/2.888, allocations: 25.06 MB / 0.9774 GB, free: 75.13 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.097e-05/2.889, allocations: 7.422 kB / 0.9774 GB, free: 75.13 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/2.891, allocations: 469.1 kB / 0.9779 GB, free: 74.75 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01669/2.908, allocations: 5.386 MB / 0.9831 GB, free: 71.18 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009684/2.909, allocations: 65.97 kB / 0.9832 GB, free: 71.11 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03442/2.943, allocations: 28.03 MB / 1.011 GB, free: 47.03 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/2.943, allocations: 11.94 kB / 1.011 GB, free: 47.02 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03004/2.973, allocations: 17.64 MB / 1.028 GB, free: 29.75 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004554/2.978, allocations: 1.315 MB / 1.029 GB, free: 28.42 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001881/2.98, allocations: 63.12 kB / 1.029 GB, free: 28.36 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004122/2.984, allocations: 271.6 kB / 1.029 GB, free: 28.1 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008891/2.985, allocations: 249 kB / 1.03 GB, free: 27.86 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003025/2.985, allocations: 102 kB / 1.03 GB, free: 27.76 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008686/2.994, allocations: 4.492 MB / 1.034 GB, free: 23.3 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.445e-06/2.994, allocations: 0 / 1.034 GB, free: 23.3 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01098/3.005, allocations: 2.053 MB / 1.036 GB, free: 21.27 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0293/3.034, allocations: 19.28 MB / 1.055 GB, free: 1.805 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.3124/3.347, allocations: 10.4 MB / 1.065 GB, free: 111.9 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/3.347, allocations: 3.844 kB / 1.065 GB, free: 111.9 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008992/3.356, allocations: 4.703 MB / 1.07 GB, free: 111.4 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006324/3.362, allocations: 1.006 MB / 1.071 GB, free: 111.4 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05793/3.42, allocations: 18.92 MB / 1.089 GB, free: 108.2 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/3.432, allocations: 5.904 MB / 1.095 GB, free: 107.3 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.009241/3.441, allocations: 2.732 MB / 1.098 GB, free: 107.3 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007413/3.448, allocations: 3.906 MB / 1.101 GB, free: 107.3 MB / 490.8 MB Notification: Performance of SimCode: time 2.624e-06/3.448, allocations: 0 / 1.101 GB, free: 107.3 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5608/4.009, allocations: 165.8 MB / 1.263 GB, free: 92.54 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/4.009, allocations: 196.7 kB / 1.263 GB, free: 92.31 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.558/12.57, allocations: 0 / 1.263 GB, free: 92.31 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat