Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009833/0.0009835, allocations: 95.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001047, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.000233, allocations: 8 kB / 306.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/0.08784, allocations: 51.49 MB / 358.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.252/0.3399, allocations: 95.41 MB / 453.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05276/0.3927, allocations: 21.45 MB / 475.1 MB, free: 6.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02067/0.4134, allocations: 0.4948 MB / 475.5 MB, free: 5.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01758/0.4311, allocations: 4.81 MB / 480.4 MB, free: 1.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04229/0.4734, allocations: 13.71 MB / 494.1 MB, free: 3.379 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006666/0.4801, allocations: 1.479 MB / 495.5 MB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.3863/0.8664, allocations: 142.7 MB / 0.6232 GB, free: 8.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01012/0.8766, allocations: 9.213 MB / 0.6322 GB, free: 1.617 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004097/0.8807, allocations: 2.522 MB / 0.6347 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005329/0.8861, allocations: 3.242 MB / 0.6379 GB, free: 13.67 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001548/0.8877, allocations: 295.1 kB / 0.6382 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.8906, allocations: 1.107 MB / 0.6392 GB, free: 12.46 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00345/0.8941, allocations: 3.525 MB / 0.6427 GB, free: 9.887 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001874/0.896, allocations: 1.648 MB / 0.6443 GB, free: 9.281 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.9074, allocations: 11.59 MB / 0.6556 GB, free: 15.21 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.9074, allocations: 0 / 0.6556 GB, free: 15.21 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.9074, allocations: 0 / 0.6556 GB, free: 15.21 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004187/0.9078, allocations: 0 / 0.6556 GB, free: 15.21 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02286/0.9307, allocations: 9.164 MB / 0.6646 GB, free: 6.785 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.9308, allocations: 8.031 kB / 0.6646 GB, free: 6.777 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002986/0.9338, allocations: 1.194 MB / 0.6657 GB, free: 6.074 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2927/1.227, allocations: 29.82 MB / 0.6948 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02061/1.247, allocations: 8.368 MB / 0.703 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000455/1.248, allocations: 446.7 kB / 0.7034 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002588/1.25, allocations: 0.614 MB / 0.704 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0352/1.285, allocations: 16.98 MB / 0.7206 GB, free: 6.238 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003733/1.286, allocations: 101.2 kB / 0.7207 GB, free: 6.176 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001376/1.287, allocations: 276.9 kB / 0.721 GB, free: 6.102 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004615/1.292, allocations: 2.861 MB / 0.7238 GB, free: 3.766 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3607/1.653, allocations: 13.53 MB / 0.737 GB, free: 212.6 MB / 0.5138 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08157/1.734, allocations: 68.74 MB / 0.8041 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01732/1.752, allocations: 7.994 MB / 0.8119 GB, free: 151.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01657/1.768, allocations: 12.19 MB / 0.8238 GB, free: 139 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.908e-05/1.768, allocations: 68.52 kB / 0.8239 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 5.29e-06/1.768, allocations: 0 / 0.8239 GB, free: 138.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=359): time 0.1871/1.955, allocations: 51.06 MB / 0.8738 GB, free: 88.01 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.627e-05/1.956, allocations: 410.2 kB / 0.8742 GB, free: 87.52 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009207/1.965, allocations: 7.996 MB / 0.882 GB, free: 79.57 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008867/1.966, allocations: 81.7 kB / 0.882 GB, free: 79.49 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003437/1.969, allocations: 5.345 MB / 0.8873 GB, free: 74.14 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002024/1.971, allocations: 1.311 MB / 0.8885 GB, free: 72.84 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005212/1.972, allocations: 172.7 kB / 0.8887 GB, free: 72.67 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0003259/1.972, allocations: 0.6538 MB / 0.8893 GB, free: 72.01 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004822/1.977, allocations: 4.1 MB / 0.8934 GB, free: 67.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006512/1.983, allocations: 8.788 MB / 0.9019 GB, free: 56.78 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006996/1.99, allocations: 5.822 MB / 0.9076 GB, free: 50.94 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.962e-05/1.991, allocations: 48.09 kB / 0.9077 GB, free: 50.89 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03229/2.023, allocations: 17.81 MB / 0.9251 GB, free: 33.03 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/2.023, allocations: 75.95 kB / 0.9251 GB, free: 32.95 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001635/2.023, allocations: 164 kB / 0.9253 GB, free: 32.79 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01804/2.041, allocations: 6.098 MB / 0.9312 GB, free: 26.68 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006328/2.048, allocations: 1.832 MB / 0.933 GB, free: 24.84 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2958/2.343, allocations: 31.85 MB / 0.9641 GB, free: 185.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008108/2.352, allocations: 0.5428 MB / 0.9647 GB, free: 185.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/2.353, allocations: 490.1 kB / 0.9651 GB, free: 185.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (967): * Single equations (assignments): 961 * 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%) 96,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.008399/2.362, allocations: 3.586 MB / 0.9686 GB, free: 185.6 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002124/2.364, allocations: 0.6691 MB / 0.9693 GB, free: 185.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02563/2.389, allocations: 12.06 MB / 0.9811 GB, free: 181.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/2.39, allocations: 36.75 kB / 0.9811 GB, free: 181.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.782e-05/2.39, allocations: 21.69 kB / 0.9811 GB, free: 181.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.17e-05/2.39, allocations: 15.05 kB / 0.9811 GB, free: 181.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04736/2.437, allocations: 26.06 MB / 1.007 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.863e-05/2.437, allocations: 10.88 kB / 1.007 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0022/2.439, allocations: 467 kB / 1.007 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01636/2.456, allocations: 5.737 MB / 1.013 GB, free: 169.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006503/2.456, allocations: 59.72 kB / 1.013 GB, free: 169.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03493/2.491, allocations: 30.73 MB / 1.043 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/2.491, allocations: 7.938 kB / 1.043 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02878/2.52, allocations: 18.45 MB / 1.061 GB, free: 121.2 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/2.522, allocations: 0.7431 MB / 1.061 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001547/2.524, allocations: 60 kB / 1.062 GB, free: 120.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003851/2.528, allocations: 291.9 kB / 1.062 GB, free: 120.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009451/2.529, allocations: 247.6 kB / 1.062 GB, free: 119.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002885/2.529, allocations: 103.9 kB / 1.062 GB, free: 119.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006981/2.536, allocations: 5.253 MB / 1.067 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.8e-07/2.536, allocations: 0 / 1.067 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008871/2.545, allocations: 2.077 MB / 1.069 GB, free: 112.5 MB / 0.5138 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 225 * 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.02919/2.574, allocations: 20.09 MB / 1.089 GB, free: 92.25 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01678/2.591, allocations: 10.86 MB / 1.1 GB, free: 81.41 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/2.591, allocations: 0 / 1.1 GB, free: 81.41 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00779/2.599, allocations: 4.936 MB / 1.104 GB, free: 76.43 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006159/2.605, allocations: 1.009 MB / 1.105 GB, free: 75.46 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4046/3.01, allocations: 196.2 MB / 1.297 GB, free: 91.09 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005906/3.016, allocations: 5.896 MB / 1.303 GB, free: 89.25 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006416/3.022, allocations: 2.731 MB / 1.305 GB, free: 87.84 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004003/3.026, allocations: 3.897 MB / 1.309 GB, free: 83.95 MB / 0.5138 GB Notification: Performance of SimCode: time 1.443e-06/3.026, allocations: 0 / 1.309 GB, free: 83.95 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4483/3.474, allocations: 170.2 MB / 1.475 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/3.475, allocations: 222.1 kB / 1.476 GB, free: 131.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.666/10.14, allocations: 0 / 1.476 GB, free: 131.4 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat