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.001465/0.001464, allocations: 180.7 kB / 16.39 MB, free: 5.766 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.275/1.275, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0007363/0.0007364, allocations: 93.86 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002651, allocations: 15.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2356, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.3419, allocations: 83.37 MB / 484.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.3422, allocations: 67.97 kB / 484.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03341/0.3756, allocations: 12.07 MB / 497 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3757, allocations: 0 / 497 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.22e-05/0.3757, allocations: 12.19 kB / 497 MB, free: 0.9258 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.00143/0.3771, allocations: 0.7367 MB / 497.7 MB, free: 144 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3772, allocations: 12.02 kB / 497.8 MB, free: 132 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003481/0.3775, allocations: 67.42 kB / 497.8 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005578/0.3781, allocations: 321.4 kB / 498.1 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.3782, allocations: 100.4 kB / 498.2 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.715e-05/0.3783, allocations: 39.91 kB / 498.3 MB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.3794, allocations: 0.5448 MB / 498.8 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.3794, allocations: 4 kB / 498.8 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.3795, allocations: 19.95 kB / 498.8 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.3795, allocations: 11.98 kB / 498.9 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.3808, allocations: 0.605 MB / 499.5 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.3829, allocations: 1.158 MB / 0.4889 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009625/0.3839, allocations: 0.4914 MB / 0.4894 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.295e-05/0.3839, allocations: 12.55 kB / 0.4894 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.384, allocations: 43.39 kB / 0.4894 GB, free: 12.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.124e-06/0.384, allocations: 0 / 0.4894 GB, free: 12.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.00662/0.3906, allocations: 2.875 MB / 0.4922 GB, free: 9.578 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.053e-05/0.3907, allocations: 85.77 kB / 0.4923 GB, free: 9.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.391, allocations: 249.9 kB / 0.4925 GB, free: 9.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.3911, allocations: 45.69 kB / 0.4926 GB, free: 9.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3912, allocations: 157.7 kB / 0.4927 GB, free: 9.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.3914, allocations: 232.6 kB / 0.493 GB, free: 8.789 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.3915, allocations: 16 kB / 0.493 GB, free: 8.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3916, allocations: 350.8 kB / 0.4933 GB, free: 8.422 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005479/0.3922, allocations: 269.2 kB / 0.4936 GB, free: 8.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006132/0.3928, allocations: 334.5 kB / 0.4939 GB, free: 7.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.3933, allocations: 239.2 kB / 0.4941 GB, free: 7.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3934, allocations: 4 kB / 0.4941 GB, free: 7.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001757/0.3951, allocations: 0.8537 MB / 0.4949 GB, free: 6.723 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3952, allocations: 8 kB / 0.495 GB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.3952, allocations: 32 / 0.495 GB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.3962, allocations: 439.5 kB / 0.4954 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.3966, allocations: 95.75 kB / 0.4955 GB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.3979, allocations: 1.009 MB / 0.4965 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004732/0.3984, allocations: 80.02 kB / 0.4965 GB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.129e-05/0.3984, allocations: 35.98 kB / 0.4966 GB, free: 5.043 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.0002865/0.3987, allocations: 180.6 kB / 0.4967 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.3989, allocations: 47.44 kB / 0.4968 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.4007, allocations: 0.8834 MB / 0.4976 GB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4008, allocations: 12 kB / 0.4977 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4008, allocations: 3.953 kB / 0.4977 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.4008, allocations: 3.984 kB / 0.4977 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003145/0.404, allocations: 1.7 MB / 0.4993 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.404, allocations: 0 / 0.4993 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003802/0.4044, allocations: 83.95 kB / 0.4994 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000896/0.4053, allocations: 417.5 kB / 0.4998 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.4053, allocations: 23.97 kB / 0.4998 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.4065, allocations: 0.9738 MB / 0.5008 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4065, allocations: 4.062 kB / 0.5008 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2232/0.6297, allocations: 1.297 MB / 0.502 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003991/0.6301, allocations: 182.9 kB / 0.5022 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.691e-05/0.6302, allocations: 18.11 kB / 0.5022 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.6307, allocations: 74.38 kB / 0.5023 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.631, allocations: 100.3 kB / 0.5024 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.613e-05/0.6311, allocations: 29.11 kB / 0.5024 GB, free: 100.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002859/0.6314, allocations: 212.1 kB / 0.5026 GB, free: 100.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6314, allocations: 0 / 0.5026 GB, free: 100.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007782/0.6322, allocations: 153.8 kB / 0.5028 GB, free: 100.5 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.0003602/0.6325, allocations: 154.9 kB / 0.5029 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/0.6342, allocations: 0.7086 MB / 0.5036 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6342, allocations: 0.75 kB / 0.5036 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000963/0.6352, allocations: 376.5 kB / 0.504 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/0.6356, allocations: 44.31 kB / 0.504 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.6385, allocations: 1.353 MB / 0.5053 GB, free: 99.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.6388, allocations: 0.8326 MB / 0.5062 GB, free: 99.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.6391, allocations: 63.58 kB / 0.5062 GB, free: 99.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.6392, allocations: 47.03 kB / 0.5063 GB, free: 99.14 MB / 378.7 MB Notification: Performance of SimCode: time 9.61e-07/0.6392, allocations: 0 / 0.5063 GB, free: 99.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01201/0.6513, allocations: 8.66 MB / 0.5147 GB, free: 97.27 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/jenkins/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