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.001508/0.001508, allocations: 116.9 kB / 18.41 MB, free: 4.559 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.001657/0.001657, allocations: 191 kB / 21.35 MB, free: 1.621 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.447/1.447, allocations: 222.9 MB / 247.1 MB, free: 4.203 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.001544/0.001544, allocations: 51.91 kB / 361 MB, free: 5.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 49.42 MB / 410.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01701/0.1256, allocations: 13.34 MB / 423.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.246/0.3716, allocations: 15.55 MB / 439.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.3718, allocations: 1.625 kB / 439.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003413/0.3722, allocations: 79.3 kB / 439.4 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003188/0.3725, allocations: 112.4 kB / 439.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01624/0.3888, allocations: 5.962 MB / 445.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.3893, allocations: 343 kB / 445.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.685e-05/0.3894, allocations: 12.34 kB / 445.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.3899, allocations: 221.9 kB / 446 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.39, allocations: 109.2 kB / 446.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.3901, allocations: 17.53 kB / 446.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01411/0.4042, allocations: 6.761 MB / 452.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.4043, allocations: 42.91 kB / 452.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.4045, allocations: 102 kB / 453 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.4149, allocations: 3.913 MB / 456.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4149, allocations: 0 / 456.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.415, allocations: 0 / 456.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.415, allocations: 1.125 kB / 456.9 MB, free: 1.195 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.00319/0.4182, allocations: 1.016 MB / 458 MB, free: 468 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.4182, allocations: 9.375 kB / 458 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.4196, allocations: 177.5 kB / 458.1 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.4199, allocations: 260 kB / 458.4 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.4199, allocations: 20.83 kB / 458.4 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.42, allocations: 22.09 kB / 458.4 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002905/0.4229, allocations: 0.918 MB / 459.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.4229, allocations: 5.094 kB / 459.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.423, allocations: 7 kB / 459.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.423, allocations: 10.14 kB / 459.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002969/0.426, allocations: 0.9685 MB / 460.3 MB, free: 15.65 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.001681/0.4276, allocations: 1.349 MB / 461.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.43, allocations: 0.7346 MB / 462.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002594/0.4303, allocations: 152 kB / 462.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07903/0.5093, allocations: 37.55 MB / 0.4884 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.5094, allocations: 37.31 kB / 0.4884 GB, free: 8.203 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 3.857e-06/0.5094, allocations: 0.5625 kB / 0.4884 GB, free: 8.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005181/0.5146, allocations: 1.367 MB / 0.4898 GB, free: 6.844 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.5147, allocations: 55.41 kB / 0.4898 GB, free: 6.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.5148, allocations: 129.7 kB / 0.49 GB, free: 6.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-05/0.5149, allocations: 29.7 kB / 0.49 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.515, allocations: 119.1 kB / 0.4901 GB, free: 6.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.5151, allocations: 121.9 kB / 0.4902 GB, free: 6.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003031/0.5154, allocations: 165.3 kB / 0.4904 GB, free: 6.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5156, allocations: 326.8 kB / 0.4907 GB, free: 5.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006469/0.5162, allocations: 344.4 kB / 0.491 GB, free: 5.539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007309/0.517, allocations: 403.3 kB / 0.4914 GB, free: 5.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.5184, allocations: 0.7153 MB / 0.4921 GB, free: 4.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5184, allocations: 0 / 0.4921 GB, free: 4.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001874/0.5203, allocations: 0.8686 MB / 0.4929 GB, free: 3.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.5203, allocations: 8 kB / 0.4929 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.5203, allocations: 256 / 0.4929 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.5203, allocations: 15.88 kB / 0.493 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006679/0.521, allocations: 179.8 kB / 0.4931 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.521, allocations: 4 kB / 0.4931 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.5214, allocations: 24.59 kB / 0.4932 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.5215, allocations: 67.92 kB / 0.4932 GB, free: 3.207 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.0002497/0.5218, allocations: 142.5 kB / 0.4934 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.5219, allocations: 15.91 kB / 0.4934 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00847/0.5304, allocations: 7.968 MB / 0.5012 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.32e-05/0.5305, allocations: 27.95 kB / 0.5012 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.5305, allocations: 0 / 0.5012 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.5305, allocations: 3.984 kB / 0.5012 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.534, allocations: 3.6 MB / 0.5047 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.534, allocations: 4.922 kB / 0.5047 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006379/0.5347, allocations: 115.8 kB / 0.5048 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.5347, allocations: 0 / 0.5048 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.484e-05/0.5347, allocations: 19.88 kB / 0.5048 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.5347, allocations: 4 kB / 0.5048 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5347, allocations: 3.984 kB / 0.5048 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.5374, allocations: 1.839 MB / 0.5066 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.5375, allocations: 148.5 kB / 0.5068 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.5376, allocations: 7.938 kB / 0.5068 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.5379, allocations: 15.98 kB / 0.5068 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.538, allocations: 27.95 kB / 0.5068 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.666e-05/0.5381, allocations: 19.98 kB / 0.5069 GB, free: 4.945 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.563e-05/0.5381, allocations: 91.22 kB / 0.5069 GB, free: 4.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5382, allocations: 0 / 0.5069 GB, free: 4.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003941/0.5421, allocations: 0.9902 MB / 0.5079 GB, free: 3.863 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.005697/0.5478, allocations: 1.15 MB / 0.509 GB, free: 2.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.5496, allocations: 0.8951 MB / 0.5099 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.5497, allocations: 0 / 0.5099 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.5505, allocations: 0.5915 MB / 0.5105 GB, free: 1.316 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006799/0.5512, allocations: 90.28 kB / 0.5106 GB, free: 1.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.5532, allocations: 1.353 MB / 0.5119 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.5537, allocations: 0.8659 MB / 0.5127 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.554, allocations: 91.36 kB / 0.5128 GB, free: 14.88 MB / 430.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5541, allocations: 0 / 0.5128 GB, free: 14.88 MB / 430.1 MB Notification: Performance of Templates: time 0.03855/0.5926, allocations: 23.98 MB / 0.5362 GB, free: 6.855 MB / 446.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.911731179920025]