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.001195/0.001195, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001227/0.001227, allocations: 162.8 kB / 25.61 MB, free: 8.902 MB / 18.57 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.073/1.073, allocations: 177.1 MB / 206 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] 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 2.375e-06/2.375e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.188e-05/3.426e-05, allocations: 2.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01275/0.01279, allocations: 12.7 MB / 286.9 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009854/0.02264, allocations: 4.461 MB / 291.3 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002839/0.02548, allocations: 107.4 kB / 291.4 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005581/0.03106, allocations: 4.427 MB / 295.9 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005912/0.03697, allocations: 2.274 MB / 298.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.03922, allocations: 1.037 MB / 299.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008557/0.04777, allocations: 6.876 MB / 306.1 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00558/0.05335, allocations: 4.684 MB / 310.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006948/0.0603, allocations: 4.234 MB / 315 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004764/0.06507, allocations: 3.118 MB / 318.1 MB, free: 8.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001267/0.06633, allocations: 484 kB / 318.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.06874, allocations: 1.303 MB / 319.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002335/0.07107, allocations: 2.696 MB / 322.6 MB, free: 3.848 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002758/0.07383, allocations: 1.722 MB / 324.3 MB, free: 2.121 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007527/0.08136, allocations: 5.844 MB / 330.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.08136, allocations: 0 / 330.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08136, allocations: 0 / 330.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001965/0.08156, allocations: 0 / 330.1 MB, free: 12.26 MB / 314.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.009761/0.09132, allocations: 6.401 MB / 336.5 MB, free: 5.785 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.09137, allocations: 8.031 kB / 336.5 MB, free: 5.777 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006163/0.09753, allocations: 2.229 MB / 338.8 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005663/0.1032, allocations: 2.846 MB / 341.6 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/0.1034, allocations: 300.1 kB / 341.9 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1567/0.2602, allocations: 423.7 kB / 342.3 MB, free: 64.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01569/0.2758, allocations: 6.355 MB / 348.7 MB, free: 61.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/0.2761, allocations: 52.53 kB / 348.7 MB, free: 61.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005349/0.2767, allocations: 188 kB / 348.9 MB, free: 61.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001881/0.2785, allocations: 1.768 MB / 350.7 MB, free: 61.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007964/0.2865, allocations: 2.799 MB / 353.5 MB, free: 61.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04104/0.3275, allocations: 47.84 MB / 401.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00454/0.3321, allocations: 1.715 MB / 403 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007259/0.3328, allocations: 0.5052 MB / 403.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006652/0.3395, allocations: 4.376 MB / 407.9 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.3395, allocations: 54.39 kB / 408 MB, free: 9.297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=142): time 6.532e-06/0.3395, allocations: 0 / 408 MB, free: 9.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=158): time 0.01526/0.3548, allocations: 5.947 MB / 413.9 MB, free: 3.586 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3548, allocations: 200.9 kB / 414.1 MB, free: 3.348 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003659/0.3585, allocations: 4.136 MB / 418.3 MB, free: 15.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001802/0.3587, allocations: 45.7 kB / 418.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002561/0.3612, allocations: 4.008 MB / 422.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000819/0.362, allocations: 0.6786 MB / 423 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001433/0.3635, allocations: 1.454 MB / 424.4 MB, free: 9.141 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3636, allocations: 484.7 kB / 424.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009736/0.3646, allocations: 0.5668 MB / 425.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004182/0.3688, allocations: 6.622 MB / 432.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007198/0.376, allocations: 7.82 MB / 439.9 MB, free: 4.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001567/0.3761, allocations: 40 kB / 440 MB, free: 4.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.01047/0.3866, allocations: 5.193 MB / 445.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.3867, allocations: 70.34 kB / 445.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000117/0.3868, allocations: 140 kB / 445.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008587/0.3876, allocations: 403.4 kB / 445.7 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003547/0.3912, allocations: 1.458 MB / 447.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003715/0.3949, allocations: 4.782 MB / 452 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004448/0.3994, allocations: 291.7 kB / 452.3 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007489/0.4001, allocations: 343.9 kB / 452.6 MB, free: 7.262 MB / 362.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.002751/0.4029, allocations: 0.7041 MB / 453.3 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001441/0.4043, allocations: 425.4 kB / 453.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.4061, allocations: 0.9742 MB / 454.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.548e-05/0.4061, allocations: 20 kB / 454.7 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.4061, allocations: 8 kB / 454.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4062, allocations: 7.969 kB / 454.7 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.4164, allocations: 5.07 MB / 459.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.4164, allocations: 8 kB / 459.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007467/0.4172, allocations: 239.6 kB / 460.1 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006333/0.4178, allocations: 219.2 kB / 460.3 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.812e-05/0.4179, allocations: 31.94 kB / 460.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002988/0.4209, allocations: 3.861 MB / 464.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.4209, allocations: 11.94 kB / 464.2 MB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/0.4241, allocations: 2.146 MB / 466.3 MB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.4252, allocations: 385.1 kB / 466.7 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003923/0.4256, allocations: 32 kB / 466.7 MB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008117/0.4264, allocations: 35.98 kB / 466.8 MB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.4266, allocations: 116.6 kB / 466.9 MB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.112e-05/0.4267, allocations: 43.98 kB / 466.9 MB, free: 8.402 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002636/0.4294, allocations: 1.689 MB / 468.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4294, allocations: 3.609 kB / 468.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005545/0.4349, allocations: 1.133 MB / 469.7 MB, free: 5.574 MB / 378.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.0005441/0.4354, allocations: 186.8 kB / 469.9 MB, free: 5.383 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0053/0.4407, allocations: 3.006 MB / 472.9 MB, free: 2.363 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.4408, allocations: 0 / 472.9 MB, free: 2.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.4418, allocations: 0.8119 MB / 473.7 MB, free: 1.512 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003043/0.4448, allocations: 0.5003 MB / 474.2 MB, free: 1.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01711/0.4619, allocations: 8.737 MB / 483 MB, free: 8.098 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/0.464, allocations: 1.48 MB / 484.5 MB, free: 6.59 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001958/0.466, allocations: 0.5301 MB / 485 MB, free: 6.055 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009306/0.4669, allocations: 0.6387 MB / 485.6 MB, free: 5.414 MB / 394.7 MB Notification: Performance of SimCode: time 2.685e-06/0.4669, allocations: 4 kB / 485.6 MB, free: 5.41 MB / 394.7 MB Notification: Performance of Templates: time 0.2095/0.6764, allocations: 32.69 MB / 0.5062 GB, free: 112.8 MB / 394.7 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6466149049811065]