Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 109.2 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002248/0.002248, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.396/1.396, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 47.92 kB / 378.6 MB, free: 2.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2532, allocations: 53.36 MB / 432 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01808/0.2712, allocations: 13.57 MB / 445.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02013/0.2914, allocations: 15.66 MB / 461.2 MB, free: 9.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.2916, allocations: 4 kB / 461.2 MB, free: 9.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003747/0.2919, allocations: 75.55 kB / 461.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.2923, allocations: 111.2 kB / 461.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01534/0.3077, allocations: 5.995 MB / 467.4 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005122/0.3082, allocations: 342.5 kB / 467.7 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.476e-05/0.3082, allocations: 13.78 kB / 467.7 MB, free: 2.695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004841/0.3087, allocations: 243 kB / 468 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.3089, allocations: 107.6 kB / 468.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.3089, allocations: 12 kB / 468.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01323/0.3222, allocations: 6.782 MB / 474.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.3223, allocations: 43.83 kB / 474.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.3225, allocations: 107.6 kB / 475 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009345/0.3318, allocations: 3.913 MB / 478.9 MB, free: 7.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3318, allocations: 0 / 478.9 MB, free: 7.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3318, allocations: 3.938 kB / 478.9 MB, free: 7.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.3318, allocations: 4 kB / 478.9 MB, free: 7.473 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.002716/0.3345, allocations: 0.9545 MB / 479.9 MB, free: 6.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.3346, allocations: 8.031 kB / 479.9 MB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.322e-05/0.3347, allocations: 54.73 kB / 479.9 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.336, allocations: 180.6 kB / 480.1 MB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.3363, allocations: 198.2 kB / 480.3 MB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/0.3364, allocations: 24.81 kB / 480.3 MB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/0.3364, allocations: 19.94 kB / 480.4 MB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003187/0.3396, allocations: 0.9089 MB / 481.3 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3396, allocations: 0 / 481.3 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.3397, allocations: 12 kB / 481.3 MB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.3397, allocations: 8 kB / 481.3 MB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003337/0.343, allocations: 0.9695 MB / 482.3 MB, free: 4.059 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.001846/0.3449, allocations: 1.307 MB / 483.6 MB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002735/0.3476, allocations: 0.7324 MB / 484.3 MB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.3479, allocations: 156.8 kB / 484.4 MB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07113/0.419, allocations: 20.54 MB / 0.4932 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/0.4191, allocations: 38.56 kB / 0.4932 GB, free: 13.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.4191, allocations: 0 / 0.4932 GB, free: 13.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005218/0.4243, allocations: 1.361 MB / 0.4945 GB, free: 11.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.4243, allocations: 55.41 kB / 0.4946 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.4245, allocations: 125.8 kB / 0.4947 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.4246, allocations: 29.7 kB / 0.4947 GB, free: 11.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.867e-05/0.4246, allocations: 116.8 kB / 0.4948 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.4248, allocations: 130.9 kB / 0.495 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/0.4251, allocations: 165.6 kB / 0.4951 GB, free: 11.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.4252, allocations: 323.2 kB / 0.4954 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006523/0.4259, allocations: 339.6 kB / 0.4957 GB, free: 10.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007594/0.4266, allocations: 411.5 kB / 0.4961 GB, free: 10.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.428, allocations: 0.7075 MB / 0.4968 GB, free: 9.277 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.428, allocations: 3.938 kB / 0.4968 GB, free: 9.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001909/0.43, allocations: 0.8759 MB / 0.4977 GB, free: 8.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.43, allocations: 11.94 kB / 0.4977 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.43, allocations: 4 kB / 0.4977 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.43, allocations: 0 / 0.4977 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006826/0.4307, allocations: 183.8 kB / 0.4979 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.4307, allocations: 4 kB / 0.4979 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.431, allocations: 23.84 kB / 0.4979 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4312, allocations: 63.92 kB / 0.498 GB, free: 8.105 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.0002746/0.4314, allocations: 142 kB / 0.4981 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.4316, allocations: 19.84 kB / 0.4981 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008958/0.4405, allocations: 8.513 MB / 0.5064 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-05/0.4406, allocations: 27.95 kB / 0.5065 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.4406, allocations: 4 kB / 0.5065 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4406, allocations: 3.984 kB / 0.5065 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003736/0.4443, allocations: 3.767 MB / 0.5101 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.4444, allocations: 0 / 0.5101 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007037/0.4451, allocations: 111.8 kB / 0.5103 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.4451, allocations: 3.938 kB / 0.5103 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.099e-05/0.4451, allocations: 12 kB / 0.5103 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.4451, allocations: 7.938 kB / 0.5103 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4451, allocations: 0 / 0.5103 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.448, allocations: 1.878 MB / 0.5121 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.812e-05/0.4481, allocations: 67.39 kB / 0.5122 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.4481, allocations: 11.94 kB / 0.5122 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.4484, allocations: 15.98 kB / 0.5122 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/0.4485, allocations: 39.88 kB / 0.5122 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-05/0.4486, allocations: 16.05 kB / 0.5123 GB, free: 9.168 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.824e-05/0.4487, allocations: 95.22 kB / 0.5123 GB, free: 9.074 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4487, allocations: 0 / 0.5123 GB, free: 9.074 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002685/0.4513, allocations: 1.006 MB / 0.5133 GB, free: 8.066 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.007671/0.459, allocations: 3.478 MB / 0.5167 GB, free: 4.559 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.4608, allocations: 0.8915 MB / 0.5176 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.4608, allocations: 7.938 kB / 0.5176 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008244/0.4616, allocations: 0.5244 MB / 0.5181 GB, free: 3.137 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.4623, allocations: 84.58 kB / 0.5182 GB, free: 3.055 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008849/0.4712, allocations: 4.708 MB / 0.5228 GB, free: 14.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.4717, allocations: 0.8614 MB / 0.5236 GB, free: 13.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002149/0.4738, allocations: 1.784 MB / 0.5254 GB, free: 11.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005213/0.4744, allocations: 215.3 kB / 0.5256 GB, free: 11.33 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4744, allocations: 4 kB / 0.5256 GB, free: 11.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2777/0.7521, allocations: 46.84 MB / 0.5713 GB, free: 77.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.55, allocations: 16.81 kB / 0.5713 GB, free: 77.46 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.22279761894606]