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.001917/0.001917, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002047/0.002047, allocations: 161.3 kB / 24.27 MB, free: 152 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.537/1.537, allocations: 177.1 MB / 204.6 MB, free: 5.613 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 1.402e-06/1.402e-06, allocations: 0 / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.581e-05, allocations: 2.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0183/0.01832, allocations: 13.05 MB / 285.4 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.02986, allocations: 4.466 MB / 289.8 MB, free: 272 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002622/0.03248, allocations: 107.4 kB / 289.9 MB, free: 164 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1336/0.1661, allocations: 4.486 MB / 294.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005732/0.1718, allocations: 2.265 MB / 296.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.1738, allocations: 1.036 MB / 297.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007892/0.1817, allocations: 6.875 MB / 304.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004396/0.1861, allocations: 4.674 MB / 309.3 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004224/0.1903, allocations: 3.251 MB / 312.5 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/0.1938, allocations: 3.151 MB / 315.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007135/0.1945, allocations: 480 kB / 316.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002065/0.1966, allocations: 1.292 MB / 317.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.1981, allocations: 2.709 MB / 320.1 MB, free: 52 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002858/0.201, allocations: 1.709 MB / 321.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.2148, allocations: 9.221 MB / 331.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.2148, allocations: 0 / 331.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2148, allocations: 7.938 kB / 331.1 MB, free: 5.531 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003115/0.2151, allocations: 0 / 331.1 MB, free: 5.531 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.01813/0.2332, allocations: 7.183 MB / 338.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2333, allocations: 8.031 kB / 338.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01406/0.2473, allocations: 3.227 MB / 341.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009678/0.257, allocations: 3.421 MB / 344.9 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.2573, allocations: 304.7 kB / 345.2 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.2583, allocations: 425.4 kB / 345.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01738/0.2757, allocations: 7.568 MB / 353.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.2759, allocations: 56.55 kB / 353.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005343/0.2764, allocations: 187.4 kB / 353.4 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003956/0.2804, allocations: 2.021 MB / 355.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.2945, allocations: 4.133 MB / 359.6 MB, free: 8.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07516/0.3697, allocations: 53.3 MB / 412.9 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009828/0.3795, allocations: 2.403 MB / 415.3 MB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.3814, allocations: 0.8428 MB / 416.1 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01622/0.3976, allocations: 6.392 MB / 422.5 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.266e-05/0.3976, allocations: 50.39 kB / 422.6 MB, free: 8.184 MB / 378.7 MB Notification: Performance of pre-optimization done (n=171): time 4.549e-06/0.3976, allocations: 0 / 422.6 MB, free: 8.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=197): time 0.1679/0.5655, allocations: 14.68 MB / 437.3 MB, free: 113.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.5656, allocations: 201.4 kB / 437.5 MB, free: 112.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006768/0.5723, allocations: 5.087 MB / 442.5 MB, free: 112.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003019/0.5726, allocations: 51.77 kB / 442.6 MB, free: 112.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00232/0.575, allocations: 4.121 MB / 446.7 MB, free: 110.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008706/0.5758, allocations: 0.8682 MB / 447.6 MB, free: 109.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00183/0.5777, allocations: 1.741 MB / 449.3 MB, free: 108.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.49e-05/0.5777, allocations: 483.9 kB / 449.8 MB, free: 108.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.5796, allocations: 0.8778 MB / 450.7 MB, free: 108.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003276/0.5828, allocations: 6.845 MB / 457.5 MB, free: 100.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005776/0.5886, allocations: 8.507 MB / 466 MB, free: 91.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/0.5887, allocations: 38 kB / 466.1 MB, free: 91.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01196/0.6007, allocations: 6.681 MB / 472.7 MB, free: 89.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/0.6008, allocations: 65.75 kB / 472.8 MB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.6009, allocations: 135.9 kB / 472.9 MB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004397/0.6053, allocations: 1.159 MB / 474.1 MB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004439/0.6097, allocations: 1.477 MB / 475.6 MB, free: 87.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008337/0.618, allocations: 6.907 MB / 482.5 MB, free: 80.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005295/0.6233, allocations: 419.4 kB / 482.9 MB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007772/0.6241, allocations: 388 kB / 483.3 MB, free: 80.03 MB / 378.7 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.002062/0.6262, allocations: 0.8139 MB / 484.1 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009233/0.6271, allocations: 437.4 kB / 484.5 MB, free: 78.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005798/0.6329, allocations: 2.363 MB / 486.9 MB, free: 76.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.483e-05/0.6329, allocations: 23.94 kB / 486.9 MB, free: 76.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.6329, allocations: 8 kB / 486.9 MB, free: 76.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.633, allocations: 7.969 kB / 486.9 MB, free: 76.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01532/0.6483, allocations: 7.779 MB / 494.7 MB, free: 68.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.6483, allocations: 0 / 494.7 MB, free: 68.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/0.6497, allocations: 299.6 kB / 495 MB, free: 68.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004059/0.6537, allocations: 0.908 MB / 495.9 MB, free: 67.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001832/0.6539, allocations: 32 kB / 495.9 MB, free: 67.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007134/0.661, allocations: 6.103 MB / 0.4903 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.661, allocations: 0 / 0.4903 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007233/0.6683, allocations: 3.605 MB / 0.4938 GB, free: 57.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.6696, allocations: 389.2 kB / 0.4942 GB, free: 57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005842/0.6702, allocations: 31.94 kB / 0.4942 GB, free: 56.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.672, allocations: 175.7 kB / 0.4943 GB, free: 56.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003484/0.6724, allocations: 129 kB / 0.4945 GB, free: 56.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.6725, allocations: 48 kB / 0.4945 GB, free: 56.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002728/0.6752, allocations: 2.132 MB / 0.4966 GB, free: 54.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6752, allocations: 0 / 0.4966 GB, free: 54.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005686/0.6809, allocations: 1.336 MB / 0.4979 GB, free: 53.15 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 (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.0004659/0.6814, allocations: 182.9 kB / 0.4981 GB, free: 52.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00672/0.6881, allocations: 4.117 MB / 0.5021 GB, free: 48.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6881, allocations: 4 kB / 0.5021 GB, free: 48.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.6901, allocations: 1.286 MB / 0.5034 GB, free: 47.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/0.6932, allocations: 0.4947 MB / 0.5038 GB, free: 47.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.7066, allocations: 9.216 MB / 0.5128 GB, free: 37.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002933/0.7095, allocations: 3.016 MB / 0.5158 GB, free: 34.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003409/0.7129, allocations: 1.689 MB / 0.5174 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007214/0.7137, allocations: 256.4 kB / 0.5177 GB, free: 32.73 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7137, allocations: 0 / 0.5177 GB, free: 32.73 MB / 378.7 MB Notification: Performance of Templates: time 0.06968/0.7833, allocations: 40.26 MB / 0.557 GB, free: 9.059 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","/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.78980428003706]