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.00209/0.00209, allocations: 92.31 kB / 20.96 MB, free: 3.469 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.002635/0.002635, allocations: 157.7 kB / 24.26 MB, free: 176 kB / 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.551/1.551, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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 2.585e-06/2.585e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.121e-05/3.379e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01765/0.01769, allocations: 11.75 MB / 284.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.02851, allocations: 4.368 MB / 288.4 MB, free: 1.637 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.03077, allocations: 107.4 kB / 288.5 MB, free: 1.531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1286/0.1594, allocations: 4.339 MB / 292.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005904/0.1653, allocations: 2.269 MB / 295.1 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1674, allocations: 1.031 MB / 296.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007643/0.175, allocations: 6.874 MB / 303 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00483/0.1798, allocations: 4.663 MB / 307.7 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004441/0.1843, allocations: 3.229 MB / 310.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003586/0.1879, allocations: 3.045 MB / 314 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007555/0.1886, allocations: 488 kB / 314.5 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.1905, allocations: 1.304 MB / 315.8 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.1921, allocations: 2.687 MB / 318.4 MB, free: 1.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001978/0.194, allocations: 1.715 MB / 320.2 MB, free: 36 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.2067, allocations: 9.234 MB / 329.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.2067, allocations: 0 / 329.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2067, allocations: 0 / 329.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.207, allocations: 4 kB / 329.4 MB, free: 7.133 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.01739/0.2244, allocations: 6.244 MB / 335.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.2245, allocations: 12.03 kB / 335.7 MB, free: 0.918 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.2383, allocations: 3.31 MB / 339 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.2485, allocations: 3.744 MB / 342.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003205/0.2488, allocations: 298.3 kB / 343 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001552/0.2504, allocations: 433.9 kB / 343.4 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/0.276, allocations: 11.7 MB / 355.1 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002833/0.2763, allocations: 57.38 kB / 355.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001277/0.2776, allocations: 184.2 kB / 355.4 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004199/0.2818, allocations: 2.034 MB / 357.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02347/0.3053, allocations: 9.994 MB / 367.4 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07226/0.3775, allocations: 42.19 MB / 409.6 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.3902, allocations: 3.809 MB / 413.4 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004194/0.3944, allocations: 2.345 MB / 415.7 MB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/0.4152, allocations: 9.245 MB / 425 MB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.886e-05/0.4152, allocations: 51.55 kB / 425 MB, free: 6.672 MB / 378.7 MB Notification: Performance of pre-optimization done (n=172): time 5.641e-06/0.4152, allocations: 4 kB / 425 MB, free: 6.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.2018/0.617, allocations: 28.31 MB / 453.3 MB, free: 115.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/0.6171, allocations: 204.8 kB / 453.5 MB, free: 115.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004895/0.622, allocations: 4.582 MB / 458.1 MB, free: 112.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003772/0.6223, allocations: 51.34 kB / 458.2 MB, free: 112.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.6237, allocations: 3.668 MB / 461.8 MB, free: 109.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007035/0.6244, allocations: 0.7895 MB / 462.6 MB, free: 108.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001351/0.6257, allocations: 1.322 MB / 464 MB, free: 107.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.6258, allocations: 301.1 kB / 464.2 MB, free: 106.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002844/0.6286, allocations: 2.64 MB / 466.9 MB, free: 104.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003967/0.6326, allocations: 6.491 MB / 473.4 MB, free: 95.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007761/0.6404, allocations: 9.72 MB / 483.1 MB, free: 84.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.577e-05/0.6404, allocations: 36 kB / 483.1 MB, free: 84.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.01709/0.6575, allocations: 11.2 MB / 494.3 MB, free: 73.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.313e-05/0.6576, allocations: 64 kB / 494.4 MB, free: 72.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.6577, allocations: 132 kB / 494.5 MB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007482/0.6652, allocations: 2.735 MB / 497.3 MB, free: 70.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004661/0.6699, allocations: 1.585 MB / 498.8 MB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.6834, allocations: 12.49 MB / 0.4993 GB, free: 55.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005149/0.6886, allocations: 455.3 kB / 0.4998 GB, free: 55.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007467/0.6893, allocations: 384 kB / 0.5001 GB, free: 54.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * 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 (786): * Single equations (assignments): 781 * 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,33,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003188/0.6925, allocations: 2.457 MB / 0.5025 GB, free: 52.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009528/0.6935, allocations: 446.5 kB / 0.503 GB, free: 52.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009247/0.7027, allocations: 5.39 MB / 0.5082 GB, free: 46.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-05/0.7028, allocations: 22.94 kB / 0.5083 GB, free: 46.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.7028, allocations: 11.94 kB / 0.5083 GB, free: 46.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/0.7028, allocations: 11.97 kB / 0.5083 GB, free: 46.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/0.7201, allocations: 10.45 MB / 0.5185 GB, free: 36.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.7202, allocations: 4.031 kB / 0.5185 GB, free: 36.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/0.722, allocations: 403.4 kB / 0.5189 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007202/0.7292, allocations: 2.479 MB / 0.5213 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003285/0.7295, allocations: 32 kB / 0.5213 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/0.7424, allocations: 11.67 MB / 0.5327 GB, free: 21.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.7424, allocations: 3.938 kB / 0.5327 GB, free: 21.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/0.7552, allocations: 8.564 MB / 0.5411 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/0.7566, allocations: 397.3 kB / 0.5415 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009209/0.7575, allocations: 32 kB / 0.5415 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/0.76, allocations: 215.5 kB / 0.5417 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006838/0.7607, allocations: 129 kB / 0.5418 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/0.7609, allocations: 55.98 kB / 0.5419 GB, free: 12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003821/0.7647, allocations: 2.725 MB / 0.5445 GB, free: 9.262 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7647, allocations: 4 kB / 0.5445 GB, free: 9.258 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006487/0.7712, allocations: 1.371 MB / 0.5459 GB, free: 7.887 MB / 378.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 (146): * Single equations (assignments): 141 * 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,29,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.0005665/0.7718, allocations: 186.3 kB / 0.5461 GB, free: 7.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009616/0.7814, allocations: 6.341 MB / 0.5523 GB, free: 1.359 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.7814, allocations: 0 / 0.5523 GB, free: 1.359 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004025/0.7854, allocations: 2.272 MB / 0.5545 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003512/0.7889, allocations: 0.511 MB / 0.555 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1437/0.9327, allocations: 11.49 MB / 0.5662 GB, free: 119 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004911/0.9376, allocations: 3.298 MB / 0.5694 GB, free: 118.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004078/0.9416, allocations: 1.943 MB / 0.5713 GB, free: 118.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008021/0.9424, allocations: 258.3 kB / 0.5716 GB, free: 118.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.024e-06/0.9424, allocations: 0 / 0.5716 GB, free: 118.7 MB / 394.7 MB Notification: Performance of Templates: time 0.06745/1.01, allocations: 44.85 MB / 0.6154 GB, free: 87.27 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=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: 6.920377427013591]