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.001717/0.001717, allocations: 92.69 kB / 20.95 MB, free: 484 kB / 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.002124/0.002124, allocations: 154.8 kB / 24.25 MB, free: 3.527 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.406/1.406, allocations: 173.3 MB / 200.8 MB, free: 12.72 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.373e-06/1.373e-06, allocations: 0 / 267.3 MB, free: 10.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.398e-05/2.535e-05, allocations: 2.312 kB / 267.3 MB, free: 10.18 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01579/0.01582, allocations: 11.87 MB / 279.2 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.0263, allocations: 4.367 MB / 283.5 MB, free: 9.871 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.02865, allocations: 111.4 kB / 283.7 MB, free: 9.762 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009414/0.03806, allocations: 4.38 MB / 288 MB, free: 5.367 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007394/0.04546, allocations: 2.317 MB / 290.3 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002685/0.04814, allocations: 1.029 MB / 291.4 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.009746/0.05789, allocations: 6.746 MB / 298.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007599/0.06549, allocations: 4.688 MB / 302.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00634/0.07183, allocations: 3.271 MB / 306.1 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005359/0.07719, allocations: 3.059 MB / 309.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1182/0.1953, allocations: 483.7 kB / 309.6 MB, free: 25.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003508/0.1989, allocations: 1.307 MB / 310.9 MB, free: 25.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003094/0.202, allocations: 2.729 MB / 313.7 MB, free: 25.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003486/0.2054, allocations: 1.733 MB / 315.4 MB, free: 25.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.2158, allocations: 9.344 MB / 324.7 MB, free: 24.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2158, allocations: 5.094 kB / 324.7 MB, free: 24.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2158, allocations: 0 / 324.7 MB, free: 24.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.2161, allocations: 0 / 324.7 MB, free: 24.88 MB / 286.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.01506/0.2312, allocations: 6.271 MB / 331 MB, free: 21.86 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2312, allocations: 10.27 kB / 331 MB, free: 21.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01184/0.2431, allocations: 3.319 MB / 334.3 MB, free: 20.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008432/0.2515, allocations: 3.778 MB / 338.1 MB, free: 18.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.2517, allocations: 304.7 kB / 338.4 MB, free: 18.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001643/0.2533, allocations: 427.2 kB / 338.8 MB, free: 18.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0199/0.2732, allocations: 11.8 MB / 350.6 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002219/0.2734, allocations: 55.02 kB / 350.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006998/0.2741, allocations: 192.1 kB / 350.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002875/0.277, allocations: 2.087 MB / 353 MB, free: 4.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/0.2972, allocations: 10.04 MB / 363 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06539/0.3626, allocations: 42.34 MB / 405.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/0.3744, allocations: 3.917 MB / 409.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003627/0.3781, allocations: 2.309 MB / 411.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/0.3952, allocations: 9.098 MB / 420.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.3953, allocations: 51.56 kB / 420.7 MB, free: 484 kB / 350.1 MB Notification: Performance of pre-optimization done (n=171): time 5.23e-06/0.3953, allocations: 0 / 420.7 MB, free: 484 kB / 350.1 MB Notification: Performance of matching and sorting (n=197): time 0.06598/0.4612, allocations: 20.82 MB / 441.5 MB, free: 11.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.4614, allocations: 205.2 kB / 441.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/0.4681, allocations: 4.618 MB / 446.3 MB, free: 6.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003038/0.4684, allocations: 53.7 kB / 446.4 MB, free: 6.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/0.4712, allocations: 3.713 MB / 450.1 MB, free: 3.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009722/0.4721, allocations: 0.7908 MB / 450.9 MB, free: 2.254 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001943/0.4741, allocations: 1.328 MB / 452.2 MB, free: 0.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.4742, allocations: 305.1 kB / 452.5 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1283/0.6026, allocations: 2.405 MB / 454.9 MB, free: 125.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005764/0.6083, allocations: 6.323 MB / 461.2 MB, free: 120.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009252/0.6176, allocations: 9.309 MB / 470.6 MB, free: 113.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002061/0.6178, allocations: 39.56 kB / 470.6 MB, free: 113.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01927/0.6371, allocations: 10.11 MB / 480.7 MB, free: 109.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.6372, allocations: 61.78 kB / 480.8 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002139/0.6374, allocations: 136.8 kB / 480.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004334/0.6417, allocations: 1.614 MB / 482.5 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004911/0.6467, allocations: 1.491 MB / 484 MB, free: 108.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.6586, allocations: 9.974 MB / 494 MB, free: 99.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006234/0.6648, allocations: 429.3 kB / 494.4 MB, free: 99.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/0.6662, allocations: 394.9 kB / 494.8 MB, free: 98.85 MB / 382.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.005211/0.6714, allocations: 2.48 MB / 497.3 MB, free: 96.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/0.6727, allocations: 442.8 kB / 497.7 MB, free: 96.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00794/0.6806, allocations: 4.176 MB / 0.4901 GB, free: 93.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.474e-05/0.6807, allocations: 20 kB / 0.4901 GB, free: 93.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.6807, allocations: 9.078 kB / 0.4901 GB, free: 93.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.6807, allocations: 7.969 kB / 0.4902 GB, free: 93.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/0.6967, allocations: 8.496 MB / 0.4984 GB, free: 84.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.6968, allocations: 4 kB / 0.4985 GB, free: 84.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/0.6982, allocations: 303.5 kB / 0.4987 GB, free: 84.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003662/0.7019, allocations: 1.35 MB / 0.5001 GB, free: 82.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.7021, allocations: 36 kB / 0.5001 GB, free: 82.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009623/0.7117, allocations: 9.192 MB / 0.5091 GB, free: 73.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7117, allocations: 0 / 0.5091 GB, free: 73.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009517/0.7212, allocations: 6.98 MB / 0.5159 GB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/0.7225, allocations: 399.2 kB / 0.5163 GB, free: 66.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005313/0.723, allocations: 35.94 kB / 0.5163 GB, free: 66.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/0.7248, allocations: 177 kB / 0.5165 GB, free: 66.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003663/0.7252, allocations: 129.2 kB / 0.5166 GB, free: 66.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/0.7253, allocations: 52 kB / 0.5166 GB, free: 66.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003667/0.729, allocations: 2.749 MB / 0.5193 GB, free: 63.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.729, allocations: 0 / 0.5193 GB, free: 63.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006226/0.7352, allocations: 1.364 MB / 0.5207 GB, free: 62.02 MB / 382.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.00053/0.7357, allocations: 191.1 kB / 0.5208 GB, free: 61.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008546/0.7443, allocations: 5.734 MB / 0.5264 GB, free: 56.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.7443, allocations: 0 / 0.5264 GB, free: 56.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002583/0.7469, allocations: 1.885 MB / 0.5283 GB, free: 54.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/0.75, allocations: 0.4906 MB / 0.5288 GB, free: 53.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/0.7666, allocations: 11.45 MB / 0.5399 GB, free: 42.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003459/0.77, allocations: 3.339 MB / 0.5432 GB, free: 38.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003746/0.7738, allocations: 1.954 MB / 0.5451 GB, free: 36.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007127/0.7745, allocations: 252.5 kB / 0.5454 GB, free: 36.64 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7745, allocations: 0 / 0.5454 GB, free: 36.64 MB / 382.1 MB Notification: Performance of Templates: time 0.1925/0.967, allocations: 40.51 MB / 0.5849 GB, free: 112.6 MB / 382.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.42017125338316]