Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 80.95 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0022/0.0022, allocations: 146.5 kB / 23.94 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 1.375 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.25e-05, allocations: 6.219 kB / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01346/0.01348, allocations: 11.86 MB / 330.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.02452, allocations: 4.368 MB / 335.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.02773, allocations: 110.1 kB / 335.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009082/0.03681, allocations: 4.31 MB / 339.6 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00639/0.0432, allocations: 2.322 MB / 341.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002389/0.04559, allocations: 1.024 MB / 342.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009185/0.05478, allocations: 6.739 MB / 349.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005872/0.06065, allocations: 4.561 MB / 354.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005042/0.06569, allocations: 3.267 MB / 357.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004894/0.07058, allocations: 3.055 MB / 360.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009954/0.07158, allocations: 488 kB / 361 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/0.07419, allocations: 1.311 MB / 362.3 MB, free: 128 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002807/0.077, allocations: 2.735 MB / 365.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003011/0.08001, allocations: 1.737 MB / 366.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.09178, allocations: 9.335 MB / 376.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.09179, allocations: 0 / 376.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09179, allocations: 0 / 376.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002161/0.092, allocations: 4 kB / 376.1 MB, free: 2.273 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01361/0.1056, allocations: 6.264 MB / 382.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1057, allocations: 8.922 kB / 382.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01259/0.1182, allocations: 2.739 MB / 385.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008267/0.1265, allocations: 3.749 MB / 388.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.1268, allocations: 296.2 kB / 389.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009548/0.1277, allocations: 437.4 kB / 389.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02074/0.1485, allocations: 11.79 MB / 401.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001537/0.1486, allocations: 51.58 kB / 401.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000552/0.1492, allocations: 191.9 kB / 401.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003911/0.1531, allocations: 2.085 MB / 403.7 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02056/0.1736, allocations: 10.05 MB / 413.8 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06051/0.2342, allocations: 42.25 MB / 456 MB, free: 364 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.2458, allocations: 3.92 MB / 459.9 MB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003512/0.2493, allocations: 2.307 MB / 462.2 MB, free: 10.08 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0163/0.2656, allocations: 9.079 MB / 471.3 MB, free: 0.9648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.2657, allocations: 51.56 kB / 471.4 MB, free: 0.9062 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 5.04e-06/0.2657, allocations: 0 / 471.4 MB, free: 0.9062 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.1998/0.4655, allocations: 20.75 MB / 492.1 MB, free: 123.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.4656, allocations: 197 kB / 492.3 MB, free: 123 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004614/0.4702, allocations: 4.622 MB / 496.9 MB, free: 121.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002282/0.4704, allocations: 53.48 kB / 497 MB, free: 121.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.4718, allocations: 3.726 MB / 0.489 GB, free: 118.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006065/0.4724, allocations: 0.7831 MB / 0.4897 GB, free: 118.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/0.4737, allocations: 1.328 MB / 0.491 GB, free: 117.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.499e-05/0.4738, allocations: 308.8 kB / 0.4913 GB, free: 117.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/0.4764, allocations: 2.408 MB / 0.4937 GB, free: 116.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00358/0.48, allocations: 6.316 MB / 0.4999 GB, free: 108.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/0.4872, allocations: 9.317 MB / 0.509 GB, free: 97.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.526e-05/0.4873, allocations: 40 kB / 0.509 GB, free: 97.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01394/0.5012, allocations: 9.753 MB / 0.5185 GB, free: 87.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/0.5013, allocations: 67.98 kB / 0.5186 GB, free: 87.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.81e-05/0.5014, allocations: 141.8 kB / 0.5187 GB, free: 87.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00396/0.5053, allocations: 1.609 MB / 0.5203 GB, free: 85.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/0.5094, allocations: 1.489 MB / 0.5217 GB, free: 83.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009993/0.5194, allocations: 9.943 MB / 0.5314 GB, free: 73.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005091/0.5245, allocations: 419.4 kB / 0.5318 GB, free: 73.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005404/0.525, allocations: 395.9 kB / 0.5322 GB, free: 72.99 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (796): * Single equations (assignments): 791 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003056/0.528, allocations: 2.489 MB / 0.5347 GB, free: 70.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007271/0.5288, allocations: 401.3 kB / 0.535 GB, free: 70.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006808/0.5356, allocations: 4.17 MB / 0.5391 GB, free: 65.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.5356, allocations: 24 kB / 0.5391 GB, free: 65.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.5356, allocations: 4 kB / 0.5391 GB, free: 65.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.5356, allocations: 11.97 kB / 0.5392 GB, free: 65.87 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.5489, allocations: 8.486 MB / 0.5474 GB, free: 57.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.5489, allocations: 4 kB / 0.5474 GB, free: 57.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/0.5503, allocations: 299.5 kB / 0.5477 GB, free: 57.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003673/0.5539, allocations: 1.35 MB / 0.549 GB, free: 55.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.5541, allocations: 40 kB / 0.5491 GB, free: 55.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009353/0.5634, allocations: 9.16 MB / 0.558 GB, free: 46.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.5634, allocations: 4 kB / 0.558 GB, free: 46.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009482/0.5729, allocations: 6.916 MB / 0.5648 GB, free: 39.38 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.574, allocations: 409.1 kB / 0.5652 GB, free: 38.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004576/0.5745, allocations: 35.98 kB / 0.5652 GB, free: 38.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/0.5763, allocations: 167.7 kB / 0.5654 GB, free: 38.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.5767, allocations: 132.9 kB / 0.5655 GB, free: 38.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.5769, allocations: 51.83 kB / 0.5655 GB, free: 38.61 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003/0.5799, allocations: 2.749 MB / 0.5682 GB, free: 35.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5799, allocations: 3.938 kB / 0.5682 GB, free: 35.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004851/0.5847, allocations: 1.363 MB / 0.5696 GB, free: 34.48 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000434/0.5851, allocations: 186.9 kB / 0.5697 GB, free: 34.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006872/0.592, allocations: 5.736 MB / 0.5753 GB, free: 28.56 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.592, allocations: 1.812 kB / 0.5753 GB, free: 28.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002398/0.5944, allocations: 1.874 MB / 0.5772 GB, free: 26.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.5969, allocations: 499.9 kB / 0.5777 GB, free: 26.19 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.611, allocations: 11.28 MB / 0.5887 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003171/0.6142, allocations: 3.339 MB / 0.5919 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003676/0.6179, allocations: 1.95 MB / 0.5938 GB, free: 9.531 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007929/0.6186, allocations: 264.4 kB / 0.5941 GB, free: 9.273 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6186, allocations: 0 / 0.5941 GB, free: 9.273 MB / 430.1 MB Notification: Performance of Templates: time 0.2283/0.8469, allocations: 40.3 MB / 0.6334 GB, free: 143 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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: 6.580586064606905]