Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008411/0.0008411, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001297/0.002138, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007262/0.0007262, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001041/0.001767, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9338/0.9338, allocations: 177.5 MB / 190 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08963/1.023, allocations: 53.86 MB / 243.9 MB, free: 14.87 MB / 250.7 MB " [Timeout remaining time 179] 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.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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.186e-05/1.324e-05, allocations: 5.406 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.008892/0.008905, allocations: 12.86 MB / 258.1 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00756/0.01647, allocations: 4.675 MB / 262.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001047/0.01751, allocations: 111.4 kB / 262.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003845/0.02136, allocations: 4.252 MB / 267.1 MB, free: 7.598 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00296/0.02432, allocations: 2.231 MB / 269.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.02561, allocations: 0.959 MB / 270.3 MB, free: 4.395 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1171/0.1427, allocations: 6.338 MB / 276.6 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006236/0.1489, allocations: 4.284 MB / 280.9 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00645/0.1554, allocations: 4.039 MB / 284.9 MB, free: 1.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004099/0.1595, allocations: 2.968 MB / 287.9 MB, free: 1.582 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000935/0.1604, allocations: 482.2 kB / 288.4 MB, free: 1.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002234/0.1627, allocations: 1.335 MB / 289.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.1645, allocations: 2.401 MB / 292.1 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001536/0.166, allocations: 1.398 MB / 293.5 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004148/0.1701, allocations: 5.405 MB / 298.9 MB, free: 14.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.1702, allocations: 6.141 kB / 298.9 MB, free: 14.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1702, allocations: 0.9375 kB / 298.9 MB, free: 14.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.811e-05/0.1702, allocations: 0 / 298.9 MB, free: 14.77 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.007562/0.1778, allocations: 6.883 MB / 305.8 MB, free: 8.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1778, allocations: 8.625 kB / 305.8 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003416/0.1813, allocations: 1.43 MB / 307.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/0.1842, allocations: 2.632 MB / 309.9 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.1843, allocations: 310.4 kB / 310.2 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004879/0.1848, allocations: 423.2 kB / 310.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006123/0.191, allocations: 5.774 MB / 316.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.1911, allocations: 55.86 kB / 316.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000312/0.1914, allocations: 192.5 kB / 316.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001324/0.1927, allocations: 1.672 MB / 318.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004843/0.1975, allocations: 2.86 MB / 321.1 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02782/0.2254, allocations: 34.63 MB / 355.8 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005982/0.2313, allocations: 1.686 MB / 357.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.232, allocations: 404.5 kB / 357.9 MB, free: 5.145 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007223/0.2393, allocations: 4.084 MB / 361.9 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.2393, allocations: 44.78 kB / 362 MB, free: 1.055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=142): time 3.587e-06/0.2393, allocations: 0 / 362 MB, free: 1.055 MB / 330.7 MB Notification: Performance of matching and sorting (n=158): time 0.01306/0.2524, allocations: 5.349 MB / 367.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.2524, allocations: 145.5 kB / 367.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.255, allocations: 3.713 MB / 371.2 MB, free: 8.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.882e-05/0.2551, allocations: 49.7 kB / 371.2 MB, free: 8.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.2567, allocations: 3.49 MB / 374.7 MB, free: 5.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000357/0.2571, allocations: 0.6555 MB / 375.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009358/0.258, allocations: 1.248 MB / 376.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.2581, allocations: 301.1 kB / 376.9 MB, free: 3.133 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.2591, allocations: 0.7558 MB / 377.7 MB, free: 2.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002795/0.2619, allocations: 4.698 MB / 382.4 MB, free: 11.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004282/0.2662, allocations: 6.46 MB / 388.8 MB, free: 3.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.01e-05/0.2662, allocations: 40 kB / 388.9 MB, free: 3.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004561/0.2708, allocations: 4.419 MB / 393.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.231e-05/0.2708, allocations: 68 kB / 393.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/0.2709, allocations: 148 kB / 393.5 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006381/0.2716, allocations: 416.1 kB / 393.9 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.274, allocations: 1.63 MB / 395.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.2764, allocations: 3.569 MB / 399.1 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.2785, allocations: 283.8 kB / 399.4 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/0.2788, allocations: 352 kB / 399.7 MB, free: 8.922 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (804): * Single equations (assignments): 799 * 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,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001077/0.2798, allocations: 0.6534 MB / 400.4 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.2801, allocations: 249 kB / 400.6 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.2811, allocations: 0.8623 MB / 401.5 MB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.2811, allocations: 15.98 kB / 401.5 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2811, allocations: 4 kB / 401.5 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.2811, allocations: 7.984 kB / 401.5 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00433/0.2855, allocations: 4.224 MB / 405.7 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.2855, allocations: 8 kB / 405.8 MB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009104/0.2864, allocations: 288.3 kB / 406 MB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000298/0.2867, allocations: 361.2 kB / 406.4 MB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000672/0.2874, allocations: 427.7 kB / 406.8 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.977e-05/0.2874, allocations: 36.09 kB / 406.8 MB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001543/0.289, allocations: 2.783 MB / 409.6 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.289, allocations: 13.97 kB / 409.6 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.2904, allocations: 1.773 MB / 411.4 MB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.2907, allocations: 28 kB / 411.4 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006131/0.2913, allocations: 39.98 kB / 411.5 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.2914, allocations: 108.6 kB / 411.6 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-05/0.2915, allocations: 44 kB / 411.6 MB, free: 12.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001087/0.2926, allocations: 1.393 MB / 413 MB, free: 11.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2926, allocations: 0 / 413 MB, free: 11.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002998/0.2956, allocations: 1.144 MB / 414.2 MB, free: 10.33 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (130): * Single equations (assignments): 125 * 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,9,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.0002863/0.2959, allocations: 164.1 kB / 414.3 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.2984, allocations: 2.831 MB / 417.2 MB, free: 7.348 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001728/0.2986, allocations: 122.7 kB / 417.3 MB, free: 7.219 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006828/0.2992, allocations: 0.7354 MB / 418 MB, free: 6.461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.3022, allocations: 3.656 MB / 421.7 MB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1123/0.4145, allocations: 8.816 MB / 430.5 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/0.4159, allocations: 1.47 MB / 431.9 MB, free: 109.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001469/0.4174, allocations: 0.5252 MB / 432.5 MB, free: 109 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008737/0.4182, allocations: 0.5806 MB / 433.1 MB, free: 109 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.4182, allocations: 0 / 433.1 MB, free: 109 MB / 394.7 MB Notification: Performance of Templates: time 0.04397/0.4622, allocations: 31.29 MB / 464.3 MB, free: 96.44 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4343565087765455]