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.001786/0.001786, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.001979/0.001979, allocations: 189.2 kB / 20.73 MB, free: 2.352 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.391/1.391, allocations: 225.6 MB / 249.1 MB, free: 3.586 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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 55.91 kB / 366.5 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.0909, allocations: 52.14 MB / 418.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0175/0.1084, allocations: 13.39 MB / 432 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2049/0.3133, allocations: 15.59 MB / 447.6 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.3135, allocations: 1.594 kB / 447.6 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.3138, allocations: 85.42 kB / 447.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.3141, allocations: 110.7 kB / 447.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01356/0.3277, allocations: 5.967 MB / 453.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004318/0.3281, allocations: 339.9 kB / 454.1 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.337e-05/0.3282, allocations: 10.62 kB / 454.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004074/0.3286, allocations: 225.6 kB / 454.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.3287, allocations: 109.7 kB / 454.4 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.3287, allocations: 14.31 kB / 454.4 MB, free: 7.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01257/0.3413, allocations: 6.764 MB / 461.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.594e-05/0.3414, allocations: 45.64 kB / 461.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.3416, allocations: 105.2 kB / 461.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008797/0.3504, allocations: 3.911 MB / 465.2 MB, free: 6.098 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3504, allocations: 4 kB / 465.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3504, allocations: 1.344 kB / 465.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.3504, allocations: 0 / 465.2 MB, free: 6.094 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.003077/0.3535, allocations: 1.014 MB / 466.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3535, allocations: 10.34 kB / 466.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.369e-05/0.3536, allocations: 59.09 kB / 466.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/0.3549, allocations: 172.2 kB / 466.5 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.3553, allocations: 265.2 kB / 466.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.3553, allocations: 18.16 kB / 466.8 MB, free: 5.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.3553, allocations: 25.56 kB / 466.8 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.3582, allocations: 0.9097 MB / 467.7 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3583, allocations: 5.094 kB / 467.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.3583, allocations: 8.812 kB / 467.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.3583, allocations: 5.438 kB / 467.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/0.3613, allocations: 0.9681 MB / 468.7 MB, free: 4.488 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.001357/0.3627, allocations: 1.343 MB / 470 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/0.3651, allocations: 0.7318 MB / 470.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.3653, allocations: 153.6 kB / 470.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07472/0.4401, allocations: 37.56 MB / 0.4966 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.4401, allocations: 34.56 kB / 0.4966 GB, free: 15.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.4401, allocations: 0 / 0.4966 GB, free: 15.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005306/0.4454, allocations: 1.363 MB / 0.4979 GB, free: 14.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.4455, allocations: 55.41 kB / 0.498 GB, free: 14.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.4456, allocations: 125.8 kB / 0.4981 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.66e-05/0.4456, allocations: 29.7 kB / 0.4981 GB, free: 14.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.894e-05/0.4457, allocations: 120.7 kB / 0.4982 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.4458, allocations: 119 kB / 0.4984 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/0.4461, allocations: 169.3 kB / 0.4985 GB, free: 13.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4462, allocations: 322.8 kB / 0.4988 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006191/0.4469, allocations: 343.2 kB / 0.4992 GB, free: 13.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007233/0.4476, allocations: 417.9 kB / 0.4996 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.4489, allocations: 0.7027 MB / 0.5002 GB, free: 12.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4489, allocations: 0 / 0.5002 GB, free: 12.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001816/0.4507, allocations: 0.8766 MB / 0.5011 GB, free: 11.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.4508, allocations: 8 kB / 0.5011 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.4508, allocations: 7.922 kB / 0.5011 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.4508, allocations: 4 kB / 0.5011 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006537/0.4514, allocations: 178 kB / 0.5013 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.4515, allocations: 13.48 kB / 0.5013 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.4518, allocations: 27.83 kB / 0.5013 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4519, allocations: 63.94 kB / 0.5014 GB, free: 10.92 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.0002272/0.4522, allocations: 140.5 kB / 0.5015 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.4523, allocations: 16.47 kB / 0.5015 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008094/0.4604, allocations: 7.962 MB / 0.5093 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/0.4604, allocations: 27.95 kB / 0.5093 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4604, allocations: 0 / 0.5093 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.4604, allocations: 3.984 kB / 0.5093 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.464, allocations: 3.601 MB / 0.5129 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.464, allocations: 0 / 0.5129 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000648/0.4647, allocations: 119.1 kB / 0.513 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4647, allocations: 0 / 0.513 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.41e-05/0.4647, allocations: 23.92 kB / 0.513 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.4647, allocations: 0 / 0.513 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4647, allocations: 0 / 0.513 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.4673, allocations: 1.846 MB / 0.5148 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.4674, allocations: 145 kB / 0.5149 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/0.4675, allocations: 13.05 kB / 0.5149 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.4677, allocations: 16.06 kB / 0.515 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.317e-05/0.4678, allocations: 34.95 kB / 0.515 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.4679, allocations: 15.98 kB / 0.515 GB, free: 12.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.877e-05/0.468, allocations: 87.28 kB / 0.5151 GB, free: 12.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.468, allocations: 0 / 0.5151 GB, free: 12.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003408/0.4714, allocations: 0.9902 MB / 0.5161 GB, free: 11.61 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.00781/0.4792, allocations: 3.439 MB / 0.5194 GB, free: 8.238 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.4808, allocations: 0.8803 MB / 0.5203 GB, free: 7.367 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4808, allocations: 0.5 kB / 0.5203 GB, free: 7.367 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007339/0.4815, allocations: 0.512 MB / 0.5208 GB, free: 6.863 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006161/0.4821, allocations: 83.69 kB / 0.5209 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008802/0.4909, allocations: 4.683 MB / 0.5254 GB, free: 2.016 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.4914, allocations: 0.8497 MB / 0.5263 GB, free: 1.137 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002183/0.4936, allocations: 1.784 MB / 0.528 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004666/0.4941, allocations: 219.3 kB / 0.5282 GB, free: 15.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4941, allocations: 0 / 0.5282 GB, free: 15.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08627/0.5804, allocations: 45.63 MB / 0.5728 GB, free: 1.594 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.11, allocations: 18.02 kB / 0.5728 GB, free: 1.582 MB / 478.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] 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: 13.673428351990879]