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.001127/0.001127, allocations: 118.8 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 202 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 55.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.233, allocations: 50.55 MB / 409.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01426/0.2473, allocations: 13 MB / 422.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.26, allocations: 11.55 MB / 433.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2601, allocations: 0 / 433.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000442/0.2606, allocations: 67.61 kB / 433.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004322/0.2611, allocations: 87.38 kB / 433.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01359/0.2747, allocations: 5.083 MB / 439 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.2751, allocations: 234.9 kB / 439.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.716e-05/0.2752, allocations: 13.44 kB / 439.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004669/0.2757, allocations: 195.3 kB / 439.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.2758, allocations: 75.69 kB / 439.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.2758, allocations: 8 kB / 439.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01296/0.2888, allocations: 6.989 MB / 446.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.651e-05/0.2889, allocations: 27.92 kB / 446.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.2891, allocations: 67.72 kB / 446.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009081/0.2982, allocations: 3.876 MB / 450.5 MB, free: 8.078 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2982, allocations: 7.938 kB / 450.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2982, allocations: 0 / 450.5 MB, free: 8.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.2982, allocations: 0 / 450.5 MB, free: 8.07 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.004994/0.3032, allocations: 1.147 MB / 451.6 MB, free: 6.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3033, allocations: 12.03 kB / 451.6 MB, free: 6.863 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005356/0.3039, allocations: 48.7 kB / 451.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.3042, allocations: 220.2 kB / 451.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.3043, allocations: 16.66 kB / 451.9 MB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/0.3043, allocations: 16.28 kB / 451.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3056, allocations: 384.8 kB / 452.3 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.3057, allocations: 4 kB / 452.3 MB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.3057, allocations: 4 kB / 452.3 MB, free: 6.117 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3057, allocations: 4 kB / 452.3 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.3071, allocations: 359.5 kB / 452.7 MB, free: 5.762 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.001396/0.3085, allocations: 1.195 MB / 453.9 MB, free: 4.465 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008218/0.3094, allocations: 275.7 kB / 454.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002719/0.3096, allocations: 118.9 kB / 454.3 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09597/0.4056, allocations: 52.8 MB / 0.4952 GB, free: 8.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/0.4057, allocations: 34.56 kB / 0.4952 GB, free: 8.547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 4.498e-06/0.4057, allocations: 0 / 0.4952 GB, free: 8.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006745/0.4125, allocations: 1.583 MB / 0.4968 GB, free: 6.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.4126, allocations: 110.8 kB / 0.4969 GB, free: 6.777 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.4127, allocations: 117.8 kB / 0.497 GB, free: 6.652 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.4128, allocations: 29.7 kB / 0.497 GB, free: 6.617 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.4128, allocations: 104.5 kB / 0.4971 GB, free: 6.512 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.992e-05/0.4129, allocations: 118.4 kB / 0.4972 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.4131, allocations: 73.59 kB / 0.4973 GB, free: 6.316 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4132, allocations: 326.8 kB / 0.4976 GB, free: 5.988 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.4136, allocations: 136.1 kB / 0.4977 GB, free: 5.855 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004053/0.414, allocations: 198.7 kB / 0.4979 GB, free: 5.637 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008179/0.4148, allocations: 346.5 kB / 0.4982 GB, free: 5.273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4149, allocations: 8 kB / 0.4983 GB, free: 5.266 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001077/0.4159, allocations: 430 kB / 0.4987 GB, free: 4.836 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.416, allocations: 4 kB / 0.4987 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.416, allocations: 3.938 kB / 0.4987 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002363/0.4162, allocations: 32.84 kB / 0.4987 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.4167, allocations: 95.8 kB / 0.4988 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000388/0.4171, allocations: 0.5524 MB / 0.4993 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.4174, allocations: 20.02 kB / 0.4994 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/0.4175, allocations: 19.98 kB / 0.4994 GB, free: 4.082 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.0001755/0.4176, allocations: 137.7 kB / 0.4995 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.4178, allocations: 11.91 kB / 0.4995 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/0.42, allocations: 1.451 MB / 0.5009 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.42, allocations: 23.97 kB / 0.501 GB, free: 2.438 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.42, allocations: 7.938 kB / 0.501 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.4201, allocations: 0 / 0.501 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.4229, allocations: 1.967 MB / 0.5029 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.423, allocations: 4 kB / 0.5029 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.4234, allocations: 79.86 kB / 0.503 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003154/0.4237, allocations: 72.83 kB / 0.503 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.4238, allocations: 19.98 kB / 0.503 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00038/0.4242, allocations: 0.5835 MB / 0.5036 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4242, allocations: 4.031 kB / 0.5036 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.4264, allocations: 1.694 MB / 0.5053 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.508e-05/0.4265, allocations: 128.4 kB / 0.5054 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.4265, allocations: 16.03 kB / 0.5054 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.4269, allocations: 23.92 kB / 0.5054 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-05/0.427, allocations: 31.95 kB / 0.5055 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.427, allocations: 12 kB / 0.5055 GB, free: 13.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.01e-05/0.4271, allocations: 91.27 kB / 0.5056 GB, free: 13.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4271, allocations: 0 / 0.5056 GB, free: 13.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002581/0.4297, allocations: 0.9608 MB / 0.5065 GB, free: 12.6 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.004604/0.4343, allocations: 1.144 MB / 0.5076 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.4357, allocations: 0.6202 MB / 0.5082 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4357, allocations: 448 / 0.5082 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008214/0.4365, allocations: 0.5123 MB / 0.5087 GB, free: 10.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007354/0.4373, allocations: 83.97 kB / 0.5088 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.4395, allocations: 1.291 MB / 0.5101 GB, free: 8.898 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.4399, allocations: 0.8215 MB / 0.5109 GB, free: 8.051 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003216/0.4402, allocations: 137.7 kB / 0.511 GB, free: 7.918 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.4403, allocations: 35.36 kB / 0.511 GB, free: 7.883 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4404, allocations: 0 / 0.511 GB, free: 7.883 MB / 446.1 MB Notification: Performance of Templates: time 0.2499/0.6903, allocations: 36.34 MB / 0.5465 GB, free: 129.3 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches