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.001266/0.001266, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00137/0.00137, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.785 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 51.92 kB / 379.3 MB, free: 2.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2272, allocations: 53.36 MB / 432.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01526/0.2424, allocations: 12.31 MB / 445 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01673/0.2592, allocations: 13.62 MB / 458.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.2593, allocations: 4 kB / 458.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003568/0.2597, allocations: 71.52 kB / 458.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003368/0.26, allocations: 111.2 kB / 458.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01429/0.2743, allocations: 5.929 MB / 464.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004975/0.2748, allocations: 350.5 kB / 465.1 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.963e-05/0.2748, allocations: 13.75 kB / 465.1 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000449/0.2753, allocations: 215.2 kB / 465.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.2755, allocations: 111.5 kB / 465.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.2755, allocations: 19.94 kB / 465.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01156/0.2871, allocations: 6.728 MB / 472.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.021e-05/0.2871, allocations: 47.83 kB / 472.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.2873, allocations: 87.66 kB / 472.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006813/0.2941, allocations: 3.917 MB / 476.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2941, allocations: 0 / 476.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2941, allocations: 0 / 476.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2941, allocations: 0 / 476.2 MB, free: 10.8 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.002226/0.2963, allocations: 0.9467 MB / 477.1 MB, free: 9.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.2964, allocations: 12.03 kB / 477.1 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.782e-05/0.2964, allocations: 4.625 kB / 477.2 MB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.605e-05/0.2964, allocations: 58.67 kB / 477.2 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.2978, allocations: 188.6 kB / 477.4 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.2982, allocations: 194.2 kB / 477.6 MB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.2982, allocations: 20.56 kB / 477.6 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.2982, allocations: 24 kB / 477.6 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003325/0.3016, allocations: 0.9552 MB / 478.6 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.3016, allocations: 0 / 478.6 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.246e-05/0.3016, allocations: 12 kB / 478.6 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3016, allocations: 4 kB / 478.6 MB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.305, allocations: 0.9695 MB / 479.6 MB, free: 7.328 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.001467/0.3065, allocations: 0.9472 MB / 480.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002772/0.3092, allocations: 0.7362 MB / 481.3 MB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.3095, allocations: 153.6 kB / 481.4 MB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06861/0.3781, allocations: 20.63 MB / 0.4903 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.3782, allocations: 34.56 kB / 0.4903 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.294e-06/0.3782, allocations: 0 / 0.4903 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005549/0.3837, allocations: 1.364 MB / 0.4916 GB, free: 15.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.3838, allocations: 55.41 kB / 0.4917 GB, free: 15.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.3839, allocations: 129.7 kB / 0.4918 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.653e-05/0.3839, allocations: 33.7 kB / 0.4918 GB, free: 15.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.131e-05/0.384, allocations: 120.8 kB / 0.492 GB, free: 15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3842, allocations: 119 kB / 0.4921 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.3845, allocations: 161.6 kB / 0.4922 GB, free: 14.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3846, allocations: 330.8 kB / 0.4925 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006453/0.3853, allocations: 331.8 kB / 0.4929 GB, free: 14.06 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000749/0.386, allocations: 411.5 kB / 0.4932 GB, free: 13.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.3874, allocations: 0.7036 MB / 0.4939 GB, free: 12.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3874, allocations: 4 kB / 0.4939 GB, free: 12.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001931/0.3894, allocations: 0.8797 MB / 0.4948 GB, free: 12.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3894, allocations: 4 kB / 0.4948 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3894, allocations: 4 kB / 0.4948 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.3894, allocations: 4.25 kB / 0.4948 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/0.3901, allocations: 175.8 kB / 0.495 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3901, allocations: 7.938 kB / 0.495 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.3905, allocations: 31.83 kB / 0.495 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.3906, allocations: 63.94 kB / 0.4951 GB, free: 11.72 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.0002528/0.3908, allocations: 137.8 kB / 0.4952 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.391, allocations: 23.84 kB / 0.4952 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008517/0.3995, allocations: 8.502 MB / 0.5035 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.275e-05/0.3995, allocations: 27.95 kB / 0.5036 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3995, allocations: 7.875 kB / 0.5036 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3995, allocations: 3.984 kB / 0.5036 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.4029, allocations: 3.728 MB / 0.5072 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.403, allocations: 0 / 0.5072 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006716/0.4036, allocations: 107.8 kB / 0.5073 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.4036, allocations: 4 kB / 0.5073 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.4037, allocations: 19.92 kB / 0.5073 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4037, allocations: 0 / 0.5073 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4037, allocations: 8 kB / 0.5073 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.4062, allocations: 1.882 MB / 0.5092 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.4063, allocations: 67.33 kB / 0.5092 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.47e-05/0.4064, allocations: 8 kB / 0.5093 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/0.4067, allocations: 16 kB / 0.5093 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.4068, allocations: 32 kB / 0.5093 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.4068, allocations: 15.98 kB / 0.5093 GB, free: 12.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.555e-05/0.4069, allocations: 91.27 kB / 0.5094 GB, free: 12.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4069, allocations: 0 / 0.5094 GB, free: 12.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002591/0.4095, allocations: 1.006 MB / 0.5104 GB, free: 11.74 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.006848/0.4163, allocations: 3.478 MB / 0.5138 GB, free: 8.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.4179, allocations: 0.8956 MB / 0.5147 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4179, allocations: 0 / 0.5147 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.4187, allocations: 0.5283 MB / 0.5152 GB, free: 6.809 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.4193, allocations: 94.95 kB / 0.5153 GB, free: 6.719 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007824/0.4271, allocations: 4.712 MB / 0.5199 GB, free: 1.875 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.4274, allocations: 251.2 kB / 0.5201 GB, free: 1.605 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002047/0.4294, allocations: 1.795 MB / 0.5219 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.4299, allocations: 223.5 kB / 0.5221 GB, free: 15.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4299, allocations: 0 / 0.5221 GB, free: 15.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.259/0.6889, allocations: 47.04 MB / 0.568 GB, free: 80.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.37, allocations: 10.73 kB / 0.568 GB, free: 80.23 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.220356561010703]