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.001318/0.001318, allocations: 97.31 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 209.7 kB / 18.14 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 65.17 kB / 306.3 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09686, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004015/0.1009, allocations: 2.898 MB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.103, allocations: 1.275 MB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1032, allocations: 4 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.1035, allocations: 75.53 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004252/0.1039, allocations: 188 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/0.1044, allocations: 223.7 kB / 361.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005847/0.105, allocations: 0.6743 MB / 362.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1052, allocations: 108 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003782/0.1056, allocations: 299 kB / 362.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000385/0.106, allocations: 362.8 kB / 362.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.458e-05/0.1061, allocations: 32 kB / 362.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.1063, allocations: 127.9 kB / 363 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.1066, allocations: 139.5 kB / 363.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.1069, allocations: 250.8 kB / 363.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006812/0.1076, allocations: 0.6817 MB / 364.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1076, allocations: 8 kB / 364.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1076, allocations: 0 / 364.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1076, allocations: 0 / 364.1 MB, free: 7.168 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.001804/0.1094, allocations: 0.8289 MB / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.574e-05/0.1095, allocations: 12.03 kB / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004329/0.1099, allocations: 76.25 kB / 365 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.1104, allocations: 370.4 kB / 365.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.1106, allocations: 100.8 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.131e-05/0.1107, allocations: 52.27 kB / 365.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.1119, allocations: 0.5606 MB / 366.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.1119, allocations: 4 kB / 366.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.112, allocations: 12 kB / 366.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.112, allocations: 12 kB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1134, allocations: 0.6089 MB / 366.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.1161, allocations: 1.314 MB / 368 MB, free: 3.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1174, allocations: 0.514 MB / 368.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006124/0.118, allocations: 306.4 kB / 368.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.118, allocations: 12.5 kB / 368.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1181, allocations: 43.12 kB / 368.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 1.754e-06/0.1181, allocations: 0 / 368.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1614/0.2795, allocations: 2.731 MB / 371.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.2796, allocations: 85.92 kB / 371.7 MB, free: 20.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.28, allocations: 355.1 kB / 372.1 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.713e-05/0.2801, allocations: 41.48 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.2802, allocations: 165.5 kB / 372.3 MB, free: 19.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.2804, allocations: 230.6 kB / 372.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.2806, allocations: 131 kB / 372.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.015e-05/0.2807, allocations: 356.5 kB / 373 MB, free: 19.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.2813, allocations: 268.7 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/0.282, allocations: 333.4 kB / 373.6 MB, free: 19.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.283, allocations: 495.9 kB / 374 MB, free: 19.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2831, allocations: 0.625 kB / 374 MB, free: 19.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001803/0.2849, allocations: 0.8358 MB / 374.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2849, allocations: 5.312 kB / 374.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2849, allocations: 5.828 kB / 374.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.286, allocations: 440 kB / 375.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.2864, allocations: 84.09 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.2875, allocations: 1.024 MB / 376.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.2881, allocations: 56.44 kB / 376.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.239e-05/0.2881, allocations: 29.31 kB / 376.5 MB, free: 17.89 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.0002247/0.2884, allocations: 185.7 kB / 376.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.2885, allocations: 48.91 kB / 376.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.2886, allocations: 68.52 kB / 376.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.2887, allocations: 7.75 kB / 376.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.2887, allocations: 1.266 kB / 376.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.934e-06/0.2887, allocations: 2.719 kB / 376.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.2918, allocations: 1.708 MB / 378.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2918, allocations: 0 / 378.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.2922, allocations: 87.91 kB / 378.6 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009681/0.2932, allocations: 408.2 kB / 379 MB, free: 16.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.749e-05/0.2933, allocations: 22.23 kB / 379 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.2943, allocations: 0.9779 MB / 380 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2943, allocations: 0.6562 kB / 380 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.2967, allocations: 1.234 MB / 381.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002485/0.297, allocations: 196.8 kB / 381.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2971, allocations: 22.39 kB / 381.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.2976, allocations: 54.11 kB / 381.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.2978, allocations: 87.62 kB / 381.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.138e-05/0.2979, allocations: 24.53 kB / 381.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003416/0.2982, allocations: 255.7 kB / 381.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2983, allocations: 4.062 kB / 381.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006023/0.2989, allocations: 143.7 kB / 382 MB, free: 15.03 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.0008876/0.2998, allocations: 392.7 kB / 382.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.3014, allocations: 0.6734 MB / 383.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3014, allocations: 1.219 kB / 383.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008569/0.3023, allocations: 373.8 kB / 383.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005599/0.3029, allocations: 64.7 kB / 383.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.3056, allocations: 1.315 MB / 384.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.3059, allocations: 0.8222 MB / 385.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003258/0.3063, allocations: 82.05 kB / 385.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.3064, allocations: 50.5 kB / 385.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3065, allocations: 0 / 385.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01531/0.3218, allocations: 9.763 MB / 395.5 MB, free: 8.844 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