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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 110 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 56.3 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1164, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004953/0.1214, allocations: 2.723 MB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.1236, allocations: 1.107 MB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.1238, allocations: 4 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.124, allocations: 67.38 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006617/0.1247, allocations: 187.4 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.1252, allocations: 247.5 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.1258, allocations: 0.643 MB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1261, allocations: 123.4 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003455/0.1264, allocations: 287.2 kB / 356.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004715/0.1269, allocations: 350.9 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.807e-05/0.127, allocations: 52 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.1272, allocations: 139.9 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.1275, allocations: 151.5 kB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003135/0.1278, allocations: 250.8 kB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008084/0.1286, allocations: 0.6425 MB / 358.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.1286, allocations: 4 kB / 358.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1286, allocations: 0 / 358.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1286, allocations: 0 / 358.4 MB, free: 12.73 MB / 302.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.001569/0.1302, allocations: 0.7953 MB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1303, allocations: 11.89 kB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.1306, allocations: 68.36 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006116/0.1312, allocations: 362.5 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.1314, allocations: 92.95 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.1314, allocations: 44.38 kB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.1325, allocations: 0.5605 MB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1325, allocations: 3.906 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.1326, allocations: 20 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.1326, allocations: 15.98 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.1339, allocations: 0.6363 MB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.1363, allocations: 1.279 MB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.1374, allocations: 0.5498 MB / 362.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005987/0.138, allocations: 318.4 kB / 363.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.717e-05/0.1381, allocations: 16.48 kB / 363.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1381, allocations: 39.12 kB / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 1.964e-06/0.1381, allocations: 0 / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006521/0.1447, allocations: 2.864 MB / 366.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1447, allocations: 89.61 kB / 366.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.1451, allocations: 342.9 kB / 366.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-05/0.1452, allocations: 45.69 kB / 366.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.789e-05/0.1453, allocations: 157.6 kB / 366.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1455, allocations: 228.8 kB / 366.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/0.1457, allocations: 122.2 kB / 367 MB, free: 3.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1458, allocations: 346.8 kB / 367.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005712/0.1464, allocations: 285.2 kB / 367.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006291/0.147, allocations: 358.4 kB / 368 MB, free: 2.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009992/0.148, allocations: 0.5265 MB / 368.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1481, allocations: 0 / 368.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001647/0.1497, allocations: 0.8889 MB / 369.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1497, allocations: 11.94 kB / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1498, allocations: 0 / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.1508, allocations: 471.3 kB / 369.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.1512, allocations: 87.88 kB / 370 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1435/0.2947, allocations: 1.069 MB / 371.1 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.2953, allocations: 56.59 kB / 371.1 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.176e-05/0.2954, allocations: 27.56 kB / 371.1 MB, free: 25.42 MB / 302.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.0002272/0.2956, allocations: 185.3 kB / 371.3 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.977e-05/0.2957, allocations: 41.23 kB / 371.4 MB, free: 25.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.2958, allocations: 67.59 kB / 371.4 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.2959, allocations: 6.844 kB / 371.4 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2959, allocations: 1.188 kB / 371.4 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.2959, allocations: 4.156 kB / 371.4 MB, free: 25.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/0.2989, allocations: 1.76 MB / 373.2 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2989, allocations: 1.219 kB / 373.2 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.2993, allocations: 78.92 kB / 373.3 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009438/0.3002, allocations: 452.1 kB / 373.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.963e-05/0.3003, allocations: 22.36 kB / 373.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.3013, allocations: 1.037 MB / 374.8 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3013, allocations: 4.031 kB / 374.8 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.3036, allocations: 1.302 MB / 376.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.3038, allocations: 175 kB / 376.3 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.396e-05/0.3039, allocations: 20.62 kB / 376.3 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/0.3043, allocations: 51.55 kB / 376.3 MB, free: 23.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.3045, allocations: 85.25 kB / 376.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.3045, allocations: 29.33 kB / 376.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.3048, allocations: 242.9 kB / 376.7 MB, free: 23.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3048, allocations: 0 / 376.7 MB, free: 23.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004679/0.3053, allocations: 144.7 kB / 376.8 MB, free: 23.25 MB / 302.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.0002093/0.3055, allocations: 150.8 kB / 377 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.3069, allocations: 0.7166 MB / 377.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3069, allocations: 3.844 kB / 377.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007559/0.3077, allocations: 397.2 kB / 378.1 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.3082, allocations: 54.05 kB / 378.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.3103, allocations: 1.111 MB / 379.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.3106, allocations: 0.8179 MB / 380 MB, free: 21.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.3108, allocations: 63.72 kB / 380.1 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.3109, allocations: 42.69 kB / 380.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3109, allocations: 0 / 380.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of Templates: time 0.01403/0.3249, allocations: 9.941 MB / 390.1 MB, free: 17.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,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.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi