Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 180.2 kB / 16.38 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.242/1.242, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008017/0.0008017, allocations: 99.25 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002452/0.0002452, allocations: 11.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2526, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1031/0.3557, allocations: 81.18 MB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.356, allocations: 72.5 kB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0268/0.3828, allocations: 9.556 MB / 492.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3828, allocations: 0 / 492.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.3829, allocations: 8 kB / 492.3 MB, free: 5.637 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001002/0.3839, allocations: 0.5807 MB / 492.9 MB, free: 5.008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3839, allocations: 8.031 kB / 492.9 MB, free: 5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.3842, allocations: 55.59 kB / 492.9 MB, free: 4.945 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003978/0.3846, allocations: 286.4 kB / 493.2 MB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.3848, allocations: 83.95 kB / 493.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.557e-05/0.3848, allocations: 32 kB / 493.3 MB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006464/0.3855, allocations: 369.3 kB / 493.7 MB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.3855, allocations: 3.938 kB / 493.7 MB, free: 4.121 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.3855, allocations: 15.95 kB / 493.7 MB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3856, allocations: 4 kB / 493.7 MB, free: 4.102 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008049/0.3864, allocations: 413.9 kB / 494.1 MB, free: 3.699 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.3881, allocations: 1.159 MB / 495.3 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.3887, allocations: 351.1 kB / 495.6 MB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.3888, allocations: 4 kB / 495.6 MB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3888, allocations: 34.56 kB / 495.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.853e-06/0.3888, allocations: 0 / 495.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.004435/0.3933, allocations: 1.879 MB / 497.5 MB, free: 76 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.3934, allocations: 84.86 kB / 497.6 MB, free: 15.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.3936, allocations: 193.5 kB / 497.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.3937, allocations: 33.7 kB / 497.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.3938, allocations: 144.8 kB / 498 MB, free: 15.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.3939, allocations: 149.9 kB / 498.1 MB, free: 15.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.3939, allocations: 4 kB / 498.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3941, allocations: 342.8 kB / 498.5 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.3944, allocations: 164.8 kB / 498.6 MB, free: 14.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.3948, allocations: 217.9 kB / 498.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.3952, allocations: 160.7 kB / 499 MB, free: 14.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3952, allocations: 8.031 kB / 499 MB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001079/0.3963, allocations: 0.5395 MB / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.3963, allocations: 4 kB / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3963, allocations: 4 kB / 499.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006969/0.397, allocations: 240.8 kB / 499.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.3973, allocations: 51.91 kB / 499.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003722/0.401, allocations: 2.705 MB / 0.4908 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.4013, allocations: 36.03 kB / 0.4908 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/0.4013, allocations: 20 kB / 0.4908 GB, free: 10.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001861/0.4015, allocations: 153.7 kB / 0.491 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.217e-05/0.4016, allocations: 27.67 kB / 0.491 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.264e-05/0.4017, allocations: 50.92 kB / 0.491 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.4017, allocations: 4 kB / 0.4911 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.4017, allocations: 0 / 0.4911 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4017, allocations: 4 kB / 0.4911 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.4035, allocations: 1.073 MB / 0.4921 GB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4035, allocations: 0 / 0.4921 GB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.4037, allocations: 59.89 kB / 0.4922 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005938/0.4043, allocations: 220.9 kB / 0.4924 GB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.4044, allocations: 15.98 kB / 0.4924 GB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003374/0.4078, allocations: 2.655 MB / 0.495 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4078, allocations: 0 / 0.495 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.4092, allocations: 0.798 MB / 0.4958 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.4093, allocations: 140.8 kB / 0.4959 GB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.4094, allocations: 12 kB / 0.4959 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.4097, allocations: 39.98 kB / 0.4959 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.4098, allocations: 63.88 kB / 0.496 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.4099, allocations: 19.98 kB / 0.496 GB, free: 5.234 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000183/0.41, allocations: 157.5 kB / 0.4962 GB, free: 5.082 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.41, allocations: 0 / 0.4962 GB, free: 5.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006356/0.4107, allocations: 144 kB / 0.4963 GB, free: 4.941 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.00025/0.4109, allocations: 153.5 kB / 0.4965 GB, free: 4.785 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.4122, allocations: 0.6064 MB / 0.497 GB, free: 4.164 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4122, allocations: 4 kB / 0.4971 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006509/0.4128, allocations: 425.1 kB / 0.4975 GB, free: 3.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.4131, allocations: 28.11 kB / 0.4975 GB, free: 3.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4144, allocations: 0.8076 MB / 0.4983 GB, free: 2.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.4148, allocations: 0.788 MB / 0.499 GB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.415, allocations: 66.94 kB / 0.4991 GB, free: 1.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.4151, allocations: 31.41 kB / 0.4991 GB, free: 1.961 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4151, allocations: 0 / 0.4991 GB, free: 1.961 MB / 378.7 MB Notification: Performance of Templates: time 0.2017/0.6168, allocations: 6.254 MB / 0.5052 GB, free: 100.9 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches