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/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_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/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 99.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001738/0.001738, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000212/0.000212, allocations: 8 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09677, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2671/0.3639, allocations: 97.83 MB / 456 MB, free: 9.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04803/0.412, allocations: 22.51 MB / 478.5 MB, free: 2.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02165/0.4337, allocations: 0.4948 MB / 479 MB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01467/0.4484, allocations: 4.907 MB / 483.9 MB, free: 13.4 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04115/0.4896, allocations: 13.85 MB / 497.8 MB, free: 15.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007585/0.4972, allocations: 1.685 MB / 499.5 MB, free: 13.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.4354/0.9326, allocations: 142.9 MB / 0.6273 GB, free: 2.41 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0194/0.9521, allocations: 12.65 MB / 0.6397 GB, free: 9.418 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006427/0.9586, allocations: 2.632 MB / 0.6423 GB, free: 7.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006676/0.9653, allocations: 3.533 MB / 0.6457 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002767/0.9681, allocations: 336 kB / 0.646 GB, free: 4.898 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004984/0.9731, allocations: 1.299 MB / 0.6473 GB, free: 3.828 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006725/0.9799, allocations: 3.897 MB / 0.6511 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004623/0.9845, allocations: 1.865 MB / 0.6529 GB, free: 332 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01903/1.004, allocations: 14.26 MB / 0.6669 GB, free: 3.941 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/1.004, allocations: 4 kB / 0.6669 GB, free: 3.938 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.697e-06/1.004, allocations: 0 / 0.6669 GB, free: 3.938 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007187/1.004, allocations: 0 / 0.6669 GB, free: 3.938 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03449/1.039, allocations: 10.11 MB / 0.6767 GB, free: 10.65 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.039, allocations: 8.031 kB / 0.6767 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006964/1.046, allocations: 1.339 MB / 0.6781 GB, free: 9.859 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2978/1.344, allocations: 30.05 MB / 0.7074 GB, free: 13.71 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02575/1.37, allocations: 9.22 MB / 0.7164 GB, free: 7.207 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006946/1.37, allocations: 0.5209 MB / 0.7169 GB, free: 6.914 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004775/1.375, allocations: 0.7224 MB / 0.7176 GB, free: 6.434 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4559/1.831, allocations: 19.42 MB / 0.7366 GB, free: 209.2 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004281/1.832, allocations: 98.53 kB / 0.7367 GB, free: 209.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001649/1.833, allocations: 326.7 kB / 0.737 GB, free: 209 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004815/1.838, allocations: 2.824 MB / 0.7398 GB, free: 208.4 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03591/1.874, allocations: 15.81 MB / 0.7552 GB, free: 202.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.09099/1.965, allocations: 72.93 MB / 0.8264 GB, free: 133.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.985, allocations: 8.081 MB / 0.8343 GB, free: 125.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02262/2.008, allocations: 14.42 MB / 0.8484 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/2.008, allocations: 68.56 kB / 0.8484 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=309): time 6.071e-06/2.008, allocations: 0 / 0.8484 GB, free: 110.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=416): time 0.1716/2.18, allocations: 51.22 MB / 0.8985 GB, free: 58.98 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/2.18, allocations: 406.7 kB / 0.8989 GB, free: 58.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/2.192, allocations: 8.283 MB / 0.9069 GB, free: 50.21 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001232/2.193, allocations: 89.7 kB / 0.907 GB, free: 50.12 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003611/2.197, allocations: 5.788 MB / 0.9127 GB, free: 44.32 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001943/2.199, allocations: 1.499 MB / 0.9141 GB, free: 42.83 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000541/2.199, allocations: 188 kB / 0.9143 GB, free: 42.65 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0003641/2.2, allocations: 0.6946 MB / 0.915 GB, free: 41.95 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005794/2.205, allocations: 4.422 MB / 0.9193 GB, free: 37.52 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008896/2.214, allocations: 9.343 MB / 0.9284 GB, free: 25.75 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008669/2.223, allocations: 6.318 MB / 0.9346 GB, free: 19.43 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.886e-05/2.223, allocations: 56 kB / 0.9347 GB, free: 19.37 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03547/2.259, allocations: 18.02 MB / 0.9523 GB, free: 1.309 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/2.259, allocations: 79.98 kB / 0.9523 GB, free: 1.23 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/2.259, allocations: 168 kB / 0.9525 GB, free: 1.066 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2674/2.526, allocations: 5.215 MB / 0.9576 GB, free: 186.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008553/2.535, allocations: 1.951 MB / 0.9595 GB, free: 186.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04688/2.582, allocations: 29.33 MB / 0.9881 GB, free: 176.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01037/2.592, allocations: 0.5492 MB / 0.9887 GB, free: 176.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002768/2.595, allocations: 0.5047 MB / 0.9892 GB, free: 176 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * 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 (1047): * Single equations (assignments): 1042 * 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.01083/2.606, allocations: 4.088 MB / 0.9932 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002183/2.608, allocations: 0.7053 MB / 0.9939 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02418/2.632, allocations: 11.88 MB / 1.005 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.859e-05/2.633, allocations: 46.3 kB / 1.005 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.804e-05/2.633, allocations: 27.03 kB / 1.006 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.392e-05/2.633, allocations: 20.77 kB / 1.006 GB, free: 169.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05289/2.686, allocations: 25.73 MB / 1.031 GB, free: 147 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-05/2.686, allocations: 8 kB / 1.031 GB, free: 147 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002873/2.689, allocations: 0.5772 MB / 1.031 GB, free: 146.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01474/2.703, allocations: 4.825 MB / 1.036 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001066/2.704, allocations: 77.47 kB / 1.036 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03197/2.736, allocations: 26.08 MB / 1.062 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/2.736, allocations: 11.94 kB / 1.062 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03171/2.768, allocations: 19.21 MB / 1.08 GB, free: 96.25 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00277/2.771, allocations: 0.7696 MB / 1.081 GB, free: 95.47 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001876/2.773, allocations: 83.92 kB / 1.081 GB, free: 95.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004137/2.777, allocations: 277.3 kB / 1.081 GB, free: 95.12 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001091/2.778, allocations: 299.1 kB / 1.082 GB, free: 94.83 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003211/2.778, allocations: 108 kB / 1.082 GB, free: 94.72 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008511/2.787, allocations: 5.431 MB / 1.087 GB, free: 89.3 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.41e-07/2.787, allocations: 3.781 kB / 1.087 GB, free: 89.3 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01203/2.799, allocations: 2.245 MB / 1.089 GB, free: 87.07 MB / 0.5138 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 (287): * Single equations (assignments): 283 * 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.03181/2.831, allocations: 21.17 MB / 1.11 GB, free: 65.67 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0168/2.848, allocations: 11.17 MB / 1.121 GB, free: 54.55 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/2.848, allocations: 4 kB / 1.121 GB, free: 54.55 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007357/2.855, allocations: 4.808 MB / 1.126 GB, free: 49.73 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006531/2.862, allocations: 1.041 MB / 1.127 GB, free: 48.71 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3132/3.175, allocations: 156 MB / 1.279 GB, free: 54.3 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01584/3.191, allocations: 6.567 MB / 1.285 GB, free: 53.33 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01035/3.201, allocations: 2.94 MB / 1.288 GB, free: 53.04 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008321/3.21, allocations: 4.373 MB / 1.293 GB, free: 52.3 MB / 0.5138 GB Notification: Performance of SimCode: time 1.673e-06/3.21, allocations: 1.219 kB / 1.293 GB, free: 52.3 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4517/3.661, allocations: 180.9 MB / 1.469 GB, free: 107.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/3.661, allocations: 220.8 kB / 1.469 GB, free: 107.6 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.413/10.07, allocations: 0 / 1.469 GB, free: 107.6 MB / 0.5138 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