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.0008908/0.000891, allocations: 196.5 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.192/1.192, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007797/0.0007798, allocations: 101.4 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001808/0.0001809, allocations: 11.98 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1633, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.008884/0.1722, allocations: 12.43 MB / 419.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1823, allocations: 14.36 MB / 434.3 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1824, allocations: 0 / 434.3 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.1826, allocations: 67.61 kB / 434.3 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000225/0.1829, allocations: 95.33 kB / 434.4 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009608/0.1925, allocations: 4.54 MB / 439 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.1929, allocations: 334.5 kB / 439.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.566e-05/0.1929, allocations: 13.69 kB / 439.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.1933, allocations: 203.1 kB / 439.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.1934, allocations: 103.7 kB / 439.6 MB, free: 11.65 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.1934, allocations: 11.94 kB / 439.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009166/0.2026, allocations: 6.489 MB / 446.1 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.747e-05/0.2027, allocations: 35.83 kB / 446.2 MB, free: 5.109 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.712e-05/0.2028, allocations: 65.64 kB / 446.2 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003151/0.2059, allocations: 2.635 MB / 448.9 MB, free: 2.398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2059, allocations: 3.938 kB / 448.9 MB, free: 2.395 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2059, allocations: 0 / 448.9 MB, free: 2.395 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2059, allocations: 0 / 448.9 MB, free: 2.395 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.002171/0.2081, allocations: 0.9516 MB / 449.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.2082, allocations: 16.03 kB / 449.8 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.2094, allocations: 175.6 kB / 450 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.2096, allocations: 258.7 kB / 450.3 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.2097, allocations: 16.44 kB / 450.3 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.2097, allocations: 23.91 kB / 450.3 MB, free: 0.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0028/0.2125, allocations: 0.9168 MB / 451.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2125, allocations: 3.938 kB / 451.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.2126, allocations: 8 kB / 451.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.2126, allocations: 8 kB / 451.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002925/0.2155, allocations: 0.9812 MB / 452.2 MB, free: 14.94 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.00139/0.2169, allocations: 1.343 MB / 453.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/0.2193, allocations: 0.7253 MB / 454.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/0.2196, allocations: 165.4 kB / 454.4 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06934/0.2889, allocations: 42.38 MB / 496.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.289, allocations: 30.84 kB / 496.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.693e-06/0.289, allocations: 0 / 496.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004508/0.2935, allocations: 1.376 MB / 498.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.2935, allocations: 59.34 kB / 498.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.193e-05/0.2936, allocations: 117.9 kB / 498.4 MB, free: 11.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.027e-05/0.2937, allocations: 33.7 kB / 498.4 MB, free: 11.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.2938, allocations: 128.5 kB / 498.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.2939, allocations: 110.4 kB / 498.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.2939, allocations: 8 kB / 498.7 MB, free: 10.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.789e-05/0.294, allocations: 330.8 kB / 499 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005793/0.2946, allocations: 339.6 kB / 499.3 MB, free: 10.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006124/0.2952, allocations: 411.5 kB / 499.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.2958, allocations: 336.1 kB / 0.4883 GB, free: 9.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2959, allocations: 7.938 kB / 0.4883 GB, free: 9.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00154/0.2974, allocations: 0.8721 MB / 0.4892 GB, free: 8.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.2974, allocations: 8 kB / 0.4892 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.2974, allocations: 0 / 0.4892 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.2975, allocations: 4 kB / 0.4892 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/0.2981, allocations: 183.7 kB / 0.4894 GB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.2981, allocations: 7.984 kB / 0.4894 GB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.2984, allocations: 39.81 kB / 0.4894 GB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.942e-05/0.2985, allocations: 67.92 kB / 0.4895 GB, free: 8.289 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.000206/0.2988, allocations: 138.5 kB / 0.4896 GB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.833e-05/0.2989, allocations: 15.81 kB / 0.4896 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006895/0.3058, allocations: 7.99 MB / 0.4974 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.3058, allocations: 31.89 kB / 0.4975 GB, free: 92 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3058, allocations: 3.953 kB / 0.4975 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.3058, allocations: 3.984 kB / 0.4975 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1339/0.4397, allocations: 3.596 MB / 0.501 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.4398, allocations: 3.891 kB / 0.501 GB, free: 97.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.4404, allocations: 110.7 kB / 0.5011 GB, free: 97.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4404, allocations: 0.5625 kB / 0.5011 GB, free: 97.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.4404, allocations: 11.31 kB / 0.5011 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.4404, allocations: 3.875 kB / 0.5011 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4405, allocations: 1.422 kB / 0.5011 GB, free: 97.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.4424, allocations: 1.851 MB / 0.5029 GB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.4425, allocations: 146.7 kB / 0.5031 GB, free: 96.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.4425, allocations: 11.59 kB / 0.5031 GB, free: 96.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.4428, allocations: 21.47 kB / 0.5031 GB, free: 96.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.601e-05/0.4429, allocations: 30.56 kB / 0.5031 GB, free: 96.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.443, allocations: 16.53 kB / 0.5031 GB, free: 96.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.801e-05/0.443, allocations: 89.53 kB / 0.5032 GB, free: 96.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.443, allocations: 6.344 kB / 0.5032 GB, free: 96.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002225/0.4452, allocations: 0.985 MB / 0.5042 GB, free: 96.48 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.003689/0.4489, allocations: 1.144 MB / 0.5053 GB, free: 96.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.4502, allocations: 0.9146 MB / 0.5062 GB, free: 95.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4502, allocations: 0 / 0.5062 GB, free: 95.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.4508, allocations: 0.5883 MB / 0.5068 GB, free: 95.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.4514, allocations: 84.17 kB / 0.5069 GB, free: 95.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.4529, allocations: 1.662 MB / 0.5085 GB, free: 94.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.4531, allocations: 0.8505 MB / 0.5093 GB, free: 94.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.4534, allocations: 99.3 kB / 0.5094 GB, free: 94 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4534, allocations: 0 / 0.5094 GB, free: 94 MB / 378.7 MB Notification: Performance of Templates: time 0.02114/0.4745, allocations: 24.11 MB / 0.533 GB, free: 70.32 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