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.001713/0.001713, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002371/0.002371, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 60.17 kB / 306.6 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.08402, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2077/0.2918, allocations: 102.6 MB / 459.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0383/0.3301, allocations: 19.55 MB / 479.3 MB, free: 1.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01592/0.3461, allocations: 470.8 kB / 479.7 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009448/0.3556, allocations: 5.63 MB / 485.3 MB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006766/0.3624, allocations: 3.084 MB / 488.4 MB, free: 7.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002695/0.3651, allocations: 1.49 MB / 489.9 MB, free: 6.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01449/0.3796, allocations: 13.77 MB / 0.4919 GB, free: 8.617 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009013/0.3886, allocations: 8.022 MB / 0.4997 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005257/0.3939, allocations: 3.676 MB / 0.5033 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006655/0.4006, allocations: 5.278 MB / 0.5085 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002204/0.4028, allocations: 0.7109 MB / 0.5092 GB, free: 6.832 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003865/0.4067, allocations: 1.686 MB / 0.5108 GB, free: 5.145 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004772/0.4115, allocations: 4.212 MB / 0.5149 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007023/0.4185, allocations: 4.768 MB / 0.5196 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3345/0.7531, allocations: 14.03 MB / 0.5333 GB, free: 33.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.7531, allocations: 0 / 0.5333 GB, free: 33.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7531, allocations: 0.7188 kB / 0.5333 GB, free: 33.56 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004285/0.7536, allocations: 0 / 0.5333 GB, free: 33.56 MB / 446.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.02302/0.7766, allocations: 10.3 MB / 0.5433 GB, free: 30.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.7767, allocations: 9.25 kB / 0.5434 GB, free: 30.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001541/0.7782, allocations: 1.141 MB / 0.5445 GB, free: 30 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2574/1.036, allocations: 24.25 MB / 0.5681 GB, free: 26.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/1.053, allocations: 8.941 MB / 0.5769 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000315/1.053, allocations: 430.8 kB / 0.5773 GB, free: 23.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002356/1.056, allocations: 0.5837 MB / 0.5779 GB, free: 23.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02414/1.08, allocations: 16.18 MB / 0.5937 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/1.08, allocations: 92.77 kB / 0.5938 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005856/1.081, allocations: 265 kB / 0.594 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/1.084, allocations: 2.767 MB / 0.5967 GB, free: 7.879 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02076/1.104, allocations: 12.86 MB / 0.6093 GB, free: 11.29 MB / 462.1 MB 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.08124/1.186, allocations: 66.43 MB / 0.6741 GB, free: 7.695 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/1.204, allocations: 7.589 MB / 0.6815 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005229/1.209, allocations: 4.21 MB / 0.6857 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01865/1.228, allocations: 11.68 MB / 0.6971 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.615e-05/1.228, allocations: 68.5 kB / 0.6971 GB, free: 15.89 MB / 0.545 GB Notification: Performance of pre-optimization done (n=280): time 5.4e-06/1.228, allocations: 0 / 0.6971 GB, free: 15.89 MB / 0.545 GB Notification: Performance of matching and sorting (n=339): time 0.3483/1.576, allocations: 47.37 MB / 0.7434 GB, free: 259.3 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002107/1.577, allocations: 393.5 kB / 0.7438 GB, free: 258.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01105/1.588, allocations: 7.142 MB / 0.7507 GB, free: 256.5 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008338/1.589, allocations: 77.48 kB / 0.7508 GB, free: 256.4 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002649/1.591, allocations: 5.187 MB / 0.7559 GB, free: 252.4 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001141/1.592, allocations: 1.251 MB / 0.7571 GB, free: 251.5 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00201/1.594, allocations: 1.638 MB / 0.7587 GB, free: 250.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.451e-05/1.594, allocations: 309 kB / 0.759 GB, free: 250.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004582/1.599, allocations: 3.963 MB / 0.7629 GB, free: 249 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006248/1.605, allocations: 8.581 MB / 0.7713 GB, free: 241.4 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.618, allocations: 13.5 MB / 0.7844 GB, free: 229.5 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/1.618, allocations: 48 kB / 0.7845 GB, free: 229.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03159/1.649, allocations: 17.17 MB / 0.8012 GB, free: 212.4 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-05/1.65, allocations: 78.44 kB / 0.8013 GB, free: 212.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001466/1.65, allocations: 160 kB / 0.8015 GB, free: 212.2 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01522/1.665, allocations: 5.78 MB / 0.8071 GB, free: 206.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005249/1.67, allocations: 1.752 MB / 0.8088 GB, free: 204.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03346/1.704, allocations: 31.66 MB / 0.8397 GB, free: 172.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00765/1.711, allocations: 0.5259 MB / 0.8403 GB, free: 172.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009846/1.712, allocations: 479.9 kB / 0.8407 GB, free: 171.6 MB / 0.5607 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.004602/1.717, allocations: 3.453 MB / 0.8441 GB, free: 168.1 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.718, allocations: 0.6556 MB / 0.8447 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01969/1.738, allocations: 11.48 MB / 0.8559 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-05/1.738, allocations: 36 kB / 0.856 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/1.738, allocations: 16 kB / 0.856 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.092e-05/1.738, allocations: 23.12 kB / 0.856 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04152/1.779, allocations: 24.85 MB / 0.8803 GB, free: 130.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.942e-05/1.78, allocations: 4 kB / 0.8803 GB, free: 130.5 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/1.781, allocations: 423.4 kB / 0.8807 GB, free: 130.1 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01429/1.796, allocations: 5.384 MB / 0.8859 GB, free: 124.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/1.796, allocations: 60 kB / 0.886 GB, free: 124.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03212/1.828, allocations: 30.36 MB / 0.9156 GB, free: 93.89 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/1.829, allocations: 15.77 kB / 0.9157 GB, free: 93.88 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02526/1.854, allocations: 16.48 MB / 0.9318 GB, free: 77.21 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00259/1.856, allocations: 0.6839 MB / 0.9324 GB, free: 76.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00206/1.859, allocations: 60 kB / 0.9325 GB, free: 76.44 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003768/1.862, allocations: 263.6 kB / 0.9327 GB, free: 76.18 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000954/1.863, allocations: 242.7 kB / 0.933 GB, free: 75.94 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/1.864, allocations: 88 kB / 0.933 GB, free: 75.86 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006817/1.87, allocations: 4.608 MB / 0.9375 GB, free: 71.28 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.61e-07/1.87, allocations: 0 / 0.9375 GB, free: 71.28 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009291/1.88, allocations: 1.958 MB / 0.9395 GB, free: 69.33 MB / 0.5607 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02572/1.905, allocations: 17.19 MB / 0.9562 GB, free: 51.95 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.02106/1.927, allocations: 13.31 MB / 0.9692 GB, free: 38.6 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/1.927, allocations: 7.938 kB / 0.9692 GB, free: 38.59 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007544/1.934, allocations: 4.685 MB / 0.9738 GB, free: 33.85 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00899/1.943, allocations: 1.091 MB / 0.9749 GB, free: 32.77 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4092/2.352, allocations: 117.3 MB / 1.089 GB, free: 168.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/2.363, allocations: 5.526 MB / 1.095 GB, free: 162.7 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007708/2.371, allocations: 2.625 MB / 1.097 GB, free: 160.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005931/2.377, allocations: 3.733 MB / 1.101 GB, free: 156.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.021e-06/2.377, allocations: 0 / 1.101 GB, free: 156.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.16/10.54, allocations: 162 MB / 1.259 GB, free: 217.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/10.54, allocations: 233.9 kB / 1.259 GB, free: 217.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.473/17.01, allocations: 0 / 1.259 GB, free: 217.5 MB / 0.5607 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/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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches