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.001329/0.001329, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001809/0.001809, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.0903, allocations: 50.52 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004321/0.09466, allocations: 2.864 MB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002416/0.09711, allocations: 1.275 MB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.09739, allocations: 7.938 kB / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.09783, allocations: 91.28 kB / 363.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006361/0.09847, allocations: 221.9 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005597/0.09904, allocations: 254.8 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007521/0.0998, allocations: 0.7095 MB / 364.3 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.1, allocations: 119.4 kB / 364.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004294/0.1005, allocations: 331 kB / 364.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004172/0.1009, allocations: 378.8 kB / 365.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.173e-05/0.101, allocations: 56 kB / 365.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00028/0.1013, allocations: 155.9 kB / 365.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.1015, allocations: 167.5 kB / 365.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.1017, allocations: 266.8 kB / 365.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006914/0.1024, allocations: 0.7204 MB / 366.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1024, allocations: 0 / 366.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1025, allocations: 0 / 366.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.1025, allocations: 0 / 366.5 MB, free: 5.742 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.001607/0.1041, allocations: 0.8305 MB / 367.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1041, allocations: 8.031 kB / 367.3 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004189/0.1046, allocations: 80.19 kB / 367.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006155/0.1052, allocations: 374.4 kB / 367.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.1053, allocations: 96.95 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.054e-05/0.1054, allocations: 48.28 kB / 367.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.1066, allocations: 0.5606 MB / 368.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.1067, allocations: 4 kB / 368.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.561e-05/0.1067, allocations: 12 kB / 368.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1068, allocations: 19.94 kB / 368.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1081, allocations: 0.605 MB / 369.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.1108, allocations: 1.31 MB / 370.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.112, allocations: 0.5226 MB / 370.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006056/0.1126, allocations: 302.4 kB / 371.2 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.1126, allocations: 12.5 kB / 371.2 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1127, allocations: 39.12 kB / 371.3 MB, free: 0.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.304e-06/0.1127, allocations: 0 / 371.3 MB, free: 0.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.1822/0.2949, allocations: 2.735 MB / 374 MB, free: 19.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.295, allocations: 86.34 kB / 374.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007204/0.2957, allocations: 357.2 kB / 374.4 MB, free: 19.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.2958, allocations: 44.78 kB / 374.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.2959, allocations: 162.1 kB / 374.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.2961, allocations: 233.2 kB / 374.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003468/0.2965, allocations: 123.6 kB / 375 MB, free: 18.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.2966, allocations: 353.5 kB / 375.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009781/0.2976, allocations: 267.5 kB / 375.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009707/0.2986, allocations: 332.4 kB / 375.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.3001, allocations: 498.9 kB / 376.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3001, allocations: 1.438 kB / 376.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002599/0.3027, allocations: 0.8364 MB / 377.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3027, allocations: 5.375 kB / 377.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.3028, allocations: 1.031 kB / 377.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.3043, allocations: 444 kB / 377.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005635/0.3049, allocations: 87.95 kB / 377.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.3066, allocations: 1.022 MB / 378.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007972/0.3074, allocations: 61.09 kB / 378.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3076, allocations: 29.33 kB / 378.9 MB, free: 16.94 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.000356/0.3079, allocations: 189 kB / 379.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.3081, allocations: 40.52 kB / 379.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.3083, allocations: 65.09 kB / 379.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.3083, allocations: 8.078 kB / 379.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.3084, allocations: 1.781 kB / 379.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3084, allocations: 3.562 kB / 379.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004409/0.3128, allocations: 1.705 MB / 380.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.3128, allocations: 5.297 kB / 380.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006402/0.3135, allocations: 87 kB / 381 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.315, allocations: 413.1 kB / 381.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.218e-05/0.3151, allocations: 24.91 kB / 381.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001506/0.3166, allocations: 0.9725 MB / 382.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.3166, allocations: 2.75 kB / 382.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003616/0.3202, allocations: 1.229 MB / 383.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003742/0.3206, allocations: 186.5 kB / 383.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.3208, allocations: 18.94 kB / 383.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006739/0.3215, allocations: 54.19 kB / 383.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/0.3218, allocations: 87.7 kB / 383.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-05/0.3219, allocations: 38.28 kB / 384 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004946/0.3224, allocations: 259.1 kB / 384.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3225, allocations: 0 / 384.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009842/0.3234, allocations: 144.2 kB / 384.4 MB, free: 14.08 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.00132/0.3248, allocations: 390.3 kB / 384.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.327, allocations: 0.6744 MB / 385.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3271, allocations: 1.188 kB / 385.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.3283, allocations: 378.5 kB / 385.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008046/0.3291, allocations: 65.92 kB / 385.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.3327, allocations: 1.134 MB / 387 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.3331, allocations: 0.8285 MB / 387.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.3335, allocations: 77.98 kB / 387.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002564/0.3338, allocations: 56.48 kB / 388 MB, free: 12.22 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3338, allocations: 0 / 388 MB, free: 12.22 MB / 302.1 MB Notification: Performance of Templates: time 0.02326/0.3571, allocations: 10.3 MB / 398.3 MB, free: 6.965 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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