Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00135/0.00135, allocations: 86.2 kB / 21.99 MB, free: 4.754 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.001441/0.001441, allocations: 157.8 kB / 25.24 MB, free: 2.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 158.6 MB / 187 MB, free: 6.324 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 59.86 kB / 299.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2063, allocations: 49.14 MB / 348.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004161/0.2104, allocations: 2.554 MB / 351.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.2127, allocations: 1.085 MB / 352.1 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.2129, allocations: 11.94 kB / 352.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002897/0.2132, allocations: 75.36 kB / 352.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006671/0.2138, allocations: 198.8 kB / 352.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.2144, allocations: 247.5 kB / 352.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000758/0.2152, allocations: 0.6431 MB / 353.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.2154, allocations: 83.77 kB / 353.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004343/0.2159, allocations: 307.1 kB / 353.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004813/0.2163, allocations: 322.9 kB / 354 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.504e-05/0.2164, allocations: 52 kB / 354.1 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002723/0.2167, allocations: 135.9 kB / 354.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.2169, allocations: 155.5 kB / 354.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002481/0.2172, allocations: 211.1 kB / 354.5 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008399/0.218, allocations: 0.6484 MB / 355.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.218, allocations: 0 / 355.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.218, allocations: 0 / 355.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.218, allocations: 4 kB / 355.2 MB, free: 8.801 MB / 318.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.001653/0.2197, allocations: 0.7312 MB / 355.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2197, allocations: 8.031 kB / 355.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.2201, allocations: 72.58 kB / 356 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.2207, allocations: 305.3 kB / 356.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.2209, allocations: 152.4 kB / 356.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.221, allocations: 44.27 kB / 356.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2221, allocations: 0.5935 MB / 357.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.2222, allocations: 0 / 357.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.2222, allocations: 16 kB / 357.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.2222, allocations: 8 kB / 357.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.2236, allocations: 0.6324 MB / 357.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.2261, allocations: 1.06 MB / 358.8 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.2272, allocations: 0.4977 MB / 359.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006482/0.2279, allocations: 294.4 kB / 359.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.2279, allocations: 8.438 kB / 359.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.228, allocations: 43 kB / 359.6 MB, free: 4.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.024e-06/0.228, allocations: 4 kB / 359.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.007094/0.2351, allocations: 2.556 MB / 362.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.2351, allocations: 85.77 kB / 362.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.2355, allocations: 309.8 kB / 362.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.2356, allocations: 49.64 kB / 362.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.2357, allocations: 165.6 kB / 362.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.2359, allocations: 242 kB / 363 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.2362, allocations: 122.3 kB / 363.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.2363, allocations: 346.8 kB / 363.5 MB, free: 256 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006497/0.237, allocations: 289.2 kB / 363.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007259/0.2377, allocations: 372.2 kB / 364.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.2389, allocations: 0.5308 MB / 364.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2389, allocations: 0 / 364.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001856/0.2407, allocations: 0.8657 MB / 365.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.2407, allocations: 4 kB / 365.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2408, allocations: 0 / 365.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.2419, allocations: 485.5 kB / 366 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.2423, allocations: 83.88 kB / 366.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001421/0.2437, allocations: 1.083 MB / 367.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.2442, allocations: 59.92 kB / 367.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.2442, allocations: 20 kB / 367.3 MB, free: 12.42 MB / 334.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.0002468/0.2445, allocations: 185.8 kB / 367.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/0.2446, allocations: 39.77 kB / 367.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.2448, allocations: 59.73 kB / 367.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.2448, allocations: 8 kB / 367.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2448, allocations: 0 / 367.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2448, allocations: 3.984 kB / 367.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003335/0.2481, allocations: 1.575 MB / 369.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2481, allocations: 4.031 kB / 369.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003991/0.2485, allocations: 79.89 kB / 369.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.2495, allocations: 436.5 kB / 369.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.2496, allocations: 23.97 kB / 369.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.2509, allocations: 1.052 MB / 370.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2509, allocations: 4.031 kB / 370.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/0.2536, allocations: 1.286 MB / 372 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.2538, allocations: 95.7 kB / 372.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.588e-05/0.2539, allocations: 20 kB / 372.1 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.2544, allocations: 56 kB / 372.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.2546, allocations: 88.42 kB / 372.2 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/0.2546, allocations: 27.98 kB / 372.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000296/0.2549, allocations: 225.2 kB / 372.5 MB, free: 7.066 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2549, allocations: 0 / 372.5 MB, free: 7.066 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.2554, allocations: 143.9 kB / 372.6 MB, free: 6.926 MB / 334.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.0002449/0.2557, allocations: 155 kB / 372.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.2573, allocations: 0.6586 MB / 373.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2573, allocations: 0 / 373.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.2582, allocations: 368.5 kB / 373.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004844/0.2586, allocations: 60.52 kB / 373.9 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.2613, allocations: 1.115 MB / 375 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.2615, allocations: 218 kB / 375.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.2617, allocations: 71.19 kB / 375.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.2619, allocations: 40.48 kB / 375.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2619, allocations: 0 / 375.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of Templates: time 0.01531/0.2772, allocations: 8.414 MB / 383.7 MB, free: 11.76 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,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.470340420026332]