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.001006/0.001006, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.0038/0.0038, allocations: 141 kB / 24.68 MB, free: 9.418 MB / 18.57 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 0.8707/0.8707, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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.473e-06/1.473e-06, allocations: 0 / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.98e-05/3.127e-05, allocations: 6.219 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01015/0.01018, allocations: 11.86 MB / 331.5 MB, free: 9.926 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007189/0.01737, allocations: 4.38 MB / 335.9 MB, free: 5.531 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.01892, allocations: 107.4 kB / 336 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004072/0.02299, allocations: 4.31 MB / 340.3 MB, free: 1.102 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00393/0.02692, allocations: 2.317 MB / 342.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.02846, allocations: 1.021 MB / 343.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005891/0.03435, allocations: 6.743 MB / 350.4 MB, free: 6.996 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003612/0.03796, allocations: 4.553 MB / 355 MB, free: 2.375 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003883/0.04185, allocations: 3.274 MB / 358.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002539/0.04438, allocations: 3.043 MB / 361.3 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005162/0.0449, allocations: 488 kB / 361.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001781/0.04668, allocations: 1.319 MB / 363.1 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.04818, allocations: 2.727 MB / 365.8 MB, free: 7.512 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.0496, allocations: 1.737 MB / 367.5 MB, free: 5.77 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007468/0.05707, allocations: 9.335 MB / 376.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.05708, allocations: 0 / 376.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.05708, allocations: 4 kB / 376.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001966/0.05727, allocations: 0 / 376.9 MB, free: 12.4 MB / 346.7 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.00945/0.06672, allocations: 6.264 MB / 383.2 MB, free: 6.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.06677, allocations: 16.86 kB / 383.2 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006226/0.07299, allocations: 2.712 MB / 385.9 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005174/0.07817, allocations: 3.73 MB / 389.6 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.07832, allocations: 304.2 kB / 389.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007315/0.07905, allocations: 440.6 kB / 390.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/0.09299, allocations: 11.79 MB / 402.1 MB, free: 2.289 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.0931, allocations: 55.58 kB / 402.2 MB, free: 2.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004298/0.09353, allocations: 191.9 kB / 402.4 MB, free: 2.047 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002038/0.09557, allocations: 2.089 MB / 404.5 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.1101, allocations: 10.08 MB / 414.5 MB, free: 5.852 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1979/0.308, allocations: 42.22 MB / 456.8 MB, free: 90.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00578/0.3137, allocations: 3.909 MB / 460.7 MB, free: 90.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/0.3154, allocations: 2.306 MB / 463 MB, free: 90.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007955/0.3234, allocations: 9.067 MB / 472 MB, free: 86.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.3234, allocations: 56.41 kB / 472.1 MB, free: 86.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=171): time 3.817e-06/0.3234, allocations: 0 / 472.1 MB, free: 86.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=197): time 0.02734/0.3508, allocations: 20.77 MB / 492.9 MB, free: 68.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3508, allocations: 204.7 kB / 493.1 MB, free: 68.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003345/0.3542, allocations: 4.621 MB / 497.7 MB, free: 63.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-05/0.3543, allocations: 49.7 kB / 497.7 MB, free: 63.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009301/0.3552, allocations: 3.723 MB / 0.4897 GB, free: 60.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.3555, allocations: 0.7863 MB / 0.4905 GB, free: 59.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008765/0.3564, allocations: 1.326 MB / 0.4918 GB, free: 58.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.789e-05/0.3564, allocations: 313.1 kB / 0.4921 GB, free: 57.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/0.3582, allocations: 2.402 MB / 0.4944 GB, free: 55.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002584/0.3608, allocations: 6.324 MB / 0.5006 GB, free: 47.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00517/0.366, allocations: 9.324 MB / 0.5097 GB, free: 36.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.209e-05/0.366, allocations: 36 kB / 0.5097 GB, free: 36.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.008706/0.3747, allocations: 9.763 MB / 0.5193 GB, free: 26.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/0.3748, allocations: 64 kB / 0.5193 GB, free: 26.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.674e-05/0.3749, allocations: 136 kB / 0.5194 GB, free: 26.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.3771, allocations: 1.62 MB / 0.521 GB, free: 24.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.3792, allocations: 1.486 MB / 0.5225 GB, free: 23.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007111/0.3863, allocations: 9.935 MB / 0.5322 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/0.3893, allocations: 427.2 kB / 0.5326 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.3895, allocations: 392 kB / 0.533 GB, free: 12.17 MB / 410.7 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.002416/0.392, allocations: 2.481 MB / 0.5354 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/0.3923, allocations: 393.3 kB / 0.5358 GB, free: 9.297 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00393/0.3963, allocations: 4.185 MB / 0.5398 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.3963, allocations: 20 kB / 0.5399 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3963, allocations: 8 kB / 0.5399 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.3963, allocations: 11.97 kB / 0.5399 GB, free: 5.051 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008945/0.4052, allocations: 8.489 MB / 0.5482 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/0.4052, allocations: 8.219 kB / 0.5482 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.406, allocations: 303.5 kB / 0.5485 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002334/0.4083, allocations: 1.354 MB / 0.5498 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-05/0.4084, allocations: 43.83 kB / 0.5498 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007438/0.4158, allocations: 9.156 MB / 0.5588 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4158, allocations: 0 / 0.5588 GB, free: 1.488 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007015/0.4228, allocations: 6.932 MB / 0.5656 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008444/0.4237, allocations: 397.2 kB / 0.5659 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.4239, allocations: 31.75 kB / 0.566 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009327/0.4249, allocations: 175.7 kB / 0.5661 GB, free: 9.938 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.4251, allocations: 129 kB / 0.5662 GB, free: 9.812 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.312e-05/0.4252, allocations: 47.98 kB / 0.5663 GB, free: 9.766 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0027/0.4279, allocations: 2.75 MB / 0.569 GB, free: 7.008 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4279, allocations: 0 / 0.569 GB, free: 7.008 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003608/0.4315, allocations: 1.367 MB / 0.5703 GB, free: 5.641 MB / 442.7 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.0003796/0.4319, allocations: 191.3 kB / 0.5705 GB, free: 5.449 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006197/0.4381, allocations: 5.749 MB / 0.5761 GB, free: 15.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4381, allocations: 0 / 0.5761 GB, free: 15.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.4401, allocations: 1.875 MB / 0.5779 GB, free: 13.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.4419, allocations: 488.3 kB / 0.5784 GB, free: 13.33 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.4545, allocations: 11.79 MB / 0.5899 GB, free: 1.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/0.4575, allocations: 3.322 MB / 0.5932 GB, free: 14.12 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008103/0.4583, allocations: 304.4 kB / 0.5935 GB, free: 13.82 MB / 474.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4583, allocations: 4 kB / 0.5935 GB, free: 13.82 MB / 474.7 MB Notification: Performance of Templates: time 0.2091/0.6674, allocations: 115.2 MB / 0.7059 GB, free: 109.3 MB / 490.7 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: 9.07322237920016]