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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001685/0.001685, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 109.3 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008895/0.0008896, allocations: 52.16 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1909, allocations: 50.45 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00322/0.1941, allocations: 2.886 MB / 409.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.1956, allocations: 1.235 MB / 411.2 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.1958, allocations: 7.938 kB / 411.2 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002775/0.196, allocations: 75.59 kB / 411.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003471/0.1964, allocations: 194.3 kB / 411.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.1967, allocations: 211.7 kB / 411.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.1971, allocations: 0.6705 MB / 412.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.1973, allocations: 109.5 kB / 412.4 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.1976, allocations: 303 kB / 412.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1979, allocations: 350.9 kB / 413.1 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.705e-05/0.198, allocations: 32 kB / 413.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.1982, allocations: 127.9 kB / 413.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.1983, allocations: 135.6 kB / 413.3 MB, free: 21.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.1985, allocations: 250.7 kB / 413.6 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.199, allocations: 0.6752 MB / 414.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.199, allocations: 4 kB / 414.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.199, allocations: 0 / 414.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.199, allocations: 0 / 414.3 MB, free: 20.55 MB / 298.7 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.001362/0.2004, allocations: 0.8421 MB / 415.1 MB, free: 19.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.2004, allocations: 8.031 kB / 415.1 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003632/0.2008, allocations: 76.34 kB / 415.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.2012, allocations: 362.3 kB / 415.6 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.712e-05/0.2013, allocations: 96.95 kB / 415.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.144e-05/0.2014, allocations: 40.38 kB / 415.7 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008451/0.2022, allocations: 0.5567 MB / 416.2 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2022, allocations: 4 kB / 416.2 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.2023, allocations: 12 kB / 416.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.2023, allocations: 12 kB / 416.3 MB, free: 18.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.2034, allocations: 0.6011 MB / 416.9 MB, free: 17.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.2053, allocations: 1.31 MB / 418.2 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000956/0.2063, allocations: 0.5191 MB / 418.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005074/0.2068, allocations: 303.3 kB / 419 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.107e-05/0.2069, allocations: 16.48 kB / 419 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.2069, allocations: 39.12 kB / 419 MB, free: 15.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.703e-06/0.2069, allocations: 4 kB / 419.1 MB, free: 15.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.005604/0.2125, allocations: 2.718 MB / 421.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.2126, allocations: 89.66 kB / 421.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/0.2129, allocations: 350.8 kB / 422.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.2129, allocations: 45.69 kB / 422.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.438e-05/0.213, allocations: 157.6 kB / 422.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.2131, allocations: 240.7 kB / 422.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.2133, allocations: 122.2 kB / 422.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.893e-05/0.2134, allocations: 354.8 kB / 423.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.2139, allocations: 261.2 kB / 423.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005226/0.2144, allocations: 330.5 kB / 423.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008712/0.2153, allocations: 491.2 kB / 424.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2153, allocations: 0 / 424.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00142/0.2167, allocations: 0.8295 MB / 425 MB, free: 9.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2168, allocations: 10.97 kB / 425 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2168, allocations: 0 / 425 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000901/0.2177, allocations: 416.4 kB / 425.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.218, allocations: 95.94 kB / 425.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009204/0.219, allocations: 1.01 MB / 426.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004222/0.2194, allocations: 59.92 kB / 426.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.2195, allocations: 20 kB / 426.6 MB, free: 7.805 MB / 298.7 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.000169/0.2196, allocations: 186.3 kB / 426.8 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.396e-05/0.2197, allocations: 47.47 kB / 426.8 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.2199, allocations: 67.86 kB / 426.9 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2199, allocations: 4 kB / 426.9 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2199, allocations: 0 / 426.9 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2199, allocations: 7.984 kB / 426.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/0.2224, allocations: 1.695 MB / 428.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2224, allocations: 4.031 kB / 428.6 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.2227, allocations: 83.88 kB / 428.7 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007938/0.2235, allocations: 388.5 kB / 429.1 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/0.2236, allocations: 23.97 kB / 429.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008797/0.2245, allocations: 0.9754 MB / 430.1 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2245, allocations: 3.938 kB / 430.1 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/0.2383, allocations: 8.63 MB / 438.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.2385, allocations: 192.4 kB / 438.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.077e-05/0.2386, allocations: 23.94 kB / 438.9 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.239, allocations: 56.06 kB / 439 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.2392, allocations: 92.41 kB / 439 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.171e-05/0.2393, allocations: 23.97 kB / 439.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002969/0.2396, allocations: 261.9 kB / 439.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2396, allocations: 0 / 439.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006766/0.2403, allocations: 212.1 kB / 439.5 MB, free: 10.37 MB / 314.7 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.001002/0.2413, allocations: 493.1 kB / 440 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.2427, allocations: 0.6611 MB / 440.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2428, allocations: 0 / 440.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007927/0.2436, allocations: 376 kB / 441 MB, free: 9.027 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.244, allocations: 64.56 kB / 441.1 MB, free: 8.961 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.247, allocations: 1.881 MB / 443 MB, free: 7.023 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.2474, allocations: 0.8485 MB / 443.8 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003089/0.2477, allocations: 91.3 kB / 443.9 MB, free: 6.062 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.2479, allocations: 75.36 kB / 444 MB, free: 5.988 MB / 314.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2479, allocations: 0 / 444 MB, free: 5.988 MB / 314.7 MB Notification: Performance of Templates: time 0.01772/0.2657, allocations: 13.28 MB / 457.3 MB, free: 8.73 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../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.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