Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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 3.2.3+maint.om/package.mo", uses=false) 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 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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 110.5 kB / 17.73 MB, free: 5.301 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.001506/0.001506, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 47.92 kB / 330.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0811/0.08252, allocations: 46.62 MB / 377.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1774/0.26, allocations: 13.32 MB / 390.8 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.2766, allocations: 15.55 MB / 406.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.2768, allocations: 1.125 kB / 406.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.2773, allocations: 74.92 kB / 406.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004322/0.2777, allocations: 115.1 kB / 406.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01817/0.2959, allocations: 5.953 MB / 412.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005207/0.2964, allocations: 337.3 kB / 412.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.578e-05/0.2965, allocations: 16.64 kB / 412.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005226/0.2971, allocations: 232 kB / 413 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.2973, allocations: 103.6 kB / 413.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.2973, allocations: 17.72 kB / 413.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01532/0.3126, allocations: 6.744 MB / 419.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.3128, allocations: 45.17 kB / 419.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.313, allocations: 101.1 kB / 420 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009315/0.3223, allocations: 3.902 MB / 424 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3224, allocations: 0 / 424 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3224, allocations: 0 / 424 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.3224, allocations: 0 / 424 MB, free: 14.93 MB / 350.1 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.002958/0.3254, allocations: 0.9836 MB / 424.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3254, allocations: 11.97 kB / 424.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/0.328, allocations: 181.5 kB / 425.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/0.3285, allocations: 248.2 kB / 425.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/0.3285, allocations: 20.81 kB / 425.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.3286, allocations: 28.03 kB / 425.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003318/0.3319, allocations: 0.905 MB / 426.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.332, allocations: 4 kB / 426.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.332, allocations: 4 kB / 426.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.332, allocations: 8 kB / 426.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.3353, allocations: 0.9695 MB / 427.3 MB, free: 11.47 MB / 350.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.001583/0.3369, allocations: 1.346 MB / 428.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.3395, allocations: 0.7323 MB / 429.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.3398, allocations: 154.7 kB / 429.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08212/0.422, allocations: 37.54 MB / 467.1 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.422, allocations: 42.5 kB / 467.1 MB, free: 15.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.264e-06/0.4221, allocations: 0 / 467.1 MB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005324/0.4274, allocations: 1.364 MB / 468.5 MB, free: 13.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.4274, allocations: 55.41 kB / 468.5 MB, free: 13.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.4276, allocations: 129.7 kB / 468.7 MB, free: 13.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.627e-05/0.4277, allocations: 29.7 kB / 468.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.4277, allocations: 116.7 kB / 468.8 MB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.4279, allocations: 106.4 kB / 468.9 MB, free: 13.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/0.4281, allocations: 161.6 kB / 469.1 MB, free: 13.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4283, allocations: 322.8 kB / 469.4 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006415/0.4289, allocations: 339.8 kB / 469.7 MB, free: 12.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006927/0.4296, allocations: 407.3 kB / 470.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.4309, allocations: 0.7118 MB / 470.8 MB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4309, allocations: 0 / 470.8 MB, free: 11.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001947/0.4329, allocations: 0.8679 MB / 471.7 MB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4329, allocations: 8 kB / 471.7 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4329, allocations: 7.875 kB / 471.7 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.433, allocations: 8.25 kB / 471.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006701/0.4337, allocations: 179.7 kB / 471.9 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.4337, allocations: 4 kB / 471.9 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.434, allocations: 39.61 kB / 471.9 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4342, allocations: 63.94 kB / 472 MB, free: 10.06 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002605/0.4344, allocations: 133.8 kB / 472.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.4346, allocations: 15.81 kB / 472.1 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00782/0.4424, allocations: 7.977 MB / 480.1 MB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.419e-05/0.4425, allocations: 27.95 kB / 480.1 MB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.4425, allocations: 0.5 kB / 480.1 MB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.4425, allocations: 3.984 kB / 480.1 MB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.4456, allocations: 3.596 MB / 483.7 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4456, allocations: 0 / 483.7 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006322/0.4462, allocations: 110.7 kB / 483.9 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4462, allocations: 0 / 483.9 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/0.4463, allocations: 23.92 kB / 483.9 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.4463, allocations: 0 / 483.9 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4463, allocations: 0 / 483.9 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.4487, allocations: 1.831 MB / 485.7 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.4488, allocations: 153.2 kB / 485.9 MB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.4489, allocations: 11.94 kB / 485.9 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.4492, allocations: 12 kB / 485.9 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.648e-05/0.4493, allocations: 27.95 kB / 485.9 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.4493, allocations: 19.98 kB / 485.9 MB, free: 11.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.328e-05/0.4494, allocations: 99.14 kB / 486 MB, free: 11.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4494, allocations: 0 / 486 MB, free: 11.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002816/0.4522, allocations: 0.9683 MB / 487 MB, free: 10.73 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00468/0.4569, allocations: 1.139 MB / 488.1 MB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.4585, allocations: 0.9036 MB / 489 MB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4585, allocations: 0 / 489 MB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.4593, allocations: 0.5908 MB / 489.6 MB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.46, allocations: 80.62 kB / 489.7 MB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.4619, allocations: 1.304 MB / 491 MB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.4624, allocations: 0.8575 MB / 491.9 MB, free: 5.805 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001936/0.4643, allocations: 1.784 MB / 493.7 MB, free: 4.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.4647, allocations: 91.34 kB / 493.7 MB, free: 3.934 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4647, allocations: 3.938 kB / 493.7 MB, free: 3.93 MB / 414.1 MB Notification: Performance of Templates: time 0.05803/0.5227, allocations: 40.83 MB / 0.522 GB, free: 11 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches