Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.001703/0.001703, 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.002207/0.002207, allocations: 211.4 kB / 24.48 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.66/1.66, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 47.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3578, allocations: 53.38 MB / 432.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01823/0.376, allocations: 11.53 MB / 443.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0229/0.3989, allocations: 4.467 MB / 448.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01151/0.4104, allocations: 103.5 kB / 448.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009615/0.42, allocations: 3.952 MB / 452.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01776/0.4378, allocations: 2.105 MB / 454.5 MB, free: 468 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.4503, allocations: 0.831 MB / 455.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008821/0.4591, allocations: 4.775 MB / 460.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01612/0.4752, allocations: 3.932 MB / 464 MB, free: 6.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00379/0.479, allocations: 1.959 MB / 466 MB, free: 4.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01234/0.4914, allocations: 2.882 MB / 468.9 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001612/0.493, allocations: 452 kB / 469.3 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01246/0.5054, allocations: 1.237 MB / 470.6 MB, free: 312 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003863/0.5093, allocations: 2.349 MB / 472.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00365/0.513, allocations: 2.039 MB / 474.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03373/0.5467, allocations: 8.76 MB / 483.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.5467, allocations: 0 / 483.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5467, allocations: 0 / 483.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002837/0.547, allocations: 0 / 483.7 MB, free: 3.105 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.08047/0.6275, allocations: 7.041 MB / 490.7 MB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.6275, allocations: 8.031 kB / 490.7 MB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04081/0.6683, allocations: 2.607 MB / 493.4 MB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02227/0.6906, allocations: 3.065 MB / 496.4 MB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000389/0.691, allocations: 299.8 kB / 496.7 MB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.6929, allocations: 407.8 kB / 497.1 MB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03758/0.7305, allocations: 13.33 MB / 0.4985 GB, free: 7.469 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002148/0.7307, allocations: 47.62 kB / 0.4985 GB, free: 7.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001142/0.7319, allocations: 191.8 kB / 0.4987 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006154/0.738, allocations: 2.198 MB / 0.5009 GB, free: 5.035 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03725/0.7753, allocations: 12.63 MB / 0.5132 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3393/1.115, allocations: 45.89 MB / 0.558 GB, free: 70.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03086/1.145, allocations: 5.78 MB / 0.5636 GB, free: 69.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005242/1.151, allocations: 3.686 MB / 0.5672 GB, free: 68.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/1.152, allocations: 180.4 kB / 0.5674 GB, free: 68.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/1.152, allocations: 64.5 kB / 0.5675 GB, free: 68.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 7.214e-06/1.152, allocations: 0 / 0.5675 GB, free: 68.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.2057/1.357, allocations: 35.97 MB / 0.6026 GB, free: 36.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/1.357, allocations: 210 kB / 0.6028 GB, free: 35.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0164/1.374, allocations: 4.185 MB / 0.6069 GB, free: 31.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008797/1.375, allocations: 61.7 kB / 0.6069 GB, free: 31.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/1.377, allocations: 3.608 MB / 0.6105 GB, free: 28.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.378, allocations: 0.9914 MB / 0.6114 GB, free: 27.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003123/1.381, allocations: 1.604 MB / 0.613 GB, free: 25.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.062e-05/1.381, allocations: 301.1 kB / 0.6133 GB, free: 25.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01834/1.4, allocations: 4.327 MB / 0.6175 GB, free: 21.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01991/1.42, allocations: 8.271 MB / 0.6256 GB, free: 11.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02703/1.447, allocations: 13.36 MB / 0.6386 GB, free: 11.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006128/1.447, allocations: 40 kB / 0.6387 GB, free: 11.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.07799/1.525, allocations: 14.71 MB / 0.653 GB, free: 13.01 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/1.525, allocations: 64 kB / 0.6531 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002051/1.526, allocations: 139 kB / 0.6532 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01946/1.545, allocations: 2.452 MB / 0.6556 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02037/1.566, allocations: 1.782 MB / 0.6574 GB, free: 8.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03419/1.6, allocations: 16.49 MB / 0.6735 GB, free: 7.797 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009009/1.609, allocations: 468.3 kB / 0.6739 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001653/1.61, allocations: 0.4925 MB / 0.6744 GB, free: 6.848 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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 (826): * Single equations (assignments): 820 * 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): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007421/1.618, allocations: 2.38 MB / 0.6767 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00164/1.619, allocations: 381.5 kB / 0.6771 GB, free: 4.078 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02579/1.645, allocations: 9.571 MB / 0.6864 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-05/1.645, allocations: 28 kB / 0.6865 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/1.645, allocations: 12 kB / 0.6865 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.477e-05/1.645, allocations: 15.89 kB / 0.6865 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04904/1.694, allocations: 16.38 MB / 0.7025 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.998e-05/1.694, allocations: 4 kB / 0.7025 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005121/1.7, allocations: 0.5811 MB / 0.7031 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008556/1.708, allocations: 2.24 MB / 0.7052 GB, free: 7.223 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006683/1.709, allocations: 127.8 kB / 0.7054 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02899/1.738, allocations: 15.12 MB / 0.7201 GB, free: 7.664 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.738, allocations: 8 kB / 0.7201 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03349/1.771, allocations: 15.08 MB / 0.7349 GB, free: 8.496 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/1.773, allocations: 365.2 kB / 0.7352 GB, free: 8.137 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.774, allocations: 36 kB / 0.7353 GB, free: 8.102 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004867/1.778, allocations: 227.7 kB / 0.7355 GB, free: 7.879 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/1.78, allocations: 241.5 kB / 0.7357 GB, free: 7.641 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006636/1.78, allocations: 155.5 kB / 0.7359 GB, free: 7.492 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006258/1.787, allocations: 2.452 MB / 0.7382 GB, free: 5.059 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.787, allocations: 288 / 0.7382 GB, free: 5.059 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008172/1.795, allocations: 1.414 MB / 0.7396 GB, free: 3.645 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (195): * Single equations (assignments): 189 * 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): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007525/1.796, allocations: 182.5 kB / 0.7398 GB, free: 3.465 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.4637/2.259, allocations: 10.05 MB / 0.7496 GB, free: 196.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.994e-06/2.259, allocations: 0 / 0.7496 GB, free: 196.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00732/2.267, allocations: 4.38 MB / 0.7539 GB, free: 195.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/2.27, allocations: 444 kB / 0.7543 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05589/2.326, allocations: 13.35 MB / 0.7674 GB, free: 187.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01393/2.34, allocations: 3.218 MB / 0.7705 GB, free: 185.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01491/2.355, allocations: 2.333 MB / 0.7728 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/2.357, allocations: 0.5327 MB / 0.7733 GB, free: 183.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.292e-06/2.357, allocations: 0 / 0.7733 GB, free: 183.2 MB / 0.545 GB Notification: Performance of Templates: time 0.2002/2.557, allocations: 83.21 MB / 0.8546 GB, free: 101.1 MB / 0.545 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[2001]=0.400000 File[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.777676840996719]