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.001255/0.001255, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 64.52 kB / 306.4 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08602, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2264/0.3125, allocations: 110.6 MB / 467.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04052/0.353, allocations: 20.94 MB / 488.5 MB, free: 7.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01744/0.3705, allocations: 0.5026 MB / 489 MB, free: 7.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01068/0.3812, allocations: 6.339 MB / 495.3 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00747/0.3887, allocations: 3.221 MB / 498.5 MB, free: 13.61 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003186/0.3919, allocations: 1.541 MB / 0.4884 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01722/0.4092, allocations: 18.07 MB / 0.506 GB, free: 9.965 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00831/0.4175, allocations: 7.884 MB / 0.5137 GB, free: 2.004 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004832/0.4223, allocations: 3.364 MB / 0.517 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006408/0.4288, allocations: 5.293 MB / 0.5222 GB, free: 9.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001667/0.4304, allocations: 0.5 MB / 0.5227 GB, free: 8.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003409/0.4339, allocations: 1.522 MB / 0.5241 GB, free: 7.297 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004251/0.4381, allocations: 4.126 MB / 0.5282 GB, free: 3.16 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2048/0.6429, allocations: 4.615 MB / 0.5327 GB, free: 27.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01599/0.6589, allocations: 14.25 MB / 0.5466 GB, free: 26.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.659, allocations: 0 / 0.5466 GB, free: 26.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.659, allocations: 0 / 0.5466 GB, free: 26.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004509/0.6594, allocations: 1 kB / 0.5466 GB, free: 26.55 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03054/0.69, allocations: 10.67 MB / 0.557 GB, free: 22.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.69, allocations: 9.969 kB / 0.557 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002308/0.6924, allocations: 1.194 MB / 0.5582 GB, free: 22.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2361/0.9285, allocations: 24.28 MB / 0.5819 GB, free: 16.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/0.9462, allocations: 9.12 MB / 0.5908 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002996/0.9466, allocations: 449.7 kB / 0.5912 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002511/0.9491, allocations: 0.6123 MB / 0.5918 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0236/0.9727, allocations: 16.74 MB / 0.6082 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000197/0.9729, allocations: 109.8 kB / 0.6083 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006532/0.9736, allocations: 279.7 kB / 0.6085 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003767/0.9774, allocations: 2.856 MB / 0.6113 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02165/0.999, allocations: 13.26 MB / 0.6243 GB, free: 13.87 MB / 478.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.06913/1.068, allocations: 68.34 MB / 0.691 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/1.087, allocations: 7.892 MB / 0.6987 GB, free: 312 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005032/1.092, allocations: 4.317 MB / 0.7029 GB, free: 11.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01713/1.109, allocations: 12.05 MB / 0.7147 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.607e-05/1.109, allocations: 64.55 kB / 0.7148 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=293): time 4.419e-06/1.109, allocations: 7.281 kB / 0.7148 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of matching and sorting (n=359): time 0.3086/1.418, allocations: 49.78 MB / 0.7634 GB, free: 254.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/1.418, allocations: 400.6 kB / 0.7638 GB, free: 253.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009324/1.427, allocations: 7.314 MB / 0.7709 GB, free: 247.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004963/1.428, allocations: 77.7 kB / 0.771 GB, free: 247.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002141/1.43, allocations: 5.344 MB / 0.7762 GB, free: 243.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009227/1.431, allocations: 1.308 MB / 0.7775 GB, free: 241.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/1.433, allocations: 1.697 MB / 0.7791 GB, free: 240.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.365e-05/1.433, allocations: 305.1 kB / 0.7794 GB, free: 240 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004337/1.437, allocations: 4.129 MB / 0.7835 GB, free: 236.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005498/1.443, allocations: 8.865 MB / 0.7921 GB, free: 225.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/1.453, allocations: 13.95 MB / 0.8058 GB, free: 208.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-05/1.453, allocations: 44 kB / 0.8058 GB, free: 208.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.02649/1.48, allocations: 17.87 MB / 0.8232 GB, free: 190.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.108e-05/1.48, allocations: 76 kB / 0.8233 GB, free: 190.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.52e-05/1.48, allocations: 160.1 kB / 0.8235 GB, free: 190.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01499/1.495, allocations: 6.045 MB / 0.8294 GB, free: 184.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/1.499, allocations: 1.832 MB / 0.8312 GB, free: 182.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03189/1.531, allocations: 30.83 MB / 0.8613 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006268/1.537, allocations: 0.5421 MB / 0.8618 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008229/1.538, allocations: 488.9 kB / 0.8623 GB, free: 150.6 MB / 0.5606 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 (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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005202/1.544, allocations: 3.592 MB / 0.8658 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/1.545, allocations: 0.6672 MB / 0.8664 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02086/1.566, allocations: 12.08 MB / 0.8782 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.679e-05/1.566, allocations: 36 kB / 0.8783 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/1.566, allocations: 24 kB / 0.8783 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/1.566, allocations: 15.94 kB / 0.8783 GB, free: 134.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03934/1.605, allocations: 26.01 MB / 0.9037 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.605, allocations: 8 kB / 0.9037 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/1.607, allocations: 464 kB / 0.9041 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01475/1.622, allocations: 5.72 MB / 0.9097 GB, free: 101.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003451/1.622, allocations: 71.98 kB / 0.9098 GB, free: 101.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0309/1.653, allocations: 29.71 MB / 0.9388 GB, free: 71.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.653, allocations: 8 kB / 0.9388 GB, free: 71.22 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02651/1.679, allocations: 17.4 MB / 0.9558 GB, free: 53.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001884/1.681, allocations: 0.6954 MB / 0.9565 GB, free: 52.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002242/1.684, allocations: 72.23 kB / 0.9566 GB, free: 52.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004321/1.688, allocations: 275.6 kB / 0.9568 GB, free: 52.58 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00123/1.689, allocations: 254.7 kB / 0.9571 GB, free: 52.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005692/1.69, allocations: 99.98 kB / 0.9572 GB, free: 52.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00965/1.7, allocations: 4.698 MB / 0.9617 GB, free: 47.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.01e-07/1.7, allocations: 4 kB / 0.9618 GB, free: 47.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01062/1.71, allocations: 2.045 MB / 0.9637 GB, free: 45.54 MB / 0.5606 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 (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,90,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.0277/1.738, allocations: 18.1 MB / 0.9814 GB, free: 27.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.1711/1.909, allocations: 10.9 MB / 0.9921 GB, free: 253.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.909, allocations: 1.562 kB / 0.9921 GB, free: 253.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008862/1.918, allocations: 4.946 MB / 0.9969 GB, free: 253.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005645/1.924, allocations: 1.036 MB / 0.9979 GB, free: 253 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1544/2.078, allocations: 122.2 MB / 1.117 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005131/2.083, allocations: 5.724 MB / 1.123 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005939/2.089, allocations: 2.717 MB / 1.126 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003476/2.093, allocations: 3.879 MB / 1.129 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of SimCode: time 8.61e-07/2.093, allocations: 4 kB / 1.129 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.031/9.124, allocations: 165.2 MB / 1.291 GB, free: 234.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/9.124, allocations: 253.6 kB / 1.291 GB, free: 234.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.62/14.74, allocations: 0 / 1.291 GB, free: 234.4 MB / 0.5606 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/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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches