Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 123.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 192.3 kB / 21.4 MB, free: 1.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 47.92 kB / 367.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09646, allocations: 52.15 MB / 419.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01709/0.1135, allocations: 13.39 MB / 433.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2415/0.355, allocations: 15.59 MB / 448.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.3552, allocations: 2.969 kB / 448.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004103/0.3556, allocations: 85.39 kB / 448.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004476/0.3561, allocations: 110.9 kB / 448.9 MB, free: 7.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01746/0.3735, allocations: 5.958 MB / 454.9 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.374, allocations: 340.7 kB / 455.2 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.918e-05/0.3741, allocations: 13.62 kB / 455.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.3746, allocations: 229.4 kB / 455.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.3748, allocations: 104.1 kB / 455.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.3748, allocations: 13.94 kB / 455.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0154/0.3902, allocations: 6.766 MB / 462.4 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.3903, allocations: 46.95 kB / 462.4 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.3906, allocations: 106.5 kB / 462.5 MB, free: 7.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4024, allocations: 3.911 MB / 466.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4025, allocations: 0 / 466.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4025, allocations: 1.062 kB / 466.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.4025, allocations: 0 / 466.4 MB, free: 6.539 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.003809/0.4063, allocations: 1.021 MB / 467.4 MB, free: 5.797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4063, allocations: 8.625 kB / 467.4 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.4078, allocations: 174.5 kB / 467.6 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.4081, allocations: 262 kB / 467.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.4082, allocations: 15.75 kB / 467.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.4082, allocations: 20.75 kB / 467.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00314/0.4114, allocations: 0.9138 MB / 468.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.4114, allocations: 1.469 kB / 468.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.4114, allocations: 7.844 kB / 468.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.4114, allocations: 6.094 kB / 468.8 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.4147, allocations: 0.9711 MB / 469.8 MB, free: 4.977 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.001434/0.4161, allocations: 1.35 MB / 471.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.4187, allocations: 0.7266 MB / 471.9 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/0.419, allocations: 152.7 kB / 472 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08183/0.5008, allocations: 37.55 MB / 0.4976 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.5008, allocations: 38.56 kB / 0.4977 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.5008, allocations: 0 / 0.4977 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005757/0.5066, allocations: 1.371 MB / 0.499 GB, free: 14.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.5066, allocations: 59.34 kB / 0.4991 GB, free: 14.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.5068, allocations: 118.8 kB / 0.4992 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.5069, allocations: 29.7 kB / 0.4992 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.507, allocations: 120.8 kB / 0.4993 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.5072, allocations: 117.7 kB / 0.4994 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003325/0.5075, allocations: 173.3 kB / 0.4996 GB, free: 14.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5077, allocations: 322.8 kB / 0.4999 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007135/0.5084, allocations: 335.8 kB / 0.5002 GB, free: 13.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/0.5092, allocations: 418.5 kB / 0.5006 GB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.5107, allocations: 0.7071 MB / 0.5013 GB, free: 12.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.5107, allocations: 0 / 0.5013 GB, free: 12.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002038/0.5127, allocations: 0.8762 MB / 0.5022 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.5128, allocations: 4 kB / 0.5022 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5128, allocations: 4 kB / 0.5022 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.33e-05/0.5128, allocations: 12.62 kB / 0.5022 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000697/0.5135, allocations: 177.7 kB / 0.5024 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.5135, allocations: 4 kB / 0.5024 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.5139, allocations: 36.27 kB / 0.5024 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.514, allocations: 63.94 kB / 0.5025 GB, free: 11.16 MB / 414.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.0002949/0.5143, allocations: 140.1 kB / 0.5026 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.5145, allocations: 15.91 kB / 0.5026 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009184/0.5237, allocations: 7.964 MB / 0.5104 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.742e-05/0.5237, allocations: 30.53 kB / 0.5104 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.5238, allocations: 1.125 kB / 0.5104 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.5238, allocations: 7.984 kB / 0.5104 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004104/0.5279, allocations: 3.603 MB / 0.514 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.5279, allocations: 0 / 0.514 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006999/0.5286, allocations: 107.8 kB / 0.5141 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.329e-05/0.5286, allocations: 4 kB / 0.5141 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.099e-05/0.5287, allocations: 19.92 kB / 0.5141 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/0.5287, allocations: 0.5 kB / 0.5141 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5287, allocations: 0 / 0.5141 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003111/0.5318, allocations: 1.847 MB / 0.5159 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.532, allocations: 140.5 kB / 0.516 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.718e-05/0.532, allocations: 19.92 kB / 0.516 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.5324, allocations: 12.41 kB / 0.516 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.5325, allocations: 31.95 kB / 0.5161 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.5326, allocations: 15.98 kB / 0.5161 GB, free: 12.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.8e-05/0.5327, allocations: 91.34 kB / 0.5162 GB, free: 12.83 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5327, allocations: 0 / 0.5162 GB, free: 12.83 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006045/0.5387, allocations: 0.9941 MB / 0.5172 GB, free: 11.83 MB / 430.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.006772/0.5455, allocations: 1.153 MB / 0.5183 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.5474, allocations: 0.8795 MB / 0.5191 GB, free: 9.898 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.5474, allocations: 0.5 kB / 0.5191 GB, free: 9.898 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008673/0.5482, allocations: 0.5134 MB / 0.5196 GB, free: 9.387 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007498/0.549, allocations: 83.75 kB / 0.5197 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.5513, allocations: 1.361 MB / 0.521 GB, free: 7.926 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005525/0.5518, allocations: 0.8581 MB / 0.5219 GB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004174/0.5522, allocations: 91.36 kB / 0.522 GB, free: 6.949 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5522, allocations: 0 / 0.522 GB, free: 6.949 MB / 430.1 MB Notification: Performance of Templates: time 0.04233/0.5946, allocations: 23.98 MB / 0.5454 GB, free: 14.94 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.74869041214697]