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.001464/0.001464, allocations: 176.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.4 MB / 222.9 MB, free: 8.918 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.0007541/0.0007541, allocations: 94.41 kB / 271.2 MB, free: 8.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2466, allocations: 47.57 MB / 375.1 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01179/0.2585, allocations: 11.97 MB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009401/0.2679, allocations: 10.71 MB / 397.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.2681, allocations: 0 / 397.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003167/0.2684, allocations: 67.67 kB / 397.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.2687, allocations: 75.5 kB / 397.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01074/0.2795, allocations: 3.88 MB / 401.8 MB, free: 21.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.2798, allocations: 238.9 kB / 402 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.49e-05/0.2799, allocations: 9.438 kB / 402 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.2802, allocations: 179.2 kB / 402.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.2803, allocations: 71.73 kB / 402.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.2804, allocations: 4 kB / 402.3 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01006/0.2904, allocations: 6.672 MB / 408.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.941e-05/0.2905, allocations: 27.91 kB / 409 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2907, allocations: 93.42 kB / 409.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004356/0.295, allocations: 2.581 MB / 411.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.295, allocations: 0 / 411.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2951, allocations: 0 / 411.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2951, allocations: 0 / 411.6 MB, free: 12.07 MB / 298.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.004091/0.2992, allocations: 1.112 MB / 412.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2992, allocations: 8.031 kB / 412.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/0.2996, allocations: 56.7 kB / 412.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.2999, allocations: 220.1 kB / 413 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.2999, allocations: 12.66 kB / 413 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.2999, allocations: 12.38 kB / 413 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.301, allocations: 390.5 kB / 413.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3011, allocations: 8 kB / 413.4 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.564e-05/0.3011, allocations: 11.98 kB / 413.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.3011, allocations: 4 kB / 413.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3023, allocations: 364.2 kB / 413.8 MB, free: 9.781 MB / 298.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.001065/0.3034, allocations: 1.199 MB / 415 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007196/0.3041, allocations: 287.8 kB / 415.3 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.3044, allocations: 122.8 kB / 415.4 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08427/0.3887, allocations: 47.88 MB / 463.3 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.922e-05/0.3888, allocations: 34.56 kB / 463.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.234e-06/0.3888, allocations: 4 kB / 463.3 MB, free: 2.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.006715/0.3955, allocations: 1.615 MB / 464.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/0.3956, allocations: 118.8 kB / 465.1 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.3957, allocations: 121.7 kB / 465.2 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.3958, allocations: 37.64 kB / 465.2 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.291e-05/0.3958, allocations: 104.5 kB / 465.3 MB, free: 420 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.918e-05/0.3959, allocations: 118.3 kB / 465.4 MB, free: 300 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.396, allocations: 8 kB / 465.4 MB, free: 292 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3961, allocations: 322.8 kB / 465.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.3965, allocations: 143.7 kB / 465.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/0.3969, allocations: 206.5 kB / 466.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007707/0.3977, allocations: 350.6 kB / 466.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3977, allocations: 3.984 kB / 466.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001082/0.3988, allocations: 429.9 kB / 466.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3988, allocations: 8 kB / 466.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3989, allocations: 0 / 466.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.3991, allocations: 40.98 kB / 466.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004672/0.3996, allocations: 91.88 kB / 467 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003832/0.4, allocations: 0.5523 MB / 467.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.4003, allocations: 28.11 kB / 467.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.4004, allocations: 15.98 kB / 467.6 MB, free: 14.03 MB / 362.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.0001614/0.4005, allocations: 138.6 kB / 467.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.657e-05/0.4006, allocations: 15.81 kB / 467.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.4028, allocations: 1.466 MB / 469.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/0.4028, allocations: 23.97 kB / 469.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.4028, allocations: 0 / 469.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4028, allocations: 7.984 kB / 469.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.4057, allocations: 1.987 MB / 471.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.4057, allocations: 4 kB / 471.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.4062, allocations: 83.86 kB / 471.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003408/0.4065, allocations: 76.91 kB / 471.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.4066, allocations: 12 kB / 471.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003455/0.4069, allocations: 0.5878 MB / 472 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.4069, allocations: 8.078 kB / 472 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.4091, allocations: 1.705 MB / 473.7 MB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.79e-05/0.4092, allocations: 124.4 kB / 473.8 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.4093, allocations: 15.92 kB / 473.8 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.4096, allocations: 31.92 kB / 473.9 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.4097, allocations: 35.89 kB / 473.9 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/0.4098, allocations: 15.98 kB / 473.9 MB, free: 7.531 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.902e-05/0.4098, allocations: 91.27 kB / 474 MB, free: 7.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4099, allocations: 0 / 474 MB, free: 7.441 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002862/0.4127, allocations: 0.9527 MB / 475 MB, free: 6.488 MB / 362.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.005094/0.4178, allocations: 1.131 MB / 476.1 MB, free: 5.348 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.4193, allocations: 0.6007 MB / 476.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4193, allocations: 0 / 476.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000826/0.4201, allocations: 0.517 MB / 477.2 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/0.421, allocations: 79.92 kB / 477.3 MB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.4234, allocations: 1.582 MB / 478.9 MB, free: 2.516 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.4238, allocations: 0.8178 MB / 479.7 MB, free: 1.676 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.424, allocations: 47.34 kB / 479.7 MB, free: 1.629 MB / 362.7 MB Notification: Performance of SimCode: time 2.905e-06/0.424, allocations: 4 kB / 479.7 MB, free: 1.625 MB / 362.7 MB Notification: Performance of Templates: time 0.03373/0.4577, allocations: 21.78 MB / 0.4898 GB, free: 11.82 MB / 394.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/jenkins/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