Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000956/0.000956, allocations: 191.8 kB / 17.37 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007998/0.0007998, allocations: 103.4 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002219, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2335, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01959/0.2532, allocations: 12.44 MB / 420.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.2761, allocations: 14.36 MB / 434.8 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.2763, allocations: 4 kB / 434.8 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004138/0.2768, allocations: 59.61 kB / 434.9 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004724/0.2773, allocations: 107.3 kB / 435 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02356/0.3008, allocations: 4.541 MB / 439.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007737/0.3016, allocations: 334.5 kB / 439.9 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.3018, allocations: 17.69 kB / 439.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008024/0.3026, allocations: 199.1 kB / 440.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003182/0.3029, allocations: 107.6 kB / 440.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.066e-05/0.303, allocations: 8 kB / 440.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02196/0.325, allocations: 6.496 MB / 446.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.3252, allocations: 43.81 kB / 446.7 MB, free: 4.945 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002593/0.3255, allocations: 117.4 kB / 446.9 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007918/0.3334, allocations: 2.631 MB / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3335, allocations: 0 / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.3335, allocations: 0 / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.3335, allocations: 0 / 449.5 MB, free: 2.188 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.004136/0.3377, allocations: 0.9556 MB / 450.4 MB, free: 1.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.3377, allocations: 12.03 kB / 450.5 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002717/0.3405, allocations: 176.6 kB / 450.6 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.341, allocations: 263.9 kB / 450.9 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.3411, allocations: 20.81 kB / 450.9 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-05/0.3412, allocations: 20.38 kB / 450.9 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005806/0.347, allocations: 0.9128 MB / 451.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.3471, allocations: 7.938 kB / 451.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/0.3471, allocations: 12 kB / 451.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.3472, allocations: 4 kB / 451.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00543/0.3526, allocations: 0.9851 MB / 452.8 MB, free: 14.72 MB / 330.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.002681/0.3553, allocations: 1.343 MB / 454.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00476/0.3601, allocations: 0.7331 MB / 454.9 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005241/0.3607, allocations: 157.4 kB / 455.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09691/0.4576, allocations: 42.38 MB / 497.5 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4577, allocations: 34.84 kB / 497.5 MB, free: 12.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.4577, allocations: 0 / 497.5 MB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.005021/0.4627, allocations: 1.379 MB / 498.9 MB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.4628, allocations: 59.34 kB / 498.9 MB, free: 11.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.4629, allocations: 113.8 kB / 499 MB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.426e-05/0.463, allocations: 37.64 kB / 499.1 MB, free: 10.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.214e-05/0.4631, allocations: 124.6 kB / 499.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.4632, allocations: 114.4 kB / 499.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.544e-05/0.4633, allocations: 8 kB / 499.3 MB, free: 10.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.4634, allocations: 322.8 kB / 499.6 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006058/0.464, allocations: 347.6 kB / 500 MB, free: 10.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006486/0.4646, allocations: 407.5 kB / 0.4886 GB, free: 9.582 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.4659, allocations: 0.7104 MB / 0.4893 GB, free: 8.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4659, allocations: 0 / 0.4893 GB, free: 8.844 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001665/0.4676, allocations: 0.88 MB / 0.4902 GB, free: 7.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.4676, allocations: 8 kB / 0.4902 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4676, allocations: 0 / 0.4902 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.4677, allocations: 7.938 kB / 0.4902 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/0.4683, allocations: 175.8 kB / 0.4904 GB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.4683, allocations: 7.938 kB / 0.4904 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.4688, allocations: 43.89 kB / 0.4904 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.4689, allocations: 63.92 kB / 0.4905 GB, free: 7.656 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000228/0.4691, allocations: 138.8 kB / 0.4906 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4692, allocations: 19.81 kB / 0.4906 GB, free: 7.492 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1624/0.6316, allocations: 7.98 MB / 0.4984 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.734e-05/0.6317, allocations: 26.8 kB / 0.4985 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.6317, allocations: 2.25 kB / 0.4985 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.6318, allocations: 1.312 kB / 0.4985 GB, free: 99.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002618/0.6344, allocations: 3.593 MB / 0.502 GB, free: 97.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.6344, allocations: 1.375 kB / 0.502 GB, free: 97.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006467/0.635, allocations: 115.8 kB / 0.5021 GB, free: 97.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.455e-06/0.6351, allocations: 3.344 kB / 0.5021 GB, free: 97.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.6351, allocations: 13.84 kB / 0.5021 GB, free: 97.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.6351, allocations: 2.156 kB / 0.5021 GB, free: 97.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6352, allocations: 0 / 0.5021 GB, free: 97.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.6374, allocations: 1.855 MB / 0.5039 GB, free: 96.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.6375, allocations: 148.6 kB / 0.5041 GB, free: 95.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.951e-05/0.6375, allocations: 10 kB / 0.5041 GB, free: 95.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.6379, allocations: 27.14 kB / 0.5041 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.638, allocations: 25.7 kB / 0.5041 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.638, allocations: 18.95 kB / 0.5041 GB, free: 95.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.087e-05/0.638, allocations: 88.22 kB / 0.5042 GB, free: 95.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6381, allocations: 0 / 0.5042 GB, free: 95.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002449/0.6405, allocations: 0.9906 MB / 0.5052 GB, free: 95.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004112/0.6446, allocations: 1.146 MB / 0.5063 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.6461, allocations: 0.9115 MB / 0.5072 GB, free: 95.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6462, allocations: 3.031 kB / 0.5072 GB, free: 95.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005827/0.6467, allocations: 0.5913 MB / 0.5078 GB, free: 95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.6474, allocations: 84.34 kB / 0.5079 GB, free: 94.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.6489, allocations: 1.66 MB / 0.5095 GB, free: 94.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.6491, allocations: 0.8546 MB / 0.5103 GB, free: 93.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000324/0.6495, allocations: 90.77 kB / 0.5104 GB, free: 93.33 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6495, allocations: 3.938 kB / 0.5104 GB, free: 93.33 MB / 378.7 MB Notification: Performance of Templates: time 0.02567/0.6751, allocations: 24.13 MB / 0.534 GB, free: 69.61 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches