Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 195.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 51.91 kB / 370.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2422, allocations: 52.18 MB / 423.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004422/0.2466, allocations: 2.563 MB / 425.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.2488, allocations: 1.042 MB / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.249, allocations: 4 kB / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002586/0.2492, allocations: 75.36 kB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000629/0.2499, allocations: 198.4 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.2504, allocations: 243.6 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007059/0.2511, allocations: 0.6508 MB / 427.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.2513, allocations: 75.94 kB / 427.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.2517, allocations: 299.1 kB / 428.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.2522, allocations: 334.8 kB / 428.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.2523, allocations: 52 kB / 428.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.2526, allocations: 135.9 kB / 428.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.2528, allocations: 147.6 kB / 428.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.253, allocations: 211.1 kB / 429 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007928/0.2538, allocations: 0.6522 MB / 429.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2538, allocations: 3.938 kB / 429.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2538, allocations: 4 kB / 429.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2538, allocations: 0 / 429.7 MB, free: 7.828 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001688/0.2555, allocations: 0.7312 MB / 430.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2555, allocations: 8.031 kB / 430.4 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003474/0.2559, allocations: 68.64 kB / 430.5 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006917/0.2566, allocations: 308.8 kB / 430.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.2568, allocations: 156.3 kB / 431 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.413e-05/0.2569, allocations: 36.38 kB / 431 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.258, allocations: 0.5896 MB / 431.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.258, allocations: 3.984 kB / 431.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.2581, allocations: 16 kB / 431.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.2581, allocations: 8 kB / 431.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.2595, allocations: 0.6324 MB / 432.3 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.262, allocations: 1.056 MB / 433.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.2632, allocations: 0.5085 MB / 433.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.2638, allocations: 294.3 kB / 434.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.152e-05/0.2639, allocations: 16.5 kB / 434.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.2639, allocations: 39 kB / 434.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.736e-06/0.2639, allocations: 0 / 434.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.007061/0.271, allocations: 2.556 MB / 436.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.271, allocations: 89.7 kB / 436.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004257/0.2715, allocations: 305.8 kB / 437.1 MB, free: 220 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.665e-05/0.2715, allocations: 49.7 kB / 437.1 MB, free: 164 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.2717, allocations: 165.9 kB / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.2719, allocations: 245.9 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.2722, allocations: 114.3 kB / 437.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.2723, allocations: 346.8 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006532/0.273, allocations: 289.2 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.2737, allocations: 376.2 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2749, allocations: 0.5346 MB / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2749, allocations: 0 / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001862/0.2767, allocations: 0.8618 MB / 440 MB, free: 13.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2767, allocations: 4 kB / 440.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.2768, allocations: 4 kB / 440.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.2779, allocations: 479 kB / 440.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.2783, allocations: 83.88 kB / 440.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.2797, allocations: 1.092 MB / 441.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.2802, allocations: 60 kB / 441.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.2802, allocations: 23.98 kB / 441.8 MB, free: 11.45 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002706/0.2805, allocations: 177.7 kB / 442 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.2806, allocations: 39.77 kB / 442 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001633/0.2808, allocations: 63.73 kB / 442.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.2808, allocations: 8 kB / 442.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.2808, allocations: 0 / 442.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.2808, allocations: 3.984 kB / 442.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.2842, allocations: 1.575 MB / 443.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2842, allocations: 0 / 443.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003827/0.2846, allocations: 83.94 kB / 443.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.2856, allocations: 440.5 kB / 444.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.338e-05/0.2857, allocations: 15.98 kB / 444.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.2871, allocations: 1.044 MB / 445.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.2871, allocations: 8.094 kB / 445.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00268/0.2898, allocations: 1.286 MB / 446.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.2901, allocations: 103.7 kB / 446.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2902, allocations: 31.92 kB / 446.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.2906, allocations: 51.94 kB / 446.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.2909, allocations: 84.48 kB / 446.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.2909, allocations: 27.98 kB / 446.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003204/0.2913, allocations: 221.2 kB / 447 MB, free: 6.098 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2913, allocations: 0 / 447 MB, free: 6.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006307/0.2919, allocations: 143.9 kB / 447.2 MB, free: 5.957 MB / 350.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003526/0.2922, allocations: 159.6 kB / 447.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.2939, allocations: 0.6664 MB / 448 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2939, allocations: 3.938 kB / 448 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008731/0.2948, allocations: 360.8 kB / 448.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.2953, allocations: 52.41 kB / 448.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.298, allocations: 1.115 MB / 449.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.2983, allocations: 218 kB / 449.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.2985, allocations: 63.25 kB / 449.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.2987, allocations: 47.42 kB / 449.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2987, allocations: 0 / 449.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of Templates: time 0.01657/0.3152, allocations: 8.826 MB / 458.6 MB, free: 10.47 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,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.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.8426275830715895]