Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009655/0.0009655, allocations: 81.91 kB / 21.43 MB, free: 3.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004604/0.004604, allocations: 162.7 kB / 24.82 MB, free: 9.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9735/0.9735, allocations: 177 MB / 205.1 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.851e-05, allocations: 2.312 kB / 273.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009481/0.009499, allocations: 12.7 MB / 286 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1166/0.1261, allocations: 4.456 MB / 290.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.1281, allocations: 109.8 kB / 290.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004915/0.133, allocations: 4.422 MB / 295 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004044/0.1371, allocations: 2.277 MB / 297.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002458/0.1395, allocations: 1.036 MB / 298.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007342/0.1469, allocations: 6.877 MB / 305.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004111/0.151, allocations: 4.672 MB / 309.9 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004839/0.1558, allocations: 4.243 MB / 314.1 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.159, allocations: 3.118 MB / 317.2 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009178/0.1599, allocations: 484 kB / 317.7 MB, free: 2.648 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001795/0.1617, allocations: 1.299 MB / 319 MB, free: 1.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.1635, allocations: 2.7 MB / 321.7 MB, free: 14.79 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002166/0.1657, allocations: 1.719 MB / 323.4 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005557/0.1712, allocations: 5.849 MB / 329.3 MB, free: 7.648 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1712, allocations: 0 / 329.3 MB, free: 7.648 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1712, allocations: 0 / 329.3 MB, free: 7.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001531/0.1714, allocations: 2.906 kB / 329.3 MB, free: 7.648 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.007684/0.1791, allocations: 6.397 MB / 335.7 MB, free: 1.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1791, allocations: 11.98 kB / 335.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005822/0.1849, allocations: 2.235 MB / 337.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004528/0.1894, allocations: 2.846 MB / 340.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.1896, allocations: 301.3 kB / 341.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009477/0.1906, allocations: 423.9 kB / 341.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0083/0.1989, allocations: 6.363 MB / 347.8 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.199, allocations: 51.53 kB / 347.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.1993, allocations: 189.2 kB / 348.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001428/0.2007, allocations: 1.772 MB / 349.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005535/0.2063, allocations: 2.798 MB / 352.6 MB, free: 420 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03692/0.2432, allocations: 47.84 MB / 400.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0043/0.2475, allocations: 1.701 MB / 402.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000693/0.2482, allocations: 0.4975 MB / 402.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006235/0.2544, allocations: 4.379 MB / 407.1 MB, free: 8.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.2545, allocations: 50.39 kB / 407.1 MB, free: 8.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=142): time 4.037e-06/0.2545, allocations: 0 / 407.1 MB, free: 8.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=158): time 0.01333/0.2678, allocations: 5.955 MB / 413.1 MB, free: 2.391 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.851e-05/0.2679, allocations: 192.9 kB / 413.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.2714, allocations: 4.137 MB / 417.4 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.2715, allocations: 49.7 kB / 417.4 MB, free: 13.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001926/0.2734, allocations: 4.009 MB / 421.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005208/0.2739, allocations: 0.6864 MB / 422.1 MB, free: 9.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/0.2751, allocations: 1.446 MB / 423.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2752, allocations: 476.8 kB / 424.1 MB, free: 7.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000883/0.2761, allocations: 0.563 MB / 424.6 MB, free: 6.684 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1184/0.3945, allocations: 6.62 MB / 431.2 MB, free: 105.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005591/0.4001, allocations: 7.824 MB / 439.1 MB, free: 97.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002082/0.4003, allocations: 40.75 kB / 439.1 MB, free: 97.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.009172/0.4095, allocations: 5.188 MB / 444.3 MB, free: 96.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.333e-05/0.4095, allocations: 68.47 kB / 444.4 MB, free: 96.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/0.4097, allocations: 143.6 kB / 444.5 MB, free: 96.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009017/0.4106, allocations: 406.6 kB / 444.9 MB, free: 96.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002768/0.4134, allocations: 1.46 MB / 446.4 MB, free: 96.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.4158, allocations: 4.779 MB / 451.1 MB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003228/0.4191, allocations: 290 kB / 451.4 MB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003848/0.4194, allocations: 342.9 kB / 451.7 MB, free: 92.2 MB / 378.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.001316/0.4208, allocations: 0.7029 MB / 452.5 MB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004399/0.4212, allocations: 430.3 kB / 452.9 MB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.4225, allocations: 0.9769 MB / 453.8 MB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.4225, allocations: 24.55 kB / 453.9 MB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4225, allocations: 3.562 kB / 453.9 MB, free: 91.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.4225, allocations: 10.89 kB / 453.9 MB, free: 91.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005932/0.4284, allocations: 5.061 MB / 458.9 MB, free: 90.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.4284, allocations: 7.875 kB / 459 MB, free: 90.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.429, allocations: 248.1 kB / 459.2 MB, free: 90.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005007/0.4295, allocations: 203.9 kB / 459.4 MB, free: 90.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.76e-05/0.4296, allocations: 40.8 kB / 459.4 MB, free: 90.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/0.431, allocations: 3.869 MB / 463.3 MB, free: 87.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.431, allocations: 9.188 kB / 463.3 MB, free: 87.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.4329, allocations: 2.155 MB / 465.5 MB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005227/0.4334, allocations: 375.3 kB / 465.8 MB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002349/0.4336, allocations: 36.08 kB / 465.9 MB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006359/0.4343, allocations: 33.5 kB / 465.9 MB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.4344, allocations: 115 kB / 466 MB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.4345, allocations: 47.27 kB / 466.1 MB, free: 86.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001454/0.4359, allocations: 1.689 MB / 467.8 MB, free: 85.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4359, allocations: 0 / 467.8 MB, free: 85.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003818/0.4397, allocations: 1.138 MB / 468.9 MB, free: 85.19 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.0003611/0.4401, allocations: 191.3 kB / 469.1 MB, free: 85.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003528/0.4436, allocations: 3.017 MB / 472.1 MB, free: 82.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4436, allocations: 0 / 472.1 MB, free: 82.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008475/0.4445, allocations: 0.8095 MB / 472.9 MB, free: 81.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.4465, allocations: 0.4978 MB / 473.4 MB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.4579, allocations: 8.733 MB / 482.1 MB, free: 73.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.4591, allocations: 1.477 MB / 483.6 MB, free: 72.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001503/0.4606, allocations: 0.5378 MB / 484.1 MB, free: 71.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007345/0.4613, allocations: 0.6332 MB / 484.8 MB, free: 71.03 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4613, allocations: 0 / 484.8 MB, free: 71.03 MB / 378.7 MB Notification: Performance of Templates: time 0.04877/0.5101, allocations: 32.01 MB / 0.5047 GB, free: 39.73 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.9742266591638327]