Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00293/0.00293, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004019/0.004019, allocations: 206.6 kB / 24.47 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.7/1.7, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 51.92 kB / 379 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4057, allocations: 53.37 MB / 432.4 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02745/0.4332, allocations: 20.09 MB / 452.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01943/0.4526, allocations: 6.846 MB / 459.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007012/0.4596, allocations: 210.9 kB / 459.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01775/0.4774, allocations: 7.68 MB / 467.2 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.4904, allocations: 3.673 MB / 470.9 MB, free: 240 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005364/0.4958, allocations: 2.02 MB / 472.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02075/0.5165, allocations: 13.6 MB / 486.5 MB, free: 0.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01119/0.5277, allocations: 7.945 MB / 494.4 MB, free: 8.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008857/0.5366, allocations: 4.34 MB / 498.8 MB, free: 4.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01187/0.5485, allocations: 6.112 MB / 0.493 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004145/0.5526, allocations: 1.004 MB / 0.494 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006324/0.5589, allocations: 2.053 MB / 0.496 GB, free: 11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008167/0.5671, allocations: 5.178 MB / 0.5011 GB, free: 5.812 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01047/0.5776, allocations: 4.139 MB / 0.5051 GB, free: 1.652 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02739/0.6049, allocations: 17.34 MB / 0.5221 GB, free: 256 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.6049, allocations: 0 / 0.5221 GB, free: 256 kB / 430.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.605, allocations: 4 kB / 0.5221 GB, free: 252 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006057/0.6056, allocations: 4 kB / 0.5221 GB, free: 248 kB / 430.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.03581/0.6414, allocations: 11.37 MB / 0.5332 GB, free: 4.773 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.6414, allocations: 12.03 kB / 0.5332 GB, free: 4.762 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6178/1.259, allocations: 5.473 MB / 0.5385 GB, free: 94.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03361/1.293, allocations: 8.826 MB / 0.5471 GB, free: 91.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006691/1.294, allocations: 0.5199 MB / 0.5477 GB, free: 91.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004991/1.299, allocations: 0.7317 MB / 0.5484 GB, free: 91.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0575/1.356, allocations: 19.84 MB / 0.5677 GB, free: 72.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006806/1.357, allocations: 95.36 kB / 0.5678 GB, free: 72.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003962/1.361, allocations: 324.8 kB / 0.5681 GB, free: 72.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00428/1.365, allocations: 2.819 MB / 0.5709 GB, free: 69.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03413/1.399, allocations: 16.23 MB / 0.5867 GB, free: 53.09 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.1236/1.523, allocations: 66.84 MB / 0.652 GB, free: 1.223 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03405/1.557, allocations: 7.746 MB / 0.6596 GB, free: 9.453 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007769/1.564, allocations: 4.496 MB / 0.664 GB, free: 4.934 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03111/1.596, allocations: 12.23 MB / 0.6759 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.501e-05/1.596, allocations: 64.66 kB / 0.676 GB, free: 8.719 MB / 494.1 MB Notification: Performance of pre-optimization done (n=320): time 7.604e-06/1.596, allocations: 3.938 kB / 0.676 GB, free: 8.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=426): time 0.2308/1.827, allocations: 52.44 MB / 0.7272 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003506/1.827, allocations: 406.8 kB / 0.7276 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01516/1.842, allocations: 7.308 MB / 0.7347 GB, free: 12.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001656/1.844, allocations: 97.69 kB / 0.7348 GB, free: 12.58 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.006718/1.85, allocations: 5.795 MB / 0.7405 GB, free: 6.742 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003452/1.854, allocations: 1.624 MB / 0.7421 GB, free: 5.105 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004726/1.859, allocations: 2.091 MB / 0.7441 GB, free: 3.004 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001991/1.859, allocations: 317 kB / 0.7444 GB, free: 2.691 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3743/2.233, allocations: 5.208 MB / 0.7495 GB, free: 185.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01207/2.245, allocations: 10.49 MB / 0.7597 GB, free: 176.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01831/2.263, allocations: 16.3 MB / 0.7757 GB, free: 165.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002204/2.264, allocations: 46.66 kB / 0.7757 GB, free: 165.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1331) (initialization): time 0.0432/2.307, allocations: 21.12 MB / 0.7963 GB, free: 152.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/2.307, allocations: 84.06 kB / 0.7964 GB, free: 152.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002506/2.307, allocations: 168 kB / 0.7966 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02009/2.327, allocations: 6.647 MB / 0.8031 GB, free: 147.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007296/2.335, allocations: 2.152 MB / 0.8052 GB, free: 145.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04313/2.378, allocations: 34.44 MB / 0.8388 GB, free: 110.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/2.389, allocations: 0.6255 MB / 0.8394 GB, free: 110.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003797/2.393, allocations: 0.5351 MB / 0.8399 GB, free: 109.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * 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 (1174): * Single equations (assignments): 1169 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01213/2.405, allocations: 4.088 MB / 0.8439 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00283/2.408, allocations: 0.6844 MB / 0.8446 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0295/2.437, allocations: 14.17 MB / 0.8584 GB, free: 91.14 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/2.437, allocations: 44 kB / 0.8585 GB, free: 91.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-05/2.437, allocations: 24 kB / 0.8585 GB, free: 91.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001184/2.437, allocations: 19.92 kB / 0.8585 GB, free: 91.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07243/2.51, allocations: 25.06 MB / 0.883 GB, free: 66.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.317e-05/2.51, allocations: 15.3 kB / 0.883 GB, free: 66.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003567/2.513, allocations: 0.5811 MB / 0.8836 GB, free: 65.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02072/2.534, allocations: 6.319 MB / 0.8897 GB, free: 59.12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001733/2.536, allocations: 75.98 kB / 0.8898 GB, free: 59.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05787/2.594, allocations: 31.37 MB / 0.9204 GB, free: 27.78 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.434e-05/2.594, allocations: 11.94 kB / 0.9205 GB, free: 27.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04539/2.639, allocations: 20.83 MB / 0.9408 GB, free: 6.98 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004319/2.643, allocations: 0.6443 MB / 0.9414 GB, free: 6.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003581/2.647, allocations: 83.98 kB / 0.9415 GB, free: 6.258 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005996/2.653, allocations: 331.5 kB / 0.9418 GB, free: 5.934 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001522/2.655, allocations: 315 kB / 0.9421 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006855/2.655, allocations: 116.3 kB / 0.9422 GB, free: 5.512 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009203/2.664, allocations: 4.446 MB / 0.9466 GB, free: 1.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.81e-07/2.664, allocations: 0 / 0.9466 GB, free: 1.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01495/2.679, allocations: 2.408 MB / 0.9489 GB, free: 14.7 MB / 0.5607 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 (294): * Single equations (assignments): 290 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002052/2.681, allocations: 277.5 kB / 0.9492 GB, free: 14.43 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.2632/2.945, allocations: 12.09 MB / 0.961 GB, free: 194.3 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/2.945, allocations: 0 / 0.961 GB, free: 194.3 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008202/2.953, allocations: 4.889 MB / 0.9658 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008574/2.961, allocations: 0.9751 MB / 0.9667 GB, free: 192.1 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04199/3.003, allocations: 22.88 MB / 0.9891 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0157/3.019, allocations: 5.929 MB / 0.9948 GB, free: 173.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.008696/3.028, allocations: 2.908 MB / 0.9977 GB, free: 171.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002259/3.03, allocations: 415.2 kB / 0.9981 GB, free: 171 MB / 0.5607 GB Notification: Performance of SimCode: time 1.383e-06/3.03, allocations: 0 / 0.9981 GB, free: 171 MB / 0.5607 GB Notification: Performance of Templates: time 0.1699/3.2, allocations: 114 MB / 1.109 GB, free: 58.4 MB / 0.5607 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.103620570007479]