Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008461/0.0008461, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002566, allocations: 4 kB / 307.7 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 51.52 MB / 359.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00329/0.1037, allocations: 2.524 MB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.106, allocations: 1.256 MB / 363 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003014/0.1064, allocations: 4 kB / 363 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.1067, allocations: 75.53 kB / 363.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006753/0.1074, allocations: 190.1 kB / 363.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.108, allocations: 223.6 kB / 363.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008409/0.1089, allocations: 0.6704 MB / 364.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/0.1091, allocations: 116 kB / 364.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005908/0.1097, allocations: 291 kB / 364.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005741/0.1103, allocations: 354.8 kB / 364.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.1105, allocations: 28 kB / 364.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003424/0.1108, allocations: 123.9 kB / 365.1 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.111, allocations: 131.6 kB / 365.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.1114, allocations: 272.4 kB / 365.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007571/0.1121, allocations: 0.666 MB / 366.1 MB, free: 6.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1121, allocations: 4 kB / 366.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1121, allocations: 0 / 366.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.1122, allocations: 0 / 366.1 MB, free: 6.375 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001514/0.1137, allocations: 0.7526 MB / 366.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1137, allocations: 12.03 kB / 366.9 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000425/0.1142, allocations: 84.34 kB / 367 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/0.1147, allocations: 366.3 kB / 367.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.1148, allocations: 96.95 kB / 367.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.881e-05/0.1149, allocations: 40.38 kB / 367.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.116, allocations: 0.5723 MB / 368 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.1161, allocations: 3.906 kB / 368 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.1161, allocations: 16 kB / 368.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1162, allocations: 12 kB / 368.1 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.1175, allocations: 0.6246 MB / 368.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.12, allocations: 1.338 MB / 370 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.1211, allocations: 0.5327 MB / 370.6 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006247/0.1217, allocations: 316.7 kB / 370.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.773e-05/0.1218, allocations: 16.48 kB / 370.9 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.1218, allocations: 35.12 kB / 370.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.256e-06/0.1219, allocations: 4 kB / 370.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1993/0.3211, allocations: 2.843 MB / 373.8 MB, free: 19.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.3212, allocations: 85.78 kB / 373.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005087/0.3217, allocations: 350 kB / 374.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.944e-05/0.3218, allocations: 43.67 kB / 374.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.322, allocations: 167.7 kB / 374.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.3221, allocations: 230.3 kB / 374.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3223, allocations: 57.55 kB / 374.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.069e-05/0.3223, allocations: 355.1 kB / 375 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006406/0.323, allocations: 273.9 kB / 375.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008304/0.3238, allocations: 340.8 kB / 375.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.325, allocations: 0.5038 MB / 376.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.325, allocations: 0 / 376.1 MB, free: 18.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001808/0.3268, allocations: 0.8462 MB / 377 MB, free: 17.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3269, allocations: 6.125 kB / 377 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3269, allocations: 0 / 377 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.328, allocations: 452 kB / 377.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003815/0.3284, allocations: 86.38 kB / 377.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.3295, allocations: 1.025 MB / 378.5 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/0.3301, allocations: 81.08 kB / 378.6 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.3302, allocations: 29.86 kB / 378.6 MB, free: 16.82 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.3304, allocations: 189.5 kB / 378.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.992e-05/0.3305, allocations: 48.31 kB / 378.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3307, allocations: 67.91 kB / 378.9 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.3307, allocations: 8.125 kB / 379 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.3308, allocations: 3.016 kB / 379 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.3308, allocations: 3.422 kB / 379 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.3342, allocations: 1.723 MB / 380.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3343, allocations: 1.031 kB / 380.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.3347, allocations: 89.95 kB / 380.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009776/0.3356, allocations: 415.4 kB / 381.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.228e-05/0.3357, allocations: 20.84 kB / 381.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001003/0.3367, allocations: 0.9816 MB / 382.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3367, allocations: 1.375 kB / 382.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.3392, allocations: 1.24 MB / 383.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002434/0.3395, allocations: 204.1 kB / 383.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.437e-05/0.3396, allocations: 22.72 kB / 383.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004868/0.3401, allocations: 70.17 kB / 383.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3403, allocations: 96.33 kB / 383.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.405e-05/0.3404, allocations: 24.91 kB / 383.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003166/0.3407, allocations: 256.2 kB / 384.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.3407, allocations: 0 / 384.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005988/0.3413, allocations: 144.3 kB / 384.2 MB, free: 13.92 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009251/0.3422, allocations: 400.2 kB / 384.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.344, allocations: 0.6851 MB / 385.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.344, allocations: 0 / 385.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3451, allocations: 390.8 kB / 385.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007772/0.3459, allocations: 59.44 kB / 385.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.3489, allocations: 1.44 MB / 387.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.3492, allocations: 0.8279 MB / 388 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003072/0.3496, allocations: 77.36 kB / 388.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.3498, allocations: 51.69 kB / 388.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3498, allocations: 3.609 kB / 388.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of Templates: time 0.01538/0.3652, allocations: 9.65 MB / 397.8 MB, free: 6.977 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi_support,bearingFriction.smoothness,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.smoothness,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