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.001339/0.001339, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009316/0.0009312, allocations: 101.9 kB / 297.2 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.0002551, allocations: 7.984 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.248, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3315/0.5795, allocations: 112.4 MB / 0.5097 GB, free: 96.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.5798, allocations: 94.67 kB / 0.5098 GB, free: 96.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6679/1.248, allocations: 193.6 MB / 0.6988 GB, free: 53.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.248, allocations: 3.281 kB / 0.6988 GB, free: 53.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008003/1.249, allocations: 187 kB / 0.699 GB, free: 53.7 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.03069/1.279, allocations: 10.26 MB / 0.709 GB, free: 49.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/1.279, allocations: 13.22 kB / 0.7091 GB, free: 49.97 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007522/1.287, allocations: 1.396 MB / 0.7104 GB, free: 49.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06357/1.351, allocations: 16.63 MB / 0.7267 GB, free: 49.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04035/1.391, allocations: 12.58 MB / 0.7389 GB, free: 47.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008421/1.392, allocations: 0.6281 MB / 0.7396 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006021/1.398, allocations: 0.8574 MB / 0.7404 GB, free: 47.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04715/1.445, allocations: 19.41 MB / 0.7593 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005092/1.446, allocations: 114.3 kB / 0.7595 GB, free: 43.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002323/1.448, allocations: 399.1 kB / 0.7598 GB, free: 43.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001918/1.45, allocations: 1.591 MB / 0.7614 GB, free: 43.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03122/1.481, allocations: 15.59 MB / 0.7766 GB, free: 33.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3698/1.851, allocations: 80.42 MB / 0.8552 GB, free: 38.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02006/1.871, allocations: 7.935 MB / 0.8629 GB, free: 37.49 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02255/1.894, allocations: 14.04 MB / 0.8766 GB, free: 34.03 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/1.894, allocations: 68.36 kB / 0.8767 GB, free: 33.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 6.002e-06/1.894, allocations: 3.516 kB / 0.8767 GB, free: 33.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=417): time 0.1696/2.063, allocations: 51.48 MB / 0.927 GB, free: 28 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/2.064, allocations: 405.8 kB / 0.9273 GB, free: 27.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/2.074, allocations: 6.556 MB / 0.9337 GB, free: 27.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009929/2.076, allocations: 95.97 kB / 0.9338 GB, free: 26.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003786/2.079, allocations: 5.823 MB / 0.9395 GB, free: 24.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/2.081, allocations: 1.505 MB / 0.941 GB, free: 23.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005995/2.082, allocations: 187 kB / 0.9412 GB, free: 23.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004177/2.082, allocations: 0.7005 MB / 0.9419 GB, free: 23.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005963/2.088, allocations: 4.28 MB / 0.946 GB, free: 22.24 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008528/2.097, allocations: 9.274 MB / 0.9551 GB, free: 13.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009317/2.106, allocations: 6.198 MB / 0.9611 GB, free: 8.027 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001765/2.106, allocations: 52 kB / 0.9612 GB, free: 7.977 MB / 474.7 MB Notification: Performance of matching and sorting (n=1218) (initialization): time 0.04308/2.149, allocations: 18.26 MB / 0.979 GB, free: 11.65 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001815/2.15, allocations: 80.19 kB / 0.9791 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002539/2.15, allocations: 176 kB / 0.9793 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01643/2.166, allocations: 4.928 MB / 0.9841 GB, free: 7.844 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006956/2.173, allocations: 1.975 MB / 0.986 GB, free: 6.113 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04359/2.217, allocations: 27.82 MB / 1.013 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008617/2.226, allocations: 0.5452 MB / 1.014 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001864/2.228, allocations: 0.5156 MB / 1.014 GB, free: 13.38 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1056 * 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,100.0%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0101/2.238, allocations: 4.09 MB / 1.018 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001666/2.239, allocations: 0.7095 MB / 1.019 GB, free: 8.566 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02612/2.265, allocations: 11.42 MB / 1.03 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-05/2.266, allocations: 44 kB / 1.03 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.175e-05/2.266, allocations: 31.94 kB / 1.03 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.741e-05/2.266, allocations: 15.94 kB / 1.03 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3264/2.592, allocations: 24.82 MB / 1.054 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.728e-05/2.592, allocations: 6.812 kB / 1.054 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002701/2.595, allocations: 0.5721 MB / 1.055 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01432/2.609, allocations: 4.499 MB / 1.059 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007852/2.61, allocations: 78.52 kB / 1.059 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03329/2.643, allocations: 24.47 MB / 1.083 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/2.643, allocations: 14.12 kB / 1.083 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02859/2.672, allocations: 18.51 MB / 1.101 GB, free: 120.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004795/2.677, allocations: 1.401 MB / 1.103 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001683/2.679, allocations: 78.38 kB / 1.103 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003955/2.683, allocations: 260.5 kB / 1.103 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009169/2.684, allocations: 292.7 kB / 1.103 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003038/2.684, allocations: 105.6 kB / 1.103 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007619/2.691, allocations: 4.743 MB / 1.108 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/2.691, allocations: 0 / 1.108 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0104/2.702, allocations: 2.233 MB / 1.11 GB, free: 118.4 MB / 0.5261 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (288): * Single equations (assignments): 284 * 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.02898/2.731, allocations: 20.46 MB / 1.13 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01743/2.748, allocations: 10.92 MB / 1.141 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/2.748, allocations: 0 / 1.141 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007816/2.756, allocations: 4.67 MB / 1.146 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008664/2.765, allocations: 1.053 MB / 1.147 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3757/3.141, allocations: 157.8 MB / 1.301 GB, free: 70.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01164/3.152, allocations: 6.56 MB / 1.307 GB, free: 69.65 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009413/3.162, allocations: 2.942 MB / 1.31 GB, free: 69.58 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00699/3.169, allocations: 4.351 MB / 1.314 GB, free: 69.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.052e-06/3.169, allocations: 7.75 kB / 1.314 GB, free: 69.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4966/3.666, allocations: 177 MB / 1.487 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/3.666, allocations: 218 kB / 1.487 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/10.99, allocations: 0 / 1.487 GB, free: 100.9 MB / 0.5261 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