Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001406/0.001406, allocations: 191 kB / 18.67 MB, free: 4.434 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.315/1.315, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009611/0.0009612, allocations: 47.94 kB / 351.9 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2491, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01405/0.2632, allocations: 12.91 MB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.2751, allocations: 11.55 MB / 425.8 MB, free: 332 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.2753, allocations: 0 / 425.8 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.2756, allocations: 75.55 kB / 425.9 MB, free: 256 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002852/0.276, allocations: 79.44 kB / 426 MB, free: 176 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01215/0.2882, allocations: 5.072 MB / 431.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003437/0.2885, allocations: 234.8 kB / 431.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.018e-05/0.2886, allocations: 9.453 kB / 431.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004001/0.289, allocations: 195.3 kB / 431.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.2891, allocations: 79.73 kB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.2892, allocations: 8 kB / 431.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01178/0.3009, allocations: 6.981 MB / 438.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.3011, allocations: 35.91 kB / 438.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.3012, allocations: 67.67 kB / 438.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007667/0.3089, allocations: 3.864 MB / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3089, allocations: 0 / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3089, allocations: 0 / 442.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3089, allocations: 0 / 442.5 MB, free: 15.62 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.00448/0.3134, allocations: 1.143 MB / 443.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3135, allocations: 8.031 kB / 443.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000469/0.3139, allocations: 52.7 kB / 443.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.3142, allocations: 224.2 kB / 443.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.3143, allocations: 8.656 kB / 443.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.3143, allocations: 12.38 kB / 444 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.3155, allocations: 396.8 kB / 444.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3155, allocations: 3.906 kB / 444.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.3156, allocations: 8 kB / 444.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3156, allocations: 4 kB / 444.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.3169, allocations: 359.5 kB / 444.7 MB, free: 13.31 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.0013/0.3182, allocations: 1.187 MB / 445.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000804/0.319, allocations: 279.8 kB / 446.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.3193, allocations: 114.8 kB / 446.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0882/0.4075, allocations: 47.65 MB / 493.9 MB, free: 6.336 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.4076, allocations: 38.55 kB / 494 MB, free: 6.289 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.195e-06/0.4076, allocations: 0 / 494 MB, free: 6.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006659/0.4143, allocations: 1.578 MB / 495.5 MB, free: 4.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.4143, allocations: 114.8 kB / 495.7 MB, free: 4.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.113e-05/0.4144, allocations: 117.8 kB / 495.8 MB, free: 4.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.4145, allocations: 37.7 kB / 495.8 MB, free: 4.352 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.4145, allocations: 100.6 kB / 495.9 MB, free: 4.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.514e-05/0.4146, allocations: 122.3 kB / 496 MB, free: 4.129 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.4148, allocations: 69.47 kB / 496.1 MB, free: 4.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4149, allocations: 330.8 kB / 496.4 MB, free: 3.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.4152, allocations: 127.9 kB / 496.5 MB, free: 3.598 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/0.4156, allocations: 198.5 kB / 496.7 MB, free: 3.379 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007361/0.4164, allocations: 358.5 kB / 497.1 MB, free: 3.004 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4164, allocations: 0 / 497.1 MB, free: 3.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001017/0.4174, allocations: 425.9 kB / 497.5 MB, free: 2.578 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.4174, allocations: 4 kB / 497.5 MB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4174, allocations: 7.984 kB / 497.5 MB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002297/0.4177, allocations: 32.84 kB / 497.5 MB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.4182, allocations: 87.88 kB / 497.6 MB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003345/0.4185, allocations: 0.5603 MB / 498.2 MB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.4188, allocations: 19.89 kB / 498.2 MB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.4188, allocations: 19.98 kB / 498.2 MB, free: 1.82 MB / 414.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.0001454/0.419, allocations: 137.8 kB / 498.4 MB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.971e-05/0.4191, allocations: 19.91 kB / 498.4 MB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.421, allocations: 1.446 MB / 499.8 MB, free: 200 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.4211, allocations: 19.97 kB / 499.9 MB, free: 180 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4211, allocations: 0 / 499.9 MB, free: 180 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.4211, allocations: 3.984 kB / 499.9 MB, free: 176 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.4238, allocations: 1.987 MB / 0.4901 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.4239, allocations: 384 / 0.4901 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004253/0.4243, allocations: 83.86 kB / 0.4902 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003035/0.4246, allocations: 72.92 kB / 0.4902 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.4246, allocations: 11.98 kB / 0.4902 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003329/0.425, allocations: 0.5952 MB / 0.4908 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.425, allocations: 3.938 kB / 0.4908 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.427, allocations: 1.69 MB / 0.4925 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.3e-05/0.4271, allocations: 124.4 kB / 0.4926 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.4272, allocations: 12 kB / 0.4926 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003574/0.4275, allocations: 27.97 kB / 0.4926 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.4276, allocations: 31.89 kB / 0.4927 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.4276, allocations: 19.98 kB / 0.4927 GB, free: 11.37 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.836e-05/0.4277, allocations: 91.27 kB / 0.4928 GB, free: 11.28 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4277, allocations: 0 / 0.4928 GB, free: 11.28 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002567/0.4303, allocations: 0.9488 MB / 0.4937 GB, free: 10.33 MB / 430.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.003919/0.4342, allocations: 1.149 MB / 0.4948 GB, free: 9.176 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.4357, allocations: 0.6167 MB / 0.4954 GB, free: 8.559 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4357, allocations: 4.062 kB / 0.4954 GB, free: 8.555 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00075/0.4364, allocations: 0.5007 MB / 0.4959 GB, free: 8.055 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007328/0.4372, allocations: 84.44 kB / 0.496 GB, free: 7.973 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.4396, allocations: 1.343 MB / 0.4973 GB, free: 6.582 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.4399, allocations: 0.8178 MB / 0.4981 GB, free: 5.738 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.4401, allocations: 39.41 kB / 0.4981 GB, free: 5.699 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4401, allocations: 0 / 0.4981 GB, free: 5.699 MB / 430.1 MB Notification: Performance of Templates: time 0.03297/0.4731, allocations: 21.81 MB / 0.5194 GB, free: 15.85 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches