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.001271/0.001271, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001357/0.001357, allocations: 187.5 kB / 24.51 MB, free: 4.086 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.356/1.356, allocations: 225.6 MB / 253.3 MB, free: 13.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 43.92 kB / 372 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2332, allocations: 52.19 MB / 424.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01729/0.2505, allocations: 13.45 MB / 437.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.2692, allocations: 15.66 MB / 453.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.2694, allocations: 0 / 453.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003684/0.2698, allocations: 83.48 kB / 453.4 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003638/0.2701, allocations: 115.1 kB / 453.5 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01561/0.2857, allocations: 5.966 MB / 459.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006406/0.2864, allocations: 354.5 kB / 459.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.388e-05/0.2864, allocations: 13.75 kB / 459.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006025/0.2871, allocations: 227 kB / 460.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.2873, allocations: 107.6 kB / 460.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.2873, allocations: 16 kB / 460.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01383/0.3011, allocations: 6.768 MB / 467 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3012, allocations: 55.77 kB / 467 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.3014, allocations: 103.6 kB / 467.1 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008357/0.3098, allocations: 3.909 MB / 471 MB, free: 15.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3098, allocations: 4 kB / 471 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3098, allocations: 0 / 471 MB, free: 15.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.3098, allocations: 0 / 471 MB, free: 15.39 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.002832/0.3126, allocations: 0.9507 MB / 472 MB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3127, allocations: 8.031 kB / 472 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.949e-05/0.3127, allocations: 4.625 kB / 472 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.224e-05/0.3127, allocations: 54.73 kB / 472.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/0.3142, allocations: 176.7 kB / 472.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.3145, allocations: 198.2 kB / 472.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.3145, allocations: 28.56 kB / 472.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.3146, allocations: 16 kB / 472.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003199/0.3178, allocations: 0.9089 MB / 473.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3178, allocations: 0 / 473.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.024e-05/0.3178, allocations: 12 kB / 473.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.3179, allocations: 4 kB / 473.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.3211, allocations: 0.9695 MB / 474.4 MB, free: 11.98 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.001766/0.3229, allocations: 1.307 MB / 475.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.3256, allocations: 0.7325 MB / 476.4 MB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.3259, allocations: 165.6 kB / 476.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06895/0.3948, allocations: 19.64 MB / 496.2 MB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.3949, allocations: 38.55 kB / 496.2 MB, free: 5.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.485e-06/0.3949, allocations: 4 kB / 496.3 MB, free: 5.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005499/0.4004, allocations: 1.356 MB / 497.6 MB, free: 4.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.4004, allocations: 55.41 kB / 497.7 MB, free: 4.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.4006, allocations: 129.8 kB / 497.8 MB, free: 4.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.382e-05/0.4007, allocations: 33.64 kB / 497.8 MB, free: 4.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.422e-05/0.4007, allocations: 120.8 kB / 497.9 MB, free: 4.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.4009, allocations: 111 kB / 498 MB, free: 4.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003465/0.4013, allocations: 173.3 kB / 498.2 MB, free: 3.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.4014, allocations: 322.8 kB / 498.5 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006805/0.4021, allocations: 339.8 kB / 498.9 MB, free: 3.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000785/0.4029, allocations: 399.5 kB / 499.3 MB, free: 2.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.4043, allocations: 0.7153 MB / 500 MB, free: 2.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.4043, allocations: 4 kB / 500 MB, free: 2.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001998/0.4063, allocations: 0.8719 MB / 0.4891 GB, free: 1.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.4063, allocations: 15.88 kB / 0.4891 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4063, allocations: 0 / 0.4891 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.4064, allocations: 4 kB / 0.4891 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.407, allocations: 175.8 kB / 0.4893 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.407, allocations: 4.25 kB / 0.4893 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.4074, allocations: 35.83 kB / 0.4893 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4075, allocations: 63.92 kB / 0.4894 GB, free: 0.9219 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.000256/0.4078, allocations: 137.8 kB / 0.4895 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.4079, allocations: 19.84 kB / 0.4895 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008788/0.4167, allocations: 8.514 MB / 0.4979 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/0.4168, allocations: 23.97 kB / 0.4979 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4168, allocations: 3.984 kB / 0.4979 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.4168, allocations: 0 / 0.4979 GB, free: 8.195 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.4204, allocations: 3.771 MB / 0.5016 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4204, allocations: 0 / 0.5016 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.421, allocations: 107.8 kB / 0.5017 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.4211, allocations: 3.938 kB / 0.5017 GB, free: 4.062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/0.4211, allocations: 15.98 kB / 0.5017 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.4211, allocations: 4 kB / 0.5017 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4211, allocations: 0 / 0.5017 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/0.4238, allocations: 1.886 MB / 0.5035 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.076e-05/0.4239, allocations: 67.33 kB / 0.5036 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6e-05/0.4239, allocations: 16.06 kB / 0.5036 GB, free: 2.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.4242, allocations: 8 kB / 0.5036 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.4243, allocations: 35.88 kB / 0.5037 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.4244, allocations: 19.98 kB / 0.5037 GB, free: 1.992 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.588e-05/0.4244, allocations: 91.27 kB / 0.5038 GB, free: 1.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4244, allocations: 0 / 0.5038 GB, free: 1.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002865/0.4273, allocations: 0.9902 MB / 0.5047 GB, free: 0.9102 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.007562/0.4349, allocations: 3.475 MB / 0.5081 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.4366, allocations: 0.8916 MB / 0.509 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.4366, allocations: 0.5 kB / 0.509 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.4373, allocations: 0.5322 MB / 0.5095 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.438, allocations: 88.08 kB / 0.5096 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00904/0.447, allocations: 4.7 MB / 0.5142 GB, free: 7.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.4476, allocations: 0.8575 MB / 0.515 GB, free: 6.188 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002157/0.4497, allocations: 1.78 MB / 0.5168 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005328/0.4503, allocations: 227.3 kB / 0.517 GB, free: 4.184 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4503, allocations: 0 / 0.517 GB, free: 4.184 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.269/0.7193, allocations: 46.73 MB / 0.5626 GB, free: 89.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.21, allocations: 7.438 kB / 0.5626 GB, free: 89.62 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: 17.07103992201155]