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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001195, allocations: 115.7 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001442, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 55.41 kB / 306.4 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09637, allocations: 50.53 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.2568/0.3532, allocations: 102.6 MB / 459.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04972/0.403, allocations: 19.54 MB / 479.1 MB, free: 1.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01939/0.4224, allocations: 474.7 kB / 479.6 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01039/0.4329, allocations: 5.629 MB / 485.2 MB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008172/0.4411, allocations: 3.095 MB / 488.3 MB, free: 7.988 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003877/0.445, allocations: 1.486 MB / 489.8 MB, free: 6.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01882/0.4638, allocations: 13.77 MB / 0.4918 GB, free: 8.703 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01076/0.4746, allocations: 8.017 MB / 0.4996 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00631/0.481, allocations: 3.68 MB / 0.5032 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007319/0.4883, allocations: 5.278 MB / 0.5084 GB, free: 7.641 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002127/0.4905, allocations: 0.7148 MB / 0.5091 GB, free: 6.926 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004024/0.4945, allocations: 1.674 MB / 0.5107 GB, free: 5.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005966/0.5005, allocations: 4.24 MB / 0.5148 GB, free: 1 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008542/0.5091, allocations: 4.48 MB / 0.5192 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3905/0.8996, allocations: 13.34 MB / 0.5322 GB, free: 33.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8997, allocations: 0.5 kB / 0.5322 GB, free: 33.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.8997, allocations: 0.8438 kB / 0.5322 GB, free: 33.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004895/0.9002, allocations: 0 / 0.5322 GB, free: 33.5 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.02858/0.9288, allocations: 9.642 MB / 0.5416 GB, free: 30.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.9288, allocations: 9.438 kB / 0.5417 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04417/0.973, allocations: 5.235 MB / 0.5468 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/0.9907, allocations: 7.716 MB / 0.5543 GB, free: 28.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002931/0.991, allocations: 428.4 kB / 0.5547 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002395/0.9934, allocations: 0.5827 MB / 0.5553 GB, free: 28.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03098/1.024, allocations: 16.56 MB / 0.5714 GB, free: 25.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003394/1.025, allocations: 94.69 kB / 0.5715 GB, free: 25.5 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001669/1.026, allocations: 270 kB / 0.5718 GB, free: 25.49 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003779/1.03, allocations: 2.766 MB / 0.5745 GB, free: 24.99 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02571/1.056, allocations: 13.63 MB / 0.5878 GB, free: 17.19 MB / 446.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.09243/1.148, allocations: 68.05 MB / 0.6543 GB, free: 11.98 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.021/1.17, allocations: 7.905 MB / 0.662 GB, free: 3.949 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006223/1.176, allocations: 4.519 MB / 0.6664 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02155/1.197, allocations: 12.41 MB / 0.6785 GB, free: 2.91 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.473e-05/1.198, allocations: 70.75 kB / 0.6786 GB, free: 2.836 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 5.46e-06/1.198, allocations: 0 / 0.6786 GB, free: 2.836 MB / 0.5138 GB Notification: Performance of matching and sorting (n=339): time 0.184/1.382, allocations: 50.11 MB / 0.7275 GB, free: 0.9727 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/1.382, allocations: 402 kB / 0.7279 GB, free: 0.4922 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2345/1.616, allocations: 7.109 MB / 0.7348 GB, free: 260.9 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001213/1.617, allocations: 81.53 kB / 0.7349 GB, free: 260.8 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003937/1.621, allocations: 5.013 MB / 0.7398 GB, free: 258 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001829/1.623, allocations: 1.267 MB / 0.7411 GB, free: 257 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002951/1.626, allocations: 1.86 MB / 0.7429 GB, free: 256.2 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/1.626, allocations: 302.3 kB / 0.7432 GB, free: 255.9 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006522/1.633, allocations: 4.546 MB / 0.7476 GB, free: 254.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007716/1.641, allocations: 9.27 MB / 0.7566 GB, free: 246.4 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/1.655, allocations: 14.54 MB / 0.7708 GB, free: 235.8 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/1.656, allocations: 47 kB / 0.7709 GB, free: 235.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03655/1.692, allocations: 19.76 MB / 0.7902 GB, free: 223.1 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/1.692, allocations: 76 kB / 0.7903 GB, free: 223 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/1.692, allocations: 160 kB / 0.7904 GB, free: 222.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01942/1.712, allocations: 7.071 MB / 0.7973 GB, free: 215.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00809/1.72, allocations: 1.93 MB / 0.7992 GB, free: 213.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03984/1.76, allocations: 35.31 MB / 0.8337 GB, free: 178.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009363/1.769, allocations: 0.5811 MB / 0.8342 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001985/1.771, allocations: 0.4997 MB / 0.8347 GB, free: 177 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * 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 (1048): * Single equations (assignments): 1042 * 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%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005884/1.777, allocations: 3.468 MB / 0.8381 GB, free: 173.6 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/1.779, allocations: 0.631 MB / 0.8387 GB, free: 172.9 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02472/1.804, allocations: 13.32 MB / 0.8517 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-05/1.804, allocations: 42.94 kB / 0.8518 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.887e-05/1.804, allocations: 24 kB / 0.8518 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-05/1.804, allocations: 11.95 kB / 0.8518 GB, free: 159.5 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04235/1.846, allocations: 26.69 MB / 0.8779 GB, free: 132.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.284e-05/1.846, allocations: 4 kB / 0.8779 GB, free: 132.3 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/1.848, allocations: 428.1 kB / 0.8783 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01788/1.866, allocations: 6.663 MB / 0.8848 GB, free: 125.2 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000631/1.867, allocations: 63.94 kB / 0.8849 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03722/1.904, allocations: 34.01 MB / 0.9181 GB, free: 90.71 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.904, allocations: 11.94 kB / 0.9181 GB, free: 90.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03011/1.934, allocations: 18.77 MB / 0.9364 GB, free: 71.73 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/1.936, allocations: 0.6918 MB / 0.9371 GB, free: 71.01 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000973/1.937, allocations: 63.98 kB / 0.9371 GB, free: 70.95 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003042/1.94, allocations: 303.5 kB / 0.9374 GB, free: 70.65 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008513/1.941, allocations: 246.6 kB / 0.9377 GB, free: 70.41 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/1.942, allocations: 88 kB / 0.9378 GB, free: 70.32 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005664/1.947, allocations: 4.552 MB / 0.9422 GB, free: 65.8 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.71e-07/1.947, allocations: 0 / 0.9422 GB, free: 65.8 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00837/1.956, allocations: 2.116 MB / 0.9443 GB, free: 63.68 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.0006337/1.956, allocations: 223 kB / 0.9445 GB, free: 63.47 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.02075/1.977, allocations: 14.43 MB / 0.9586 GB, free: 49.02 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.977, allocations: 0 / 0.9586 GB, free: 49.02 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007095/1.984, allocations: 5.01 MB / 0.9635 GB, free: 43.96 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005806/1.99, allocations: 0.9861 MB / 0.9644 GB, free: 42.98 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2418/2.232, allocations: 23.27 MB / 0.9871 GB, free: 240.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01378/2.246, allocations: 5.527 MB / 0.9925 GB, free: 240 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01046/2.256, allocations: 2.6 MB / 0.9951 GB, free: 240 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003024/2.259, allocations: 394.6 kB / 0.9955 GB, free: 240 MB / 0.5607 GB Notification: Performance of SimCode: time 1.263e-06/2.259, allocations: 3.375 kB / 0.9955 GB, free: 240 MB / 0.5607 GB Notification: Performance of Templates: time 0.1697/2.429, allocations: 98.83 MB / 1.092 GB, free: 166.4 MB / 0.5607 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/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