Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 176.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 241.4 MB, free: 9.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008871/0.0008868, allocations: 93.69 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003464, allocations: 11.94 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.249, allocations: 50.41 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.3551, allocations: 83.42 MB / 486.2 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.3554, allocations: 75.95 kB / 486.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03317/0.3885, allocations: 11.98 MB / 498.2 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3886, allocations: 0 / 498.2 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.77e-05/0.3886, allocations: 12 kB / 498.2 MB, free: 0.7695 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001642/0.3903, allocations: 0.7253 MB / 499 MB, free: 15.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3903, allocations: 8.031 kB / 499 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.3907, allocations: 64.5 kB / 499 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005718/0.3913, allocations: 350.4 kB / 499.4 MB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.3914, allocations: 96.95 kB / 499.5 MB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.684e-05/0.3915, allocations: 40.28 kB / 499.5 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.3926, allocations: 0.5415 MB / 0.4883 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.3927, allocations: 3.938 kB / 0.4883 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.3927, allocations: 20 kB / 0.4883 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3927, allocations: 11.94 kB / 0.4884 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.394, allocations: 0.605 MB / 0.4889 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.3961, allocations: 1.166 MB / 0.4901 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009866/0.3971, allocations: 0.4913 MB / 0.4906 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006282/0.3978, allocations: 314.4 kB / 0.4909 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.746e-05/0.3978, allocations: 16.55 kB / 0.4909 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.3979, allocations: 39.12 kB / 0.4909 GB, free: 12.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.033e-06/0.3979, allocations: 0 / 0.4909 GB, free: 12.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.006729/0.4046, allocations: 2.882 MB / 0.4937 GB, free: 9.102 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.4047, allocations: 85.77 kB / 0.4938 GB, free: 9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.4051, allocations: 286.7 kB / 0.4941 GB, free: 8.711 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.481e-05/0.4051, allocations: 41.7 kB / 0.4941 GB, free: 8.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.4052, allocations: 161.6 kB / 0.4943 GB, free: 8.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.4054, allocations: 232.7 kB / 0.4945 GB, free: 8.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.4055, allocations: 12 kB / 0.4945 GB, free: 8.258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4056, allocations: 350.8 kB / 0.4949 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.4062, allocations: 265.2 kB / 0.4951 GB, free: 7.648 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.4068, allocations: 334.5 kB / 0.4954 GB, free: 7.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.4079, allocations: 0.507 MB / 0.4959 GB, free: 6.797 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4079, allocations: 0 / 0.4959 GB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001747/0.4097, allocations: 0.8537 MB / 0.4968 GB, free: 5.934 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4097, allocations: 11.92 kB / 0.4968 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4097, allocations: 0 / 0.4968 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.4107, allocations: 443.5 kB / 0.4972 GB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003517/0.4111, allocations: 87.88 kB / 0.4973 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.4124, allocations: 1.005 MB / 0.4983 GB, free: 4.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.4129, allocations: 83.98 kB / 0.4983 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.106e-05/0.413, allocations: 27.94 kB / 0.4984 GB, free: 4.262 MB / 378.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.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): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.4132, allocations: 193.6 kB / 0.4985 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4134, allocations: 43.44 kB / 0.4986 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.4152, allocations: 0.8796 MB / 0.4994 GB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.4152, allocations: 4 kB / 0.4994 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4153, allocations: 4 kB / 0.4995 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4153, allocations: 7.984 kB / 0.4995 GB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.4186, allocations: 1.712 MB / 0.5011 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4186, allocations: 0 / 0.5011 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003607/0.419, allocations: 75.89 kB / 0.5012 GB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009514/0.42, allocations: 421.5 kB / 0.5016 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.42, allocations: 27.97 kB / 0.5016 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2502/0.6702, allocations: 0.9649 MB / 0.5026 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.6703, allocations: 1.438 kB / 0.5026 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/0.6734, allocations: 1.27 MB / 0.5038 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.6737, allocations: 183.5 kB / 0.504 GB, free: 99.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.855e-05/0.6738, allocations: 16.64 kB / 0.504 GB, free: 99.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.6743, allocations: 77.52 kB / 0.5041 GB, free: 99.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/0.6746, allocations: 104.9 kB / 0.5042 GB, free: 99.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.307e-05/0.6746, allocations: 27.89 kB / 0.5042 GB, free: 99.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002689/0.6749, allocations: 211.3 kB / 0.5044 GB, free: 99.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6749, allocations: 2.25 kB / 0.5044 GB, free: 99.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006172/0.6756, allocations: 150.2 kB / 0.5046 GB, free: 99.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002756/0.6758, allocations: 160.8 kB / 0.5047 GB, free: 99.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.6776, allocations: 0.708 MB / 0.5054 GB, free: 99.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6776, allocations: 0.625 kB / 0.5054 GB, free: 99.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008478/0.6785, allocations: 380 kB / 0.5058 GB, free: 99.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.679, allocations: 51.02 kB / 0.5058 GB, free: 99.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.6818, allocations: 1.362 MB / 0.5071 GB, free: 99.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/0.6821, allocations: 0.8174 MB / 0.5079 GB, free: 98.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000244/0.6823, allocations: 61.23 kB / 0.508 GB, free: 98.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.6825, allocations: 46.44 kB / 0.508 GB, free: 98.54 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6825, allocations: 1.875 kB / 0.508 GB, free: 98.54 MB / 378.7 MB Notification: Performance of Templates: time 0.01141/0.6939, allocations: 8.704 MB / 0.5165 GB, free: 96.35 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_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.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.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