Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002692/0.002699, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.422/3.422, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002767/0.002769, allocations: 94.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006787/0.000679, allocations: 15.98 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1497, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.03405/0.1838, allocations: 11.07 MB / 385.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4139/0.5978, allocations: 9.816 MB / 395.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.598, allocations: 1.469 kB / 395.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005402/0.5986, allocations: 61.89 kB / 395.5 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004701/0.5991, allocations: 83.81 kB / 395.6 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03027/0.6294, allocations: 3.907 MB / 399.5 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.6301, allocations: 157.6 kB / 399.6 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.7e-05/0.6302, allocations: 13.84 kB / 399.6 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.6314, allocations: 200.3 kB / 399.8 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.6317, allocations: 66.03 kB / 399.9 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.214e-05/0.6317, allocations: 4.625 kB / 399.9 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03416/0.6659, allocations: 6.799 MB / 406.7 MB, free: 7.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.6662, allocations: 37.17 kB / 406.7 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.6663, allocations: 51.2 kB / 406.8 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.6783, allocations: 2.559 MB / 409.3 MB, free: 6.453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.6784, allocations: 1.625 kB / 409.3 MB, free: 6.453 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.659e-06/0.6784, allocations: 0 / 409.3 MB, free: 6.453 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.6784, allocations: 0 / 409.3 MB, free: 6.453 MB / 282.7 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.0126/0.691, allocations: 1.114 MB / 410.5 MB, free: 5.668 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.6911, allocations: 9.625 kB / 410.5 MB, free: 5.668 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001265/0.6924, allocations: 57.22 kB / 410.5 MB, free: 5.645 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.693, allocations: 221.4 kB / 410.7 MB, free: 5.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.658e-05/0.6931, allocations: 15.16 kB / 410.8 MB, free: 5.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.6932, allocations: 17.33 kB / 410.8 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003382/0.6966, allocations: 381.9 kB / 411.1 MB, free: 5.125 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/0.6967, allocations: 9.906 kB / 411.2 MB, free: 5.117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.728e-05/0.6968, allocations: 6.562 kB / 411.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.6969, allocations: 4.094 kB / 411.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004127/0.701, allocations: 366.3 kB / 411.5 MB, free: 4.945 MB / 282.7 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.003015/0.7041, allocations: 1.202 MB / 412.7 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.7064, allocations: 290 kB / 413 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2511/0.9576, allocations: 47.88 MB / 460.9 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.246e-05/0.9577, allocations: 50.62 kB / 460.9 MB, free: 92 kB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.747e-06/0.9577, allocations: 0 / 460.9 MB, free: 92 kB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01652/0.9743, allocations: 1.602 MB / 462.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.9744, allocations: 118.8 kB / 462.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.9747, allocations: 121.8 kB / 462.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.689e-05/0.9748, allocations: 29.7 kB / 462.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.9749, allocations: 173.6 kB / 463 MB, free: 13.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.9752, allocations: 117 kB / 463.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/0.9752, allocations: 12.38 kB / 463.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.9755, allocations: 326.8 kB / 463.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009762/0.9765, allocations: 135.7 kB / 463.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.9775, allocations: 206.8 kB / 463.8 MB, free: 13.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.9786, allocations: 159.8 kB / 463.9 MB, free: 13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.9786, allocations: 0 / 463.9 MB, free: 13 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002784/0.9814, allocations: 437.9 kB / 464.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.9816, allocations: 4.219 kB / 464.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.9816, allocations: 4 kB / 464.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005359/0.9821, allocations: 36.83 kB / 464.4 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.9833, allocations: 91.88 kB / 464.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008065/0.9842, allocations: 0.5445 MB / 465 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008305/0.9851, allocations: 32 kB / 465 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.9e-05/0.9852, allocations: 8 kB / 465.1 MB, free: 11.81 MB / 346.7 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 (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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003339/0.9855, allocations: 145.7 kB / 465.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.9858, allocations: 19.89 kB / 465.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005376/0.9912, allocations: 1.458 MB / 466.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.305e-05/0.9913, allocations: 19.97 kB / 466.7 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.9913, allocations: 0 / 466.7 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.9914, allocations: 7.984 kB / 466.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007347/0.9987, allocations: 1.997 MB / 468.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-05/0.9988, allocations: 0.9375 kB / 468.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.9999, allocations: 91.98 kB / 468.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008753/1.001, allocations: 72.75 kB / 468.9 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/1.001, allocations: 15.98 kB / 468.9 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007824/1.002, allocations: 0.5836 MB / 469.5 MB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.189e-05/1.002, allocations: 7.969 kB / 469.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006345/1.008, allocations: 1.767 MB / 471.2 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/1.009, allocations: 128.4 kB / 471.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/1.009, allocations: 8 kB / 471.4 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000901/1.01, allocations: 28.02 kB / 471.4 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/1.01, allocations: 39.89 kB / 471.4 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.513e-05/1.01, allocations: 11.98 kB / 471.4 MB, free: 5.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001299/1.01, allocations: 91.22 kB / 471.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.01, allocations: 0 / 471.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006809/1.017, allocations: 0.9604 MB / 472.5 MB, free: 4.176 MB / 346.7 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 (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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01291/1.03, allocations: 1.146 MB / 473.6 MB, free: 3.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/1.033, allocations: 0.601 MB / 474.2 MB, free: 2.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.033, allocations: 0 / 474.2 MB, free: 2.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00209/1.035, allocations: 0.5132 MB / 474.8 MB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/1.037, allocations: 71.88 kB / 474.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006019/1.043, allocations: 1.601 MB / 476.4 MB, free: 280 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008063/1.044, allocations: 0.8217 MB / 477.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000404/1.044, allocations: 35.42 kB / 477.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/1.044, allocations: 0 / 477.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of Templates: time 0.08915/1.133, allocations: 24.99 MB / 0.4905 GB, free: 6.355 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches