Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001277/0.001277, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001414/0.001414, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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.438/1.438, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 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.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 48.06 kB / 379 MB, free: 2.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2172, allocations: 53.37 MB / 432.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004254/0.2215, allocations: 2.673 MB / 435 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.2238, allocations: 1.228 MB / 436.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.2239, allocations: 11.94 kB / 436.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.2242, allocations: 83.28 kB / 436.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005662/0.2248, allocations: 238.8 kB / 436.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005373/0.2253, allocations: 251.5 kB / 436.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007244/0.2261, allocations: 0.7055 MB / 437.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.2263, allocations: 91.91 kB / 437.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004553/0.2267, allocations: 335.1 kB / 437.9 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004731/0.2272, allocations: 398.8 kB / 438.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.2273, allocations: 56 kB / 438.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.2276, allocations: 148 kB / 438.5 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.2278, allocations: 159.5 kB / 438.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.228, allocations: 235 kB / 438.9 MB, free: 276 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008407/0.2288, allocations: 0.7258 MB / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2288, allocations: 0 / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.609e-06/0.2288, allocations: 3.984 kB / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.2289, allocations: 0 / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001771/0.2306, allocations: 0.7817 MB / 440.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2307, allocations: 12.03 kB / 440.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004726/0.2311, allocations: 72.62 kB / 440.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006871/0.2318, allocations: 316.6 kB / 440.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.232, allocations: 152.4 kB / 440.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.2321, allocations: 40.33 kB / 441 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.2334, allocations: 0.5935 MB / 441.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.2334, allocations: 0 / 441.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.2334, allocations: 16 kB / 441.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.2335, allocations: 12 kB / 441.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.2349, allocations: 0.5972 MB / 442.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002556/0.2374, allocations: 1.06 MB / 443.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2387, allocations: 0.49 MB / 443.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000661/0.2393, allocations: 284.8 kB / 444 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.2394, allocations: 8.5 kB / 444 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.2394, allocations: 43 kB / 444.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.385e-06/0.2394, allocations: 0 / 444.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007323/0.2467, allocations: 2.426 MB / 446.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.2468, allocations: 93.7 kB / 446.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004509/0.2473, allocations: 333.7 kB / 446.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.019e-05/0.2473, allocations: 41.69 kB / 447 MB, free: 7.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.2475, allocations: 169.7 kB / 447.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.2477, allocations: 245.9 kB / 447.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002447/0.2479, allocations: 126.2 kB / 447.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2481, allocations: 350.8 kB / 447.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006618/0.2488, allocations: 265.2 kB / 448.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/0.2495, allocations: 368.2 kB / 448.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.2506, allocations: 491.5 kB / 448.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2506, allocations: 0 / 448.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002003/0.2527, allocations: 0.8142 MB / 449.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.2527, allocations: 11.92 kB / 449.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2527, allocations: 0 / 449.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.2539, allocations: 440.4 kB / 450.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004355/0.2543, allocations: 91.81 kB / 450.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.2557, allocations: 1.023 MB / 451.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.2562, allocations: 59.95 kB / 451.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.139e-05/0.2563, allocations: 27.98 kB / 451.4 MB, free: 3.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002738/0.2566, allocations: 177.7 kB / 451.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.2567, allocations: 39.83 kB / 451.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.2569, allocations: 71.73 kB / 451.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.2569, allocations: 11.94 kB / 451.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2569, allocations: 0 / 451.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.2569, allocations: 3.984 kB / 451.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.2603, allocations: 1.505 MB / 453.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2603, allocations: 0 / 453.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.2607, allocations: 83.88 kB / 453.3 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.2618, allocations: 408.6 kB / 453.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.2618, allocations: 27.97 kB / 453.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.2632, allocations: 0.9758 MB / 454.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2632, allocations: 0 / 454.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.2659, allocations: 1.212 MB / 455.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002835/0.2662, allocations: 107.7 kB / 456 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.2663, allocations: 20 kB / 456 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.2667, allocations: 47.94 kB / 456.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.267, allocations: 92.47 kB / 456.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.355e-05/0.267, allocations: 31.92 kB / 456.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003133/0.2673, allocations: 233.2 kB / 456.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2673, allocations: 4.062 kB / 456.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005532/0.2679, allocations: 147.9 kB / 456.6 MB, free: 14.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00153/0.2694, allocations: 423.1 kB / 457 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.2711, allocations: 0.639 MB / 457.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2711, allocations: 0 / 457.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009331/0.272, allocations: 348.6 kB / 458 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005564/0.2726, allocations: 64.53 kB / 458 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.2753, allocations: 1.138 MB / 459.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.2755, allocations: 226 kB / 459.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.2758, allocations: 79.28 kB / 459.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.276, allocations: 59.39 kB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.276, allocations: 3.938 kB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of Templates: time 0.01645/0.2924, allocations: 9.45 MB / 469 MB, free: 1.902 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.ratio,gear.smoothness,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.691620647005038]