Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.001406/0.001406, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001545/0.001545, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8 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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 47.92 kB / 378.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2874, allocations: 53.36 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01855/0.3059, allocations: 13.53 MB / 445.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.3162, allocations: 4.6 MB / 449.8 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002342/0.3185, allocations: 111.4 kB / 449.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008589/0.3271, allocations: 4.248 MB / 454.1 MB, free: 356 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006868/0.334, allocations: 2.194 MB / 456.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.3367, allocations: 0.9165 MB / 457.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3468, allocations: 6.147 MB / 463.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006108/0.353, allocations: 4.023 MB / 467.4 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003765/0.3567, allocations: 2.154 MB / 469.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004821/0.3615, allocations: 3.007 MB / 472.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009878/0.3625, allocations: 472 kB / 473 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002816/0.3653, allocations: 1.385 MB / 474.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002919/0.3683, allocations: 2.556 MB / 477 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003663/0.3719, allocations: 2.84 MB / 479.8 MB, free: 6.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.385, allocations: 9.063 MB / 488.9 MB, free: 13.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.385, allocations: 4 kB / 488.9 MB, free: 13.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.385, allocations: 0 / 488.9 MB, free: 13.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005001/0.3855, allocations: 0 / 488.9 MB, free: 13.44 MB / 398.1 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.01929/0.4048, allocations: 6.163 MB / 495 MB, free: 7.211 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.4049, allocations: 12.03 kB / 495 MB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0126/0.4175, allocations: 2.607 MB / 497.6 MB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009907/0.4274, allocations: 3.73 MB / 0.4896 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003285/0.4277, allocations: 300.1 kB / 0.4899 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001573/0.4293, allocations: 427.9 kB / 0.4903 GB, free: 100 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/0.4515, allocations: 11.55 MB / 0.5016 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000172/0.4517, allocations: 55.53 kB / 0.5017 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005419/0.4522, allocations: 187.9 kB / 0.5018 GB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003815/0.4561, allocations: 2.03 MB / 0.5038 GB, free: 1.523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02227/0.4783, allocations: 9.94 MB / 0.5135 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3102/0.7885, allocations: 45.27 MB / 0.5577 GB, free: 70.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.7987, allocations: 3.761 MB / 0.5614 GB, free: 69.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002863/0.8015, allocations: 2.298 MB / 0.5636 GB, free: 68.37 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01668/0.8182, allocations: 9.374 MB / 0.5728 GB, free: 63.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.464e-05/0.8183, allocations: 55.45 kB / 0.5729 GB, free: 63.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 5.27e-06/0.8183, allocations: 0 / 0.5729 GB, free: 63.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.05419/0.8725, allocations: 19.94 MB / 0.5923 GB, free: 46.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.8726, allocations: 204.7 kB / 0.5925 GB, free: 46.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005477/0.878, allocations: 4.708 MB / 0.5971 GB, free: 41.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000403/0.8784, allocations: 53.7 kB / 0.5972 GB, free: 41.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.8802, allocations: 3.691 MB / 0.6008 GB, free: 38.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007843/0.881, allocations: 0.8021 MB / 0.6016 GB, free: 37.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/0.8824, allocations: 1.338 MB / 0.6029 GB, free: 35.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.105e-05/0.8825, allocations: 305.1 kB / 0.6032 GB, free: 35.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002731/0.8852, allocations: 2.402 MB / 0.6055 GB, free: 33.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003867/0.8891, allocations: 6.254 MB / 0.6116 GB, free: 25.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007823/0.8969, allocations: 9.294 MB / 0.6207 GB, free: 13.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.445e-05/0.897, allocations: 40 kB / 0.6207 GB, free: 13.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01443/0.9114, allocations: 9.766 MB / 0.6303 GB, free: 4.062 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/0.9115, allocations: 64 kB / 0.6303 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.463e-05/0.9116, allocations: 134.4 kB / 0.6304 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003806/0.9154, allocations: 1.62 MB / 0.632 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004142/0.9195, allocations: 1.482 MB / 0.6335 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/0.934, allocations: 10.05 MB / 0.6433 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004773/0.9387, allocations: 367.5 kB / 0.6436 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006974/0.9394, allocations: 391.2 kB / 0.644 GB, free: 5.734 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (793): * Single equations (assignments): 788 * 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.00425/0.9437, allocations: 2.446 MB / 0.6464 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009359/0.9446, allocations: 429.1 kB / 0.6468 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008998/0.9536, allocations: 4.228 MB / 0.6509 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.092e-05/0.9537, allocations: 23.98 kB / 0.651 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.815e-05/0.9537, allocations: 8 kB / 0.651 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.34e-05/0.9537, allocations: 7.969 kB / 0.651 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02008/0.9738, allocations: 9.629 MB / 0.6604 GB, free: 4.906 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.9738, allocations: 0 / 0.6604 GB, free: 4.906 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.9754, allocations: 299.6 kB / 0.6607 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004333/0.9797, allocations: 1.36 MB / 0.662 GB, free: 3.246 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001897/0.9799, allocations: 31.94 kB / 0.662 GB, free: 3.215 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/0.9934, allocations: 9.18 MB / 0.671 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.9934, allocations: 4 kB / 0.671 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.006, allocations: 6.98 MB / 0.6778 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/1.008, allocations: 405 kB / 0.6782 GB, free: 2.402 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004805/1.008, allocations: 28 kB / 0.6782 GB, free: 2.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.01, allocations: 115.8 kB / 0.6783 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004732/1.01, allocations: 129.5 kB / 0.6785 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.01, allocations: 51.98 kB / 0.6785 GB, free: 2.082 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005323/1.016, allocations: 2.956 MB / 0.6814 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.016, allocations: 0 / 0.6814 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00642/1.022, allocations: 1.191 MB / 0.6826 GB, free: 13.94 MB / 0.4981 GB 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.0006341/1.023, allocations: 170.4 kB / 0.6827 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01091/1.034, allocations: 5.723 MB / 0.6883 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.034, allocations: 4 kB / 0.6883 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00368/1.037, allocations: 1.881 MB / 0.6902 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003715/1.041, allocations: 0.5342 MB / 0.6907 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0227/1.064, allocations: 11.32 MB / 0.7017 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005003/1.069, allocations: 3.812 MB / 0.7055 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005011/1.074, allocations: 1.981 MB / 0.7074 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007964/1.075, allocations: 271.4 kB / 0.7076 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of SimCode: time 9.72e-07/1.075, allocations: 0 / 0.7076 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of Templates: time 0.3508/1.425, allocations: 46.58 MB / 0.7531 GB, free: 189.6 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.365395637927577]