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.00157/0.00157, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001878/0.001878, allocations: 198 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3007, allocations: 50.55 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004148/0.3049, allocations: 2.862 MB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.307, allocations: 1.275 MB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.3071, allocations: 4 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003127/0.3075, allocations: 87.28 kB / 413.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000508/0.308, allocations: 217.7 kB / 413.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.3085, allocations: 255.5 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006802/0.3092, allocations: 0.7134 MB / 414.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.3094, allocations: 119.4 kB / 414.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000395/0.3098, allocations: 331 kB / 415.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004064/0.3102, allocations: 378.8 kB / 415.4 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.579e-05/0.3103, allocations: 56 kB / 415.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.3106, allocations: 155.9 kB / 415.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.3108, allocations: 155.6 kB / 415.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002377/0.311, allocations: 274.7 kB / 416.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.3117, allocations: 0.7138 MB / 416.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3117, allocations: 0 / 416.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3118, allocations: 0 / 416.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3118, allocations: 4 kB / 416.8 MB, free: 10.02 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.001649/0.3134, allocations: 0.8459 MB / 417.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3135, allocations: 8.031 kB / 417.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004317/0.3139, allocations: 72.34 kB / 417.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006429/0.3146, allocations: 374.3 kB / 418.1 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.3147, allocations: 96.95 kB / 418.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.761e-05/0.3148, allocations: 44.38 kB / 418.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3159, allocations: 0.5606 MB / 418.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.3159, allocations: 7.906 kB / 418.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.278e-05/0.3159, allocations: 12 kB / 418.8 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.316, allocations: 12 kB / 418.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.3172, allocations: 0.6089 MB / 419.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.3196, allocations: 1.31 MB / 420.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3207, allocations: 0.5288 MB / 421.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/0.3213, allocations: 306.4 kB / 421.6 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.3214, allocations: 12.48 kB / 421.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3214, allocations: 39.12 kB / 421.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 1.853e-06/0.3214, allocations: 0 / 421.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.006553/0.328, allocations: 2.742 MB / 424.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.328, allocations: 85.67 kB / 424.4 MB, free: 2.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.3285, allocations: 355.2 kB / 424.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.3285, allocations: 45.7 kB / 424.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3286, allocations: 161.6 kB / 425 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.3288, allocations: 228.7 kB / 425.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.3291, allocations: 130.2 kB / 425.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3292, allocations: 350.8 kB / 425.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.3298, allocations: 269.2 kB / 425.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006263/0.3304, allocations: 330.5 kB / 426.3 MB, free: 172 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.3315, allocations: 495.2 kB / 426.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3315, allocations: 0 / 426.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001731/0.3332, allocations: 0.8372 MB / 427.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3333, allocations: 8 kB / 427.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3333, allocations: 4.031 kB / 427.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.3343, allocations: 441.3 kB / 428 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.3347, allocations: 91.81 kB / 428.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.3359, allocations: 1.017 MB / 429.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004581/0.3364, allocations: 55.94 kB / 429.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.958e-05/0.3364, allocations: 27.98 kB / 429.2 MB, free: 13.16 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.0002347/0.3367, allocations: 193.6 kB / 429.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.3368, allocations: 43.44 kB / 429.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.337, allocations: 67.86 kB / 429.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.337, allocations: 8 kB / 429.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.337, allocations: 0 / 429.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.337, allocations: 3.984 kB / 429.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.34, allocations: 1.71 MB / 431.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.34, allocations: 0 / 431.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.3404, allocations: 79.88 kB / 431.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009333/0.3413, allocations: 420.5 kB / 431.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.3414, allocations: 23.92 kB / 431.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.3426, allocations: 0.9783 MB / 432.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3426, allocations: 8 kB / 432.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.345, allocations: 1.22 MB / 433.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/0.3453, allocations: 184.5 kB / 434.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.3454, allocations: 23.98 kB / 434.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.3458, allocations: 55.92 kB / 434.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.346, allocations: 92.42 kB / 434.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.934e-05/0.3461, allocations: 23.97 kB / 434.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.3464, allocations: 265.9 kB / 434.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3464, allocations: 0 / 434.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000503/0.3469, allocations: 144 kB / 434.7 MB, free: 7.504 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.0009832/0.3479, allocations: 381.3 kB / 435.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.3494, allocations: 0.6767 MB / 435.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3494, allocations: 0 / 435.8 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007997/0.3502, allocations: 376.2 kB / 436.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/0.3508, allocations: 71.39 kB / 436.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.3532, allocations: 1.142 MB / 437.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.3536, allocations: 0.8289 MB / 438.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002411/0.3539, allocations: 79.36 kB / 438.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.354, allocations: 55.39 kB / 438.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.354, allocations: 0 / 438.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of Templates: time 0.01613/0.3702, allocations: 10.42 MB / 448.7 MB, free: 9.566 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