Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000945/0.000945, allocations: 89.3 kB / 16.31 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 183.7 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002504/0.0002505, allocations: 4 kB / 300.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1098, allocations: 50.42 MB / 351.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.311/0.4208, allocations: 103.7 MB / 455.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05667/0.4775, allocations: 21.46 MB / 476.5 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02323/0.5008, allocations: 0.5026 MB / 477 MB, free: 6.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01854/0.5194, allocations: 5.334 MB / 482.4 MB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04472/0.5641, allocations: 15.77 MB / 498.2 MB, free: 1.461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.5744, allocations: 1.698 MB / 499.9 MB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.4781/1.053, allocations: 180 MB / 0.6639 GB, free: 7.094 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02223/1.075, allocations: 12.77 MB / 0.6764 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009001/1.084, allocations: 3.238 MB / 0.6796 GB, free: 11.85 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01068/1.095, allocations: 5.047 MB / 0.6845 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003498/1.098, allocations: 340 kB / 0.6848 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006758/1.105, allocations: 1.339 MB / 0.6861 GB, free: 6.773 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008616/1.114, allocations: 4.206 MB / 0.6902 GB, free: 3.633 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005154/1.119, allocations: 1.872 MB / 0.6921 GB, free: 2.965 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01932/1.138, allocations: 14.29 MB / 0.706 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/1.138, allocations: 0 / 0.706 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.485e-06/1.138, allocations: 4 kB / 0.706 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0007653/1.139, allocations: 0 / 0.706 GB, free: 6.547 MB / 0.4981 GB 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.03403/1.173, allocations: 9.942 MB / 0.7157 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/1.173, allocations: 12.03 kB / 0.7157 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005806/1.179, allocations: 1.331 MB / 0.717 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6424/1.821, allocations: 25.06 MB / 0.7415 GB, free: 223.2 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02579/1.847, allocations: 10.43 MB / 0.7517 GB, free: 219.1 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006427/1.848, allocations: 0.5181 MB / 0.7522 GB, free: 218.9 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003342/1.851, allocations: 0.73 MB / 0.7529 GB, free: 218.7 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03969/1.891, allocations: 19.14 MB / 0.7716 GB, free: 200.1 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004135/1.891, allocations: 95.2 kB / 0.7717 GB, free: 200.1 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001811/1.893, allocations: 320.9 kB / 0.772 GB, free: 199.8 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003396/1.897, allocations: 2.821 MB / 0.7748 GB, free: 197 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03181/1.928, allocations: 15.47 MB / 0.7899 GB, free: 181.5 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.1005/2.029, allocations: 72.53 MB / 0.8607 GB, free: 107.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/2.049, allocations: 8.083 MB / 0.8686 GB, free: 99.21 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005727/2.055, allocations: 4.242 MB / 0.8727 GB, free: 94.95 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0242/2.079, allocations: 14.17 MB / 0.8866 GB, free: 80.33 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.671e-05/2.079, allocations: 70.11 kB / 0.8866 GB, free: 80.25 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=310): time 7.454e-06/2.079, allocations: 0 / 0.8866 GB, free: 80.25 MB / 0.5138 GB Notification: Performance of matching and sorting (n=416): time 0.1618/2.241, allocations: 48.75 MB / 0.9343 GB, free: 31.39 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/2.241, allocations: 414.6 kB / 0.9347 GB, free: 30.89 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.016/2.257, allocations: 7.549 MB / 0.942 GB, free: 23.34 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.00129/2.259, allocations: 89.7 kB / 0.9421 GB, free: 23.25 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004022/2.263, allocations: 5.788 MB / 0.9478 GB, free: 17.45 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002134/2.265, allocations: 1.502 MB / 0.9492 GB, free: 15.96 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008218/2.266, allocations: 184 kB / 0.9494 GB, free: 15.79 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0004176/2.266, allocations: 0.6946 MB / 0.9501 GB, free: 15.08 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00567/2.272, allocations: 4.41 MB / 0.9544 GB, free: 10.66 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2892/2.561, allocations: 9.367 MB / 0.9635 GB, free: 196.4 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01557/2.577, allocations: 6.3 MB / 0.9697 GB, free: 196.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000231/2.577, allocations: 49.31 kB / 0.9697 GB, free: 196.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.04688/2.624, allocations: 18.01 MB / 0.9873 GB, free: 190.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/2.624, allocations: 78 kB / 0.9874 GB, free: 190.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002252/2.624, allocations: 171.6 kB / 0.9876 GB, free: 190.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01604/2.64, allocations: 5.225 MB / 0.9927 GB, free: 189.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007144/2.647, allocations: 1.947 MB / 0.9946 GB, free: 189.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04511/2.693, allocations: 28.25 MB / 1.022 GB, free: 171.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00994/2.703, allocations: 0.548 MB / 1.023 GB, free: 170.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003266/2.706, allocations: 0.5051 MB / 1.023 GB, free: 170.2 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.01147/2.717, allocations: 4.081 MB / 1.027 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003285/2.721, allocations: 0.7065 MB / 1.028 GB, free: 165.9 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02654/2.747, allocations: 11.87 MB / 1.039 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.275e-05/2.747, allocations: 44.84 kB / 1.039 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.356e-05/2.747, allocations: 22.97 kB / 1.04 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.811e-05/2.748, allocations: 23.92 kB / 1.04 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05318/2.801, allocations: 25.63 MB / 1.065 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.673e-05/2.801, allocations: 12 kB / 1.065 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002722/2.804, allocations: 0.5772 MB / 1.065 GB, free: 127.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01455/2.818, allocations: 4.828 MB / 1.07 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/2.819, allocations: 76.88 kB / 1.07 GB, free: 122.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03575/2.855, allocations: 25.01 MB / 1.094 GB, free: 97.78 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.381e-05/2.855, allocations: 11.94 kB / 1.094 GB, free: 97.77 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03134/2.887, allocations: 17.71 MB / 1.112 GB, free: 79.95 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004136/2.891, allocations: 1.448 MB / 1.113 GB, free: 78.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002452/2.893, allocations: 80 kB / 1.113 GB, free: 78.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004784/2.898, allocations: 271.9 kB / 1.113 GB, free: 78.13 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001341/2.899, allocations: 300.5 kB / 1.114 GB, free: 77.84 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006708/2.9, allocations: 108 kB / 1.114 GB, free: 77.73 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.009686/2.91, allocations: 4.853 MB / 1.119 GB, free: 72.89 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.11e-07/2.91, allocations: 0 / 1.119 GB, free: 72.89 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01234/2.922, allocations: 2.228 MB / 1.121 GB, free: 70.67 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.03442/2.957, allocations: 18.47 MB / 1.139 GB, free: 52.03 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01884/2.976, allocations: 11.16 MB / 1.15 GB, free: 40.88 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/2.976, allocations: 4.25 kB / 1.15 GB, free: 40.87 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008851/2.984, allocations: 4.801 MB / 1.154 GB, free: 36.05 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01005/2.995, allocations: 1.114 MB / 1.155 GB, free: 34.94 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4046/3.399, allocations: 88.38 MB / 1.242 GB, free: 144.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/3.41, allocations: 6.374 MB / 1.248 GB, free: 138.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008261/3.418, allocations: 2.924 MB / 1.251 GB, free: 135.3 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006601/3.425, allocations: 4.322 MB / 1.255 GB, free: 131 MB / 0.5138 GB Notification: Performance of SimCode: time 1.102e-06/3.425, allocations: 0 / 1.255 GB, free: 131 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4624/3.887, allocations: 182.2 MB / 1.433 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/3.887, allocations: 225 kB / 1.433 GB, free: 162.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.721/10.61, allocations: 0 / 1.433 GB, free: 162.8 MB / 0.5138 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat