Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001433/0.001433, allocations: 109.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001744, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 63.89 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2086, allocations: 50.54 MB / 412.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01417/0.2228, allocations: 13.44 MB / 425.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0161/0.2389, allocations: 15.56 MB / 441.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.903e-05/0.239, allocations: 0 / 441.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002935/0.2393, allocations: 79.55 kB / 441.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.2396, allocations: 111.2 kB / 441.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01295/0.2526, allocations: 5.975 MB / 447.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.253, allocations: 350.5 kB / 447.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.428e-05/0.2531, allocations: 17.67 kB / 447.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004428/0.2535, allocations: 235 kB / 448 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.2537, allocations: 103.6 kB / 448.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.2538, allocations: 12 kB / 448.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01159/0.2653, allocations: 6.77 MB / 454.9 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.2654, allocations: 43.83 kB / 454.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.2656, allocations: 107.6 kB / 455.1 MB, free: 5.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006154/0.2717, allocations: 3.914 MB / 459 MB, free: 1.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2717, allocations: 0 / 459 MB, free: 1.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2718, allocations: 0 / 459 MB, free: 1.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.2718, allocations: 0 / 459 MB, free: 1.863 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002397/0.2742, allocations: 0.9908 MB / 460 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2742, allocations: 16.02 kB / 460 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.2757, allocations: 176.6 kB / 460.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.276, allocations: 260 kB / 460.4 MB, free: 352 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.276, allocations: 16.81 kB / 460.4 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.2761, allocations: 28.06 kB / 460.4 MB, free: 308 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.2793, allocations: 0.9089 MB / 461.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2793, allocations: 4 kB / 461.4 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.2794, allocations: 8 kB / 461.4 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2794, allocations: 8 kB / 461.4 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003387/0.2828, allocations: 0.9695 MB / 462.3 MB, free: 14.38 MB / 382.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.001533/0.2843, allocations: 1.339 MB / 463.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/0.2871, allocations: 0.7325 MB / 464.4 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.2874, allocations: 156.8 kB / 464.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08282/0.3702, allocations: 42.18 MB / 0.4949 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.3703, allocations: 38.56 kB / 0.4949 GB, free: 12.42 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.3703, allocations: 0 / 0.4949 GB, free: 12.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005405/0.3757, allocations: 1.358 MB / 0.4962 GB, free: 11.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.3757, allocations: 59.39 kB / 0.4963 GB, free: 10.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.788e-05/0.3758, allocations: 121.8 kB / 0.4964 GB, free: 10.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.162e-05/0.3759, allocations: 29.7 kB / 0.4964 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.409e-05/0.376, allocations: 116.7 kB / 0.4965 GB, free: 10.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.3761, allocations: 114.3 kB / 0.4966 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.3764, allocations: 165.5 kB / 0.4968 GB, free: 10.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.3765, allocations: 322.8 kB / 0.4971 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006485/0.3772, allocations: 343.6 kB / 0.4974 GB, free: 9.762 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/0.3779, allocations: 403.5 kB / 0.4978 GB, free: 9.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3793, allocations: 0.7103 MB / 0.4985 GB, free: 8.602 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3793, allocations: 0 / 0.4985 GB, free: 8.602 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001873/0.3812, allocations: 0.8721 MB / 0.4994 GB, free: 7.723 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3812, allocations: 11.94 kB / 0.4994 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3812, allocations: 384 / 0.4994 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3813, allocations: 7.938 kB / 0.4994 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006997/0.382, allocations: 187.9 kB / 0.4996 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.382, allocations: 4 kB / 0.4996 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.3823, allocations: 31.72 kB / 0.4996 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.3825, allocations: 63.92 kB / 0.4997 GB, free: 7.422 MB / 430.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.0002336/0.3827, allocations: 141.7 kB / 0.4998 GB, free: 7.273 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.3829, allocations: 15.81 kB / 0.4998 GB, free: 7.258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007418/0.3903, allocations: 7.981 MB / 0.5076 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3903, allocations: 0 / 0.5076 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3903, allocations: 0 / 0.5076 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.92e-05/0.3904, allocations: 144.1 kB / 0.5077 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.251e-05/0.3905, allocations: 8 kB / 0.5078 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/0.391, allocations: 51.89 kB / 0.5078 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.3911, allocations: 31.95 kB / 0.5078 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001774/0.3929, allocations: 1.139 MB / 0.5089 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002319/0.3952, allocations: 1.763 MB / 0.5107 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006719/0.3959, allocations: 0.5373 MB / 0.5112 GB, free: 11.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.362e-05/0.3959, allocations: 91.27 kB / 0.5113 GB, free: 11.46 MB / 446.1 MB Notification: Performance of Backend: time 5.01e-07/0.3959, allocations: 0 / 0.5113 GB, free: 11.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005868/0.4018, allocations: 1.821 MB / 0.5131 GB, free: 9.625 MB / 446.1 MB Notification: Performance of SimCode: time 0.001348/0.4032, allocations: 1.296 MB / 0.5143 GB, free: 8.281 MB / 446.1 MB Notification: Performance of Templates: time 0.2103/0.6135, allocations: 44.5 MB / 0.5578 GB, free: 120.9 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches