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.0009345/0.0009345, allocations: 95.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009256/0.0009254, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 246.4 MB, free: 9.781 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 8 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09285, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002775/0.09566, allocations: 2.416 MB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.09749, allocations: 1.217 MB / 362.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.09763, allocations: 11.94 kB / 362.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002646/0.0979, allocations: 67.59 kB / 362.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003886/0.0983, allocations: 186.4 kB / 362.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.0987, allocations: 203.7 kB / 362.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005665/0.09928, allocations: 0.6158 MB / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.09947, allocations: 97.98 kB / 363.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003636/0.09984, allocations: 287.1 kB / 363.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.1002, allocations: 331 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.381e-05/0.1003, allocations: 32 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00021/0.1005, allocations: 107.9 kB / 364.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.1007, allocations: 135.6 kB / 364.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.948e-05/0.1008, allocations: 97.45 kB / 364.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004875/0.1013, allocations: 0.5185 MB / 364.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1013, allocations: 0 / 364.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1013, allocations: 0 / 364.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.1013, allocations: 0 / 364.9 MB, free: 7.09 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.001383/0.1027, allocations: 0.7641 MB / 365.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.1027, allocations: 8.031 kB / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003796/0.1031, allocations: 75.41 kB / 365.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.1036, allocations: 361.2 kB / 366.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.1038, allocations: 96.39 kB / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.776e-05/0.1038, allocations: 40 kB / 366.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.1049, allocations: 0.5682 MB / 366.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.1049, allocations: 7.906 kB / 366.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.018e-05/0.105, allocations: 12 kB / 366.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.105, allocations: 12 kB / 366.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.1063, allocations: 0.6245 MB / 367.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.1086, allocations: 1.334 MB / 368.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1097, allocations: 0.5365 MB / 369.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/0.1103, allocations: 306.4 kB / 369.6 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.07e-05/0.1104, allocations: 12.55 kB / 369.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.1104, allocations: 43.12 kB / 369.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.405e-06/0.1104, allocations: 0 / 369.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1703/0.2808, allocations: 2.814 MB / 372.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.2808, allocations: 86.09 kB / 372.6 MB, free: 18.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004761/0.2813, allocations: 359.5 kB / 372.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.256e-05/0.2814, allocations: 46.22 kB / 373 MB, free: 18.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.2815, allocations: 164.4 kB / 373.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.2817, allocations: 229.6 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.2817, allocations: 11.69 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.2818, allocations: 352.8 kB / 373.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006607/0.2825, allocations: 273 kB / 374 MB, free: 18.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006916/0.2832, allocations: 334.4 kB / 374.3 MB, free: 18.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005956/0.2838, allocations: 249.7 kB / 374.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.2838, allocations: 3.078 kB / 374.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001842/0.2857, allocations: 0.8505 MB / 375.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2857, allocations: 6.594 kB / 375.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2857, allocations: 1.078 kB / 375.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.2868, allocations: 444.2 kB / 375.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003863/0.2872, allocations: 95.48 kB / 376 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.2883, allocations: 1.023 MB / 377 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.2888, allocations: 76.98 kB / 377.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.882e-05/0.2889, allocations: 25.06 kB / 377.1 MB, free: 17.11 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 33} Notification: Performance of prepare postOptimizeDAE: time 0.0002121/0.2891, allocations: 190.7 kB / 377.3 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.874e-05/0.2892, allocations: 44.11 kB / 377.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001547/0.2894, allocations: 68.58 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.2894, allocations: 7.062 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.2894, allocations: 2.562 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.2894, allocations: 4.984 kB / 377.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003056/0.2925, allocations: 1.728 MB / 379.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2925, allocations: 1.156 kB / 379.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003685/0.2928, allocations: 87.19 kB / 379.2 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000962/0.2938, allocations: 413.5 kB / 379.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.2939, allocations: 20.36 kB / 379.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.295, allocations: 0.976 MB / 380.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.295, allocations: 4.062 kB / 380.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.2972, allocations: 1.24 MB / 381.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.2975, allocations: 196.6 kB / 382 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.2976, allocations: 27.17 kB / 382.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.298, allocations: 69.77 kB / 382.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.2983, allocations: 107 kB / 382.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.543e-05/0.2983, allocations: 24.69 kB / 382.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002945/0.2986, allocations: 254.8 kB / 382.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2986, allocations: 0 / 382.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005597/0.2992, allocations: 144.4 kB / 382.7 MB, free: 14.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009048/0.3001, allocations: 398.8 kB / 383 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.3016, allocations: 0.6814 MB / 383.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3016, allocations: 0 / 383.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008134/0.3025, allocations: 390 kB / 384.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.303, allocations: 58.92 kB / 384.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.3055, allocations: 1.396 MB / 385.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.3058, allocations: 0.8254 MB / 386.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.3061, allocations: 77.42 kB / 386.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.3062, allocations: 55.33 kB / 386.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3062, allocations: 0 / 386.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01427/0.3205, allocations: 9.364 MB / 395.9 MB, free: 8.312 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