Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.001633, allocations: 106 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001984/0.001984, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 63.89 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2401, allocations: 50.55 MB / 409.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01534/0.2555, allocations: 13 MB / 422.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01322/0.2687, allocations: 11.55 MB / 434.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2689, allocations: 8 kB / 434.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003433/0.2693, allocations: 71.55 kB / 434.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.2696, allocations: 75.44 kB / 434.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01302/0.2826, allocations: 5.086 MB / 439.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004139/0.2831, allocations: 227 kB / 439.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.063e-05/0.2832, allocations: 17.42 kB / 439.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004274/0.2836, allocations: 195.3 kB / 440.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.2837, allocations: 79.62 kB / 440.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.2838, allocations: 15.94 kB / 440.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01283/0.2966, allocations: 6.981 MB / 447.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.2967, allocations: 27.92 kB / 447.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.2969, allocations: 75.66 kB / 447.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00937/0.3063, allocations: 3.872 MB / 451.2 MB, free: 8.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3063, allocations: 0 / 451.2 MB, free: 8.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3063, allocations: 4 kB / 451.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.3063, allocations: 0 / 451.2 MB, free: 8.387 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.005191/0.3115, allocations: 1.143 MB / 452.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.3116, allocations: 8.031 kB / 452.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005176/0.3121, allocations: 52.7 kB / 452.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.3125, allocations: 220.2 kB / 452.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.3125, allocations: 16.66 kB / 452.6 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.3126, allocations: 16.28 kB / 452.6 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.314, allocations: 388.8 kB / 453 MB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.314, allocations: 4 kB / 453 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.3141, allocations: 4 kB / 453 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.3141, allocations: 7.938 kB / 453 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.3156, allocations: 351.6 kB / 453.4 MB, free: 6.082 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.3172, allocations: 1.191 MB / 454.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009117/0.3181, allocations: 283.7 kB / 454.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.3184, allocations: 118.3 kB / 454.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1046/0.423, allocations: 52.8 MB / 0.4958 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.505e-05/0.4231, allocations: 42.5 kB / 0.4959 GB, free: 8.863 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.495e-06/0.4232, allocations: 0 / 0.4959 GB, free: 8.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007092/0.4302, allocations: 1.572 MB / 0.4974 GB, free: 7.234 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.4304, allocations: 110.9 kB / 0.4975 GB, free: 7.102 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.4305, allocations: 125.7 kB / 0.4976 GB, free: 6.969 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.4305, allocations: 29.7 kB / 0.4977 GB, free: 6.934 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.4306, allocations: 104.5 kB / 0.4978 GB, free: 6.828 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.4307, allocations: 114.4 kB / 0.4979 GB, free: 6.715 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4309, allocations: 73.58 kB / 0.4979 GB, free: 6.637 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.431, allocations: 326.8 kB / 0.4983 GB, free: 6.309 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.4314, allocations: 135.7 kB / 0.4984 GB, free: 6.176 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/0.4319, allocations: 198.7 kB / 0.4986 GB, free: 5.957 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008353/0.4327, allocations: 350.5 kB / 0.4989 GB, free: 5.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4327, allocations: 7.938 kB / 0.4989 GB, free: 5.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001101/0.4338, allocations: 418 kB / 0.4993 GB, free: 5.164 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.4339, allocations: 8 kB / 0.4993 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.4339, allocations: 0 / 0.4993 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/0.4341, allocations: 44.94 kB / 0.4994 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/0.4346, allocations: 91.88 kB / 0.4995 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003956/0.435, allocations: 0.5522 MB / 0.5 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.4354, allocations: 24.11 kB / 0.5 GB, free: 4.418 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.4354, allocations: 19.98 kB / 0.5 GB, free: 4.398 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001863/0.4356, allocations: 141.6 kB / 0.5002 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.4357, allocations: 11.91 kB / 0.5002 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.4379, allocations: 1.446 MB / 0.5016 GB, free: 2.781 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-05/0.438, allocations: 31.94 kB / 0.5016 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.438, allocations: 0 / 0.5016 GB, free: 2.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.438, allocations: 4 kB / 0.5016 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.441, allocations: 1.967 MB / 0.5036 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.441, allocations: 4.125 kB / 0.5036 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004398/0.4414, allocations: 83.86 kB / 0.5036 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000313/0.4418, allocations: 68.7 kB / 0.5037 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.4418, allocations: 19.98 kB / 0.5037 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003657/0.4422, allocations: 0.5878 MB / 0.5043 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4422, allocations: 4.031 kB / 0.5043 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.4444, allocations: 1.694 MB / 0.506 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.171e-05/0.4445, allocations: 128.4 kB / 0.5061 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.4445, allocations: 11.94 kB / 0.5061 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.4449, allocations: 31.95 kB / 0.5061 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.445, allocations: 27.97 kB / 0.5061 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.4451, allocations: 15.98 kB / 0.5062 GB, free: 13.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.007e-05/0.4451, allocations: 95.27 kB / 0.5062 GB, free: 13.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4451, allocations: 0 / 0.5062 GB, free: 13.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002878/0.448, allocations: 0.9605 MB / 0.5072 GB, free: 12.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004902/0.4529, allocations: 1.137 MB / 0.5083 GB, free: 11.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4545, allocations: 0.6127 MB / 0.5089 GB, free: 11.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.4546, allocations: 4 kB / 0.5089 GB, free: 11.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008478/0.4554, allocations: 0.5128 MB / 0.5094 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008424/0.4563, allocations: 80.14 kB / 0.5095 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.4587, allocations: 1.32 MB / 0.5108 GB, free: 9.184 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.4591, allocations: 0.8215 MB / 0.5116 GB, free: 8.336 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.4593, allocations: 39.36 kB / 0.5116 GB, free: 8.297 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4593, allocations: 0 / 0.5116 GB, free: 8.297 MB / 446.1 MB Notification: Performance of Templates: time 0.03275/0.492, allocations: 21.89 MB / 0.533 GB, free: 2.387 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches