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.001542/0.001542, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001947/0.001947, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2482, allocations: 50.55 MB / 409.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004175/0.2524, allocations: 2.859 MB / 412.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.2546, allocations: 1.271 MB / 413.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.2547, allocations: 4 kB / 413.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003267/0.2551, allocations: 87.28 kB / 413.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006691/0.2558, allocations: 223.2 kB / 413.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006464/0.2564, allocations: 251.5 kB / 413.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007805/0.2572, allocations: 0.7056 MB / 414.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.2574, allocations: 127.4 kB / 414.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.2578, allocations: 327 kB / 415.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003891/0.2582, allocations: 382.8 kB / 415.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.078e-05/0.2583, allocations: 56 kB / 415.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.2586, allocations: 159.9 kB / 415.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2588, allocations: 159.6 kB / 415.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.259, allocations: 262.8 kB / 416.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006914/0.2597, allocations: 0.7217 MB / 416.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2597, allocations: 0 / 416.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2598, allocations: 0 / 416.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2598, allocations: 0 / 416.8 MB, free: 10.16 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00158/0.2614, allocations: 0.8459 MB / 417.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.2614, allocations: 12.03 kB / 417.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000447/0.2619, allocations: 80.34 kB / 417.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007396/0.2626, allocations: 370.3 kB / 418.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.2628, allocations: 96.94 kB / 418.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.181e-05/0.2629, allocations: 44.38 kB / 418.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.264, allocations: 0.5567 MB / 418.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.264, allocations: 7.906 kB / 418.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.2641, allocations: 19.98 kB / 418.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2641, allocations: 8 kB / 418.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.2654, allocations: 0.6167 MB / 419.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.2678, allocations: 1.302 MB / 420.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.2689, allocations: 0.5249 MB / 421.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006005/0.2696, allocations: 302.4 kB / 421.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.2696, allocations: 8.5 kB / 421.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.2697, allocations: 43.12 kB / 421.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.284e-06/0.2697, allocations: 0 / 421.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.006678/0.2764, allocations: 2.742 MB / 424.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.2764, allocations: 89.67 kB / 424.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.2768, allocations: 355.2 kB / 424.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/0.2769, allocations: 37.7 kB / 424.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.277, allocations: 165.6 kB / 425 MB, free: 1.617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.2772, allocations: 232.7 kB / 425.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.2774, allocations: 122.3 kB / 425.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.2776, allocations: 350.8 kB / 425.7 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/0.2782, allocations: 277.1 kB / 425.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006427/0.2788, allocations: 326.5 kB / 426.3 MB, free: 316 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.2798, allocations: 491.1 kB / 426.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2799, allocations: 8.031 kB / 426.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001717/0.2816, allocations: 0.8411 MB / 427.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.2816, allocations: 8 kB / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.2816, allocations: 3.984 kB / 427.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.2829, allocations: 445.3 kB / 428 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.2833, allocations: 87.86 kB / 428.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.2847, allocations: 1.013 MB / 429.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.2851, allocations: 64.02 kB / 429.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.2852, allocations: 27.98 kB / 429.2 MB, free: 13.3 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002525/0.2855, allocations: 181.6 kB / 429.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2856, allocations: 47.42 kB / 429.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.2857, allocations: 79.78 kB / 429.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.2858, allocations: 8 kB / 429.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.2858, allocations: 0 / 429.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2858, allocations: 7.922 kB / 429.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.2889, allocations: 1.698 MB / 431.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2889, allocations: 0 / 431.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.2893, allocations: 79.88 kB / 431.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009706/0.2902, allocations: 420.5 kB / 431.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-05/0.2903, allocations: 23.97 kB / 431.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.2915, allocations: 0.9744 MB / 432.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2915, allocations: 7.922 kB / 432.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.294, allocations: 1.224 MB / 434 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.2942, allocations: 184.5 kB / 434.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-05/0.2943, allocations: 24.06 kB / 434.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.2948, allocations: 47.94 kB / 434.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.295, allocations: 88.42 kB / 434.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.2951, allocations: 31.97 kB / 434.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.2954, allocations: 253.9 kB / 434.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2954, allocations: 0 / 434.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.2959, allocations: 140 kB / 434.7 MB, free: 7.656 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009629/0.2969, allocations: 390 kB / 435.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.2985, allocations: 0.6844 MB / 435.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2986, allocations: 0 / 435.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008491/0.2994, allocations: 380 kB / 436.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.3, allocations: 73.88 kB / 436.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.3026, allocations: 1.13 MB / 437.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.3031, allocations: 0.8328 MB / 438.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.3033, allocations: 83.34 kB / 438.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.3035, allocations: 55.39 kB / 438.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3035, allocations: 0 / 438.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of Templates: time 0.01721/0.3207, allocations: 10.4 MB / 448.7 MB, free: 9.715 MB / 366.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