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.0009273/0.0009273, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009012/0.0009012, allocations: 174.3 kB / 24.92 MB, free: 8.762 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 0.8809/0.8809, allocations: 177.1 MB / 205.3 MB, free: 5.117 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 1.253e-06/1.253e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.619e-05, allocations: 2.312 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01205/0.01207, allocations: 12.76 MB / 286.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1072/0.1192, allocations: 4.632 MB / 290.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.121, allocations: 111.1 kB / 291 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004288/0.1253, allocations: 4.407 MB / 295.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.1284, allocations: 2.257 MB / 297.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.1295, allocations: 1.039 MB / 298.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004755/0.1342, allocations: 6.85 MB / 305.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00262/0.1369, allocations: 4.552 MB / 310.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003071/0.1399, allocations: 4.142 MB / 314.2 MB, free: 6.285 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001955/0.1419, allocations: 2.985 MB / 317.2 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003604/0.1423, allocations: 484 kB / 317.7 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.1433, allocations: 1.344 MB / 319 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.1445, allocations: 2.694 MB / 321.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001229/0.1458, allocations: 1.718 MB / 323.5 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003671/0.1494, allocations: 5.848 MB / 329.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1494, allocations: 0 / 329.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1494, allocations: 0 / 329.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001038/0.1496, allocations: 0 / 329.3 MB, free: 7.992 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.005103/0.1547, allocations: 5.73 MB / 335 MB, free: 2.652 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.1547, allocations: 12.03 kB / 335 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003171/0.1579, allocations: 1.43 MB / 336.5 MB, free: 1.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002717/0.1606, allocations: 2.643 MB / 339.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.1607, allocations: 300 kB / 339.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004321/0.1611, allocations: 429.1 kB / 339.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005281/0.1664, allocations: 5.786 MB / 345.6 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.313e-05/0.1665, allocations: 51.53 kB / 345.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/0.1668, allocations: 190.8 kB / 345.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00128/0.168, allocations: 1.77 MB / 347.6 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003841/0.1719, allocations: 2.861 MB / 350.5 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02031/0.1922, allocations: 34.61 MB / 385.1 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003486/0.1957, allocations: 1.737 MB / 386.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.1961, allocations: 413.2 kB / 387.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004511/0.2006, allocations: 4.098 MB / 391.3 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.2007, allocations: 55.48 kB / 391.4 MB, free: 9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=142): time 2.495e-06/0.2007, allocations: 0 / 391.4 MB, free: 9 MB / 346.7 MB Notification: Performance of matching and sorting (n=158): time 0.01122/0.2119, allocations: 5.344 MB / 396.7 MB, free: 3.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/0.212, allocations: 200.9 kB / 396.9 MB, free: 3.379 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002617/0.2146, allocations: 3.708 MB / 400.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.2146, allocations: 53.64 kB / 400.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.216, allocations: 3.484 MB / 404.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003162/0.2163, allocations: 0.6629 MB / 404.8 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008623/0.2172, allocations: 1.243 MB / 406.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/0.2172, allocations: 301.1 kB / 406.4 MB, free: 9.828 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.2183, allocations: 0.7597 MB / 407.1 MB, free: 9.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/0.2216, allocations: 4.699 MB / 411.8 MB, free: 2.344 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003793/0.2254, allocations: 5.985 MB / 417.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.458e-05/0.2255, allocations: 40 kB / 417.9 MB, free: 10.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004421/0.2299, allocations: 4.418 MB / 422.3 MB, free: 5.859 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.2299, allocations: 68 kB / 422.3 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.532e-05/0.23, allocations: 140 kB / 422.5 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006057/0.2306, allocations: 401.6 kB / 422.9 MB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.2329, allocations: 1.536 MB / 424.4 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/0.2355, allocations: 3.571 MB / 428 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.2372, allocations: 295.7 kB / 428.3 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/0.2375, allocations: 343.9 kB / 428.6 MB, free: 15.35 MB / 394.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.0009179/0.2384, allocations: 0.6534 MB / 429.3 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.2387, allocations: 243.7 kB / 429.5 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009743/0.2397, allocations: 0.8679 MB / 430.4 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.2397, allocations: 16 kB / 430.4 MB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2397, allocations: 4 kB / 430.4 MB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.2397, allocations: 11.97 kB / 430.4 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.2442, allocations: 4.217 MB / 434.6 MB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.2442, allocations: 8 kB / 434.6 MB, free: 9.172 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.2448, allocations: 266.8 kB / 434.9 MB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006607/0.2455, allocations: 431.1 kB / 435.3 MB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.916e-05/0.2455, allocations: 31.98 kB / 435.3 MB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.2472, allocations: 2.78 MB / 438.1 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2472, allocations: 8 kB / 438.1 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.2488, allocations: 1.763 MB / 439.9 MB, free: 3.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.2491, allocations: 373.2 kB / 440.2 MB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.2493, allocations: 31.98 kB / 440.3 MB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005886/0.2499, allocations: 36.11 kB / 440.3 MB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.25, allocations: 112.6 kB / 440.4 MB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.688e-05/0.2501, allocations: 39.98 kB / 440.5 MB, free: 3.016 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001655/0.2517, allocations: 1.397 MB / 441.9 MB, free: 1.605 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2517, allocations: 0 / 441.9 MB, free: 1.605 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003846/0.2556, allocations: 1.14 MB / 443 MB, free: 476 kB / 394.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.0003363/0.2559, allocations: 164.1 kB / 443.2 MB, free: 304 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.09506/0.351, allocations: 2.699 MB / 445.9 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000199/0.3512, allocations: 104.8 kB / 446 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007563/0.3519, allocations: 0.6488 MB / 446.6 MB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.3543, allocations: 0.7327 MB / 447.3 MB, free: 127.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.3647, allocations: 8.612 MB / 455.9 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001309/0.366, allocations: 1.467 MB / 457.4 MB, free: 124 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001443/0.3674, allocations: 0.5345 MB / 457.9 MB, free: 123.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007383/0.3682, allocations: 0.596 MB / 458.5 MB, free: 123.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3682, allocations: 0 / 458.5 MB, free: 123.9 MB / 394.7 MB Notification: Performance of Templates: time 0.05264/0.4208, allocations: 31.89 MB / 490.4 MB, free: 101.2 MB / 394.7 MB " [Timeout remaining time 660] 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 -s gbode -gbm=radauIIA3 -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: 3.4319413802586496]