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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 108.3 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009423/0.0009423, allocations: 56.48 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09111, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003396/0.09454, allocations: 2.335 MB / 353.8 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.09595, allocations: 0.9209 MB / 354.7 MB, free: 420 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.09607, allocations: 4 kB / 354.8 MB, free: 416 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.09626, allocations: 47.58 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004321/0.09671, allocations: 131.3 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.09701, allocations: 175.6 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.09739, allocations: 418.8 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.09754, allocations: 68.69 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.09772, allocations: 179.5 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.09799, allocations: 215.3 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.09804, allocations: 32 kB / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.09824, allocations: 127.8 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.09838, allocations: 99.7 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.09853, allocations: 163.2 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000415/0.09895, allocations: 458.6 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09897, allocations: 0 / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09898, allocations: 3.938 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.09899, allocations: 0 / 356.8 MB, free: 14.32 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00108/0.1001, allocations: 0.6238 MB / 357.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1001, allocations: 12.03 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002869/0.1004, allocations: 44.55 kB / 357.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.1009, allocations: 316.2 kB / 357.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.101, allocations: 88.52 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.101, allocations: 24.38 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.1017, allocations: 381.4 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1017, allocations: 4 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.1017, allocations: 12 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1018, allocations: 4 kB / 358.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008019/0.1026, allocations: 421.9 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/0.1044, allocations: 1.237 MB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006201/0.1051, allocations: 365.7 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000346/0.1054, allocations: 180.8 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.604e-05/0.1055, allocations: 8 kB / 360.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.1055, allocations: 34.56 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1055, allocations: 3.938 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004471/0.11, allocations: 1.934 MB / 362.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.11, allocations: 84.86 kB / 362.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.1103, allocations: 242.1 kB / 362.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.1104, allocations: 33.7 kB / 362.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.786e-05/0.1105, allocations: 140.6 kB / 363 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.1106, allocations: 145.9 kB / 363.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.1107, allocations: 86.02 kB / 363.2 MB, free: 7.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1108, allocations: 334.8 kB / 363.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.1112, allocations: 164.8 kB / 363.7 MB, free: 7.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.1116, allocations: 233.9 kB / 363.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.1122, allocations: 347.2 kB / 364.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1122, allocations: 0 / 364.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001024/0.1132, allocations: 0.5551 MB / 364.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1133, allocations: 4 kB / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1133, allocations: 128 / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006887/0.114, allocations: 252.6 kB / 365.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.1142, allocations: 55.89 kB / 365.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003671/0.1179, allocations: 2.878 MB / 368 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.1182, allocations: 24.02 kB / 368 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.1182, allocations: 27.92 kB / 368 MB, free: 2.551 MB / 302.1 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.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.1184, allocations: 157.7 kB / 368.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.1185, allocations: 27.7 kB / 368.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.735e-05/0.1186, allocations: 42.98 kB / 368.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1186, allocations: 11.94 kB / 368.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1186, allocations: 0 / 368.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1186, allocations: 3.984 kB / 368.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.1204, allocations: 1.094 MB / 369.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1204, allocations: 0 / 369.4 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.1207, allocations: 39.97 kB / 369.4 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.1213, allocations: 232.7 kB / 369.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.1214, allocations: 11.98 kB / 369.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1822/0.3035, allocations: 2.834 MB / 372.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3036, allocations: 3.438 kB / 372.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.305, allocations: 0.8194 MB / 373.3 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.3053, allocations: 143.3 kB / 373.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.665e-05/0.3053, allocations: 15.56 kB / 373.5 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.3056, allocations: 22.7 kB / 373.5 MB, free: 24.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.3058, allocations: 60.42 kB / 373.5 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.3058, allocations: 16.81 kB / 373.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001948/0.306, allocations: 182 kB / 373.7 MB, free: 23.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.306, allocations: 0 / 373.7 MB, free: 23.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006328/0.3067, allocations: 141.1 kB / 373.9 MB, free: 23.93 MB / 302.1 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 (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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002356/0.3069, allocations: 136.6 kB / 374 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.3083, allocations: 0.6334 MB / 374.6 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3084, allocations: 0 / 374.6 MB, free: 23.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006445/0.309, allocations: 439.7 kB / 375.1 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.3094, allocations: 39.11 kB / 375.1 MB, free: 23.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.3106, allocations: 0.6797 MB / 375.8 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.3108, allocations: 0.7771 MB / 376.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.311, allocations: 59.08 kB / 376.6 MB, free: 22.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.871e-05/0.3111, allocations: 29.95 kB / 376.7 MB, free: 22.27 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3111, allocations: 0 / 376.7 MB, free: 22.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01295/0.324, allocations: 7.106 MB / 383.8 MB, free: 20.68 MB / 302.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches