Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009064/0.0009063, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 4 kB / 306.8 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2648/0.381, allocations: 93.86 MB / 452.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04275/0.4238, allocations: 19.14 MB / 471.3 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01971/0.4435, allocations: 474.7 kB / 471.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01564/0.4592, allocations: 4.903 MB / 476.7 MB, free: 5.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03742/0.4967, allocations: 14.55 MB / 491.2 MB, free: 6.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005857/0.5025, allocations: 1.401 MB / 492.6 MB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.4682/0.9707, allocations: 179.2 MB / 0.656 GB, free: 14.73 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01327/0.9841, allocations: 8.807 MB / 0.6646 GB, free: 8.512 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006267/0.9904, allocations: 2.926 MB / 0.6675 GB, free: 6.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007053/0.9975, allocations: 4.423 MB / 0.6718 GB, free: 3.281 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001896/0.9994, allocations: 276 kB / 0.6721 GB, free: 3.012 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003997/1.003, allocations: 1.12 MB / 0.6732 GB, free: 2.094 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005589/1.009, allocations: 3.673 MB / 0.6768 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0042/1.013, allocations: 1.587 MB / 0.6783 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/1.029, allocations: 11.21 MB / 0.6893 GB, free: 5.031 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/1.029, allocations: 0 / 0.6893 GB, free: 5.031 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.615e-06/1.029, allocations: 0 / 0.6893 GB, free: 5.031 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005323/1.029, allocations: 0 / 0.6893 GB, free: 5.031 MB / 494.1 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.02293/1.052, allocations: 8.71 MB / 0.6978 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/1.052, allocations: 8.031 kB / 0.6978 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003552/1.056, allocations: 1.145 MB / 0.6989 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2265/1.283, allocations: 24.79 MB / 0.7231 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5095/1.792, allocations: 8.759 MB / 0.7317 GB, free: 118 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003889/1.793, allocations: 424.4 kB / 0.7321 GB, free: 118 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/1.794, allocations: 0.5854 MB / 0.7326 GB, free: 118 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03151/1.826, allocations: 16.21 MB / 0.7485 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004197/1.826, allocations: 95.67 kB / 0.7486 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00123/1.828, allocations: 267.8 kB / 0.7488 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003954/1.832, allocations: 2.768 MB / 0.7515 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02641/1.858, allocations: 12.86 MB / 0.7641 GB, free: 115.1 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.08196/1.94, allocations: 66.44 MB / 0.829 GB, free: 69.11 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01673/1.957, allocations: 7.642 MB / 0.8364 GB, free: 63.07 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004565/1.962, allocations: 4.199 MB / 0.8405 GB, free: 60.62 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01566/1.977, allocations: 11.68 MB / 0.8519 GB, free: 51.02 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/1.977, allocations: 66.72 kB / 0.852 GB, free: 50.95 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 4.99e-06/1.977, allocations: 0 / 0.852 GB, free: 50.95 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.1533/2.131, allocations: 48.27 MB / 0.8991 GB, free: 2.906 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/2.131, allocations: 401.6 kB / 0.8995 GB, free: 2.43 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/2.142, allocations: 7.115 MB / 0.9065 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008025/2.143, allocations: 77.7 kB / 0.9065 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004363/2.147, allocations: 5.181 MB / 0.9116 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001927/2.149, allocations: 1.239 MB / 0.9128 GB, free: 4.879 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007675/2.15, allocations: 167.1 kB / 0.913 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005423/2.151, allocations: 0.6531 MB / 0.9136 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006282/2.157, allocations: 3.932 MB / 0.9174 GB, free: 120 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009794/2.167, allocations: 8.544 MB / 0.9258 GB, free: 5.363 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2425/2.409, allocations: 5.63 MB / 0.9313 GB, free: 231.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002317/2.41, allocations: 45.38 kB / 0.9313 GB, free: 231.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04/2.45, allocations: 17.1 MB / 0.948 GB, free: 228.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/2.45, allocations: 72.09 kB / 0.9481 GB, free: 228.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001838/2.45, allocations: 159.6 kB / 0.9482 GB, free: 228.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01513/2.465, allocations: 5.777 MB / 0.9539 GB, free: 227.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005829/2.471, allocations: 1.756 MB / 0.9556 GB, free: 227.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03497/2.506, allocations: 29.74 MB / 0.9846 GB, free: 208 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006834/2.513, allocations: 0.5299 MB / 0.9852 GB, free: 207.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/2.514, allocations: 477.4 kB / 0.9856 GB, free: 207.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * 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 (934): * Single equations (assignments): 928 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.006097/2.52, allocations: 3.453 MB / 0.989 GB, free: 203.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/2.522, allocations: 0.6523 MB / 0.9896 GB, free: 203.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02034/2.542, allocations: 11.46 MB / 1.001 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.324e-05/2.542, allocations: 36 kB / 1.001 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-05/2.542, allocations: 22.81 kB / 1.001 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.285e-05/2.542, allocations: 15.94 kB / 1.001 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04125/2.584, allocations: 24.85 MB / 1.025 GB, free: 166.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.283e-05/2.584, allocations: 8 kB / 1.025 GB, free: 166.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/2.585, allocations: 419.3 kB / 1.026 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01396/2.599, allocations: 5.406 MB / 1.031 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006586/2.6, allocations: 60 kB / 1.031 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03208/2.632, allocations: 28.46 MB / 1.059 GB, free: 132.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/2.632, allocations: 8 kB / 1.059 GB, free: 132.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02564/2.658, allocations: 16.44 MB / 1.075 GB, free: 115.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/2.66, allocations: 0.6888 MB / 1.075 GB, free: 114.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002/2.662, allocations: 60 kB / 1.075 GB, free: 114.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003978/2.666, allocations: 276 kB / 1.076 GB, free: 114.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.667, allocations: 250.5 kB / 1.076 GB, free: 114.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006257/2.668, allocations: 85.25 kB / 1.076 GB, free: 114.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008584/2.676, allocations: 4.577 MB / 1.081 GB, free: 109.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.393e-06/2.676, allocations: 0 / 1.081 GB, free: 109.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01032/2.687, allocations: 1.977 MB / 1.082 GB, free: 107.7 MB / 0.545 GB 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.02756/2.714, allocations: 17.15 MB / 1.099 GB, free: 90.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0172/2.731, allocations: 10.41 MB / 1.109 GB, free: 79.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/2.731, allocations: 0 / 1.109 GB, free: 79.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007969/2.739, allocations: 4.676 MB / 1.114 GB, free: 75.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00961/2.749, allocations: 1.034 MB / 1.115 GB, free: 74.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3699/3.119, allocations: 79.61 MB / 1.193 GB, free: 219.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008914/3.128, allocations: 5.532 MB / 1.198 GB, free: 218.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006614/3.135, allocations: 2.621 MB / 1.201 GB, free: 218.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004677/3.139, allocations: 3.741 MB / 1.204 GB, free: 216.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/3.139, allocations: 0 / 1.204 GB, free: 216.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2179/3.357, allocations: 162 MB / 1.363 GB, free: 74 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/3.357, allocations: 234.7 kB / 1.363 GB, free: 73.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.565/9.922, allocations: 0 / 1.363 GB, free: 73.75 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat