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.001261/0.001261, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001361/0.001361, allocations: 188.2 kB / 23.72 MB, free: 4.719 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.351/1.351, allocations: 225.6 MB / 252.5 MB, free: 13.05 MB / 206.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.001438/0.001438, allocations: 47.92 kB / 371.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2338, allocations: 52.19 MB / 423.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.017/0.2508, allocations: 13.45 MB / 436.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01932/0.2701, allocations: 15.66 MB / 452.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.2702, allocations: 3.938 kB / 452.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003211/0.2706, allocations: 79.53 kB / 452.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.2709, allocations: 115.2 kB / 452.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01452/0.2854, allocations: 5.976 MB / 458.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005232/0.2859, allocations: 342.5 kB / 459.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.055e-05/0.286, allocations: 17.73 kB / 459.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000467/0.2865, allocations: 227 kB / 459.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.2866, allocations: 107.6 kB / 459.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.2867, allocations: 16 kB / 459.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0128/0.2995, allocations: 6.778 MB / 466.2 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-05/0.2996, allocations: 47.83 kB / 466.2 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.2997, allocations: 99.59 kB / 466.3 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007745/0.3075, allocations: 3.917 MB / 470.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3075, allocations: 0 / 470.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3075, allocations: 0 / 470.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.3075, allocations: 4 kB / 470.3 MB, free: 15.4 MB / 382.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.002755/0.3102, allocations: 0.939 MB / 471.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3103, allocations: 8.031 kB / 471.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.478e-05/0.3104, allocations: 54.73 kB / 471.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.3117, allocations: 184.6 kB / 471.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.312, allocations: 202.2 kB / 471.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.3121, allocations: 20.81 kB / 471.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.3121, allocations: 23.94 kB / 471.7 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00343/0.3155, allocations: 0.9089 MB / 472.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3156, allocations: 0 / 472.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.3156, allocations: 8 kB / 472.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3156, allocations: 12 kB / 472.6 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003209/0.3188, allocations: 0.9695 MB / 473.6 MB, free: 11.99 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.001893/0.3207, allocations: 1.307 MB / 474.9 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.3233, allocations: 0.7247 MB / 475.6 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.3236, allocations: 157.6 kB / 475.8 MB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06944/0.3931, allocations: 19.64 MB / 495.4 MB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.3931, allocations: 34.56 kB / 495.4 MB, free: 5.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.3931, allocations: 0 / 495.4 MB, free: 5.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005436/0.3986, allocations: 1.364 MB / 496.8 MB, free: 4.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3986, allocations: 55.41 kB / 496.9 MB, free: 4.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.3987, allocations: 125.7 kB / 497 MB, free: 4.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.193e-05/0.3988, allocations: 37.64 kB / 497 MB, free: 4.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.3989, allocations: 124.8 kB / 497.1 MB, free: 4.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.3991, allocations: 111 kB / 497.3 MB, free: 4.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.3994, allocations: 173.3 kB / 497.4 MB, free: 3.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3995, allocations: 322.8 kB / 497.7 MB, free: 3.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006615/0.4002, allocations: 339.8 kB / 498.1 MB, free: 3.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007405/0.4009, allocations: 407.5 kB / 498.5 MB, free: 2.855 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.4024, allocations: 0.7114 MB / 499.2 MB, free: 2.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.4024, allocations: 4 kB / 499.2 MB, free: 2.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001909/0.4043, allocations: 0.8719 MB / 0.4883 GB, free: 1.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.4043, allocations: 15.22 kB / 0.4884 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4043, allocations: 0 / 0.4884 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4043, allocations: 4 kB / 0.4884 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006741/0.405, allocations: 176 kB / 0.4885 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.405, allocations: 8 kB / 0.4885 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003427/0.4054, allocations: 31.84 kB / 0.4886 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.4055, allocations: 63.92 kB / 0.4886 GB, free: 0.9453 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.0002232/0.4057, allocations: 133.8 kB / 0.4887 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.4059, allocations: 23.84 kB / 0.4888 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008975/0.4148, allocations: 8.505 MB / 0.4971 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.299e-05/0.4149, allocations: 31.95 kB / 0.4971 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4149, allocations: 0 / 0.4971 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.4149, allocations: 384 / 0.4971 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003773/0.4187, allocations: 3.771 MB / 0.5008 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4187, allocations: 0 / 0.5008 GB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006662/0.4193, allocations: 107.8 kB / 0.5009 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.4193, allocations: 11.88 kB / 0.5009 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.4194, allocations: 12 kB / 0.5009 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.4194, allocations: 0 / 0.5009 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.4194, allocations: 7.984 kB / 0.5009 GB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.4221, allocations: 1.889 MB / 0.5028 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.838e-05/0.4222, allocations: 67.33 kB / 0.5028 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.129e-05/0.4223, allocations: 20 kB / 0.5029 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.4226, allocations: 11.98 kB / 0.5029 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4227, allocations: 31.94 kB / 0.5029 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-05/0.4227, allocations: 19.98 kB / 0.5029 GB, free: 2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.6e-05/0.4228, allocations: 87.28 kB / 0.503 GB, free: 1.914 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4228, allocations: 0 / 0.503 GB, free: 1.914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002817/0.4256, allocations: 0.9902 MB / 0.504 GB, free: 0.9219 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.00739/0.433, allocations: 3.463 MB / 0.5073 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.4347, allocations: 0.8954 MB / 0.5082 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4347, allocations: 0.5 kB / 0.5082 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008051/0.4355, allocations: 0.5322 MB / 0.5087 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006448/0.4361, allocations: 88.12 kB / 0.5088 GB, free: 11.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008377/0.4445, allocations: 4.7 MB / 0.5134 GB, free: 7.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.445, allocations: 0.8536 MB / 0.5142 GB, free: 6.211 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002077/0.4471, allocations: 1.78 MB / 0.516 GB, free: 4.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.4476, allocations: 219.3 kB / 0.5162 GB, free: 4.215 MB / 430.1 MB Notification: Performance of SimCode: time 5.82e-07/0.4476, allocations: 0 / 0.5162 GB, free: 4.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2775/0.725, allocations: 46.7 MB / 0.5618 GB, free: 89.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.03, allocations: 13.12 kB / 0.5618 GB, free: 89.57 MB / 446.1 MB " [Timeout remaining time 646] (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/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_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: 16.57260639197193]