Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001054, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009261/0.0009261, allocations: 94.36 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.747e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 51.47 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4275/0.5381, allocations: 111.7 MB / 0.4951 GB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.5385, allocations: 85.27 kB / 0.4952 GB, free: 13.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7129/1.251, allocations: 190.2 MB / 0.6809 GB, free: 58.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.472e-06/1.251, allocations: 0 / 0.6809 GB, free: 58.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007537/1.252, allocations: 185.4 kB / 0.6811 GB, free: 58.16 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03095/1.283, allocations: 9.153 MB / 0.69 GB, free: 51.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.283, allocations: 8.031 kB / 0.69 GB, free: 51.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06213/1.345, allocations: 16.65 MB / 0.7063 GB, free: 34.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0319/1.377, allocations: 12.52 MB / 0.7185 GB, free: 22.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004986/1.378, allocations: 272 kB / 0.7188 GB, free: 22.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00432/1.382, allocations: 0.5168 MB / 0.7193 GB, free: 21.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02398/1.406, allocations: 11.71 MB / 0.7307 GB, free: 9.809 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3768/1.783, allocations: 16.53 MB / 0.7468 GB, free: 48.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008871/1.784, allocations: 111.3 kB / 0.7469 GB, free: 48.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004299/1.788, allocations: 43.69 kB / 0.747 GB, free: 48.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002915/1.791, allocations: 1.593 MB / 0.7485 GB, free: 48.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1316/1.923, allocations: 77.99 MB / 0.8247 GB, free: 39.43 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0119/1.935, allocations: 5.476 MB / 0.8301 GB, free: 36.66 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006925/1.942, allocations: 3.88 MB / 0.8338 GB, free: 34.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003608/1.945, allocations: 2.859 MB / 0.8366 GB, free: 32.41 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.646e-05/1.946, allocations: 70.61 kB / 0.8367 GB, free: 32.35 MB / 474.7 MB Notification: Performance of pre-optimization done (n=316): time 1.154e-05/1.946, allocations: 3.938 kB / 0.8367 GB, free: 32.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=426): time 0.1498/2.095, allocations: 44.75 MB / 0.8804 GB, free: 17.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/2.096, allocations: 408.7 kB / 0.8808 GB, free: 17.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01413/2.11, allocations: 5.844 MB / 0.8865 GB, free: 15.03 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001208/2.111, allocations: 29.11 kB / 0.8865 GB, free: 15 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005631/2.117, allocations: 5.844 MB / 0.8922 GB, free: 10.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002259/2.119, allocations: 1.487 MB / 0.8937 GB, free: 9.336 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008729/2.12, allocations: 0 / 0.8937 GB, free: 9.336 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005572/2.12, allocations: 0.7119 MB / 0.8944 GB, free: 8.855 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006721/2.127, allocations: 4.113 MB / 0.8984 GB, free: 5.223 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01254/2.14, allocations: 9.203 MB / 0.9074 GB, free: 10.06 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.151, allocations: 6.085 MB / 0.9133 GB, free: 4.801 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002383/2.151, allocations: 52 kB / 0.9134 GB, free: 4.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.3466/2.498, allocations: 16.49 MB / 0.9295 GB, free: 93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/2.498, allocations: 82.84 kB / 0.9296 GB, free: 93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002774/2.498, allocations: 179.9 kB / 0.9297 GB, free: 93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01522/2.514, allocations: 4.776 MB / 0.9344 GB, free: 92.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007472/2.521, allocations: 2.035 MB / 0.9364 GB, free: 92.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03754/2.559, allocations: 24.68 MB / 0.9605 GB, free: 91.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009149/2.568, allocations: 376.7 kB / 0.9608 GB, free: 91.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002552/2.571, allocations: 0.5268 MB / 0.9614 GB, free: 91.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1094): * Single equations (assignments): 1089 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003291/2.574, allocations: 0.5703 MB / 0.9619 GB, free: 91.46 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02448/2.598, allocations: 10.94 MB / 0.9726 GB, free: 89.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002508/2.601, allocations: 0.6808 MB / 0.9733 GB, free: 89.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0279/2.629, allocations: 11.04 MB / 0.984 GB, free: 85.69 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.933e-05/2.629, allocations: 41.88 kB / 0.9841 GB, free: 85.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-05/2.629, allocations: 24.31 kB / 0.9841 GB, free: 85.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001272/2.629, allocations: 22.17 kB / 0.9841 GB, free: 85.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05831/2.688, allocations: 23.47 MB / 1.007 GB, free: 76.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.435e-05/2.688, allocations: 10.19 kB / 1.007 GB, free: 76.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/2.691, allocations: 0.5869 MB / 1.008 GB, free: 76.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01441/2.705, allocations: 4.335 MB / 1.012 GB, free: 75.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001158/2.707, allocations: 18.2 kB / 1.012 GB, free: 75.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03561/2.742, allocations: 21.6 MB / 1.033 GB, free: 61.15 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/2.742, allocations: 17.05 kB / 1.033 GB, free: 61.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03301/2.775, allocations: 18.13 MB / 1.051 GB, free: 45.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005006/2.78, allocations: 1.381 MB / 1.052 GB, free: 43.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002753/2.783, allocations: 8 kB / 1.052 GB, free: 43.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00553/2.789, allocations: 196.8 kB / 1.052 GB, free: 43.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001824/2.791, allocations: 295.2 kB / 1.053 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008644/2.792, allocations: 119.1 kB / 1.053 GB, free: 43.58 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01102/2.803, allocations: 4.08 MB / 1.057 GB, free: 40.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/2.803, allocations: 0 / 1.057 GB, free: 40.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01442/2.817, allocations: 1.957 MB / 1.059 GB, free: 38.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (297): * Single equations (assignments): 293 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0317/2.849, allocations: 20.08 MB / 1.078 GB, free: 20.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01807/2.867, allocations: 10.41 MB / 1.088 GB, free: 10.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.138e-05/2.867, allocations: 4 kB / 1.088 GB, free: 10.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007752/2.875, allocations: 4.515 MB / 1.093 GB, free: 6.582 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007739/2.883, allocations: 0.9027 MB / 1.094 GB, free: 5.723 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3675/3.25, allocations: 20.55 MB / 1.114 GB, free: 92.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/3.26, allocations: 6.57 MB / 1.12 GB, free: 91.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009365/3.27, allocations: 3.014 MB / 1.123 GB, free: 91.12 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008311/3.278, allocations: 4.263 MB / 1.127 GB, free: 91.12 MB / 490.7 MB Notification: Performance of SimCode: time 1.453e-06/3.278, allocations: 0 / 1.127 GB, free: 91.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6259/3.904, allocations: 171.6 MB / 1.295 GB, free: 82.29 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/3.904, allocations: 159.3 kB / 1.295 GB, free: 82.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.935/12.84, allocations: 0 / 1.295 GB, free: 82.1 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat