Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 122.7 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 63.89 kB / 374.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09698, allocations: 53.33 MB / 427.5 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1924/0.2893, allocations: 13.48 MB / 441 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01728/0.3066, allocations: 15.61 MB / 456.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002298/0.3069, allocations: 1.656 kB / 456.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004433/0.3073, allocations: 74.72 kB / 456.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004972/0.3078, allocations: 111.2 kB / 456.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02112/0.3289, allocations: 5.98 MB / 462.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005706/0.3295, allocations: 343.7 kB / 463.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.409e-05/0.3295, allocations: 10.81 kB / 463.1 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.33, allocations: 242.2 kB / 463.3 MB, free: 5.965 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.3302, allocations: 108.6 kB / 463.4 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.3303, allocations: 14.25 kB / 463.5 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01442/0.3447, allocations: 6.771 MB / 470.2 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.3448, allocations: 44.8 kB / 470.3 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.345, allocations: 105.7 kB / 470.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.3556, allocations: 3.921 MB / 474.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3556, allocations: 1.156 kB / 474.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3556, allocations: 0 / 474.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.3556, allocations: 0 / 474.3 MB, free: 15.84 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.003561/0.3592, allocations: 1.021 MB / 475.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3592, allocations: 8.812 kB / 475.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.918e-05/0.3593, allocations: 63.28 kB / 475.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.3607, allocations: 175.9 kB / 475.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.3611, allocations: 258.3 kB / 475.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.3611, allocations: 17.5 kB / 475.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.005e-05/0.3612, allocations: 31.36 kB / 475.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003065/0.3642, allocations: 0.9073 MB / 476.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3643, allocations: 1.094 kB / 476.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.3643, allocations: 6.562 kB / 476.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3643, allocations: 5.656 kB / 476.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003175/0.3675, allocations: 0.9709 MB / 477.8 MB, free: 13.51 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.001691/0.3692, allocations: 1.337 MB / 479.1 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002573/0.3717, allocations: 0.7345 MB / 479.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.372, allocations: 157.8 kB / 480 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08115/0.4532, allocations: 42.18 MB / 0.5099 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.4532, allocations: 38.56 kB / 0.51 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.4532, allocations: 0 / 0.51 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005218/0.4584, allocations: 1.358 MB / 0.5113 GB, free: 10.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.4585, allocations: 55.41 kB / 0.5113 GB, free: 10.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.4586, allocations: 133.7 kB / 0.5115 GB, free: 10.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/0.4587, allocations: 29.7 kB / 0.5115 GB, free: 10.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.4587, allocations: 116.8 kB / 0.5116 GB, free: 10.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.4589, allocations: 122.9 kB / 0.5117 GB, free: 10.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.4592, allocations: 165.6 kB / 0.5119 GB, free: 10.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4593, allocations: 326.8 kB / 0.5122 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006479/0.46, allocations: 339.6 kB / 0.5125 GB, free: 9.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007214/0.4607, allocations: 407.3 kB / 0.5129 GB, free: 9.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.462, allocations: 0.7154 MB / 0.5136 GB, free: 8.367 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.462, allocations: 0 / 0.5136 GB, free: 8.367 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001836/0.4639, allocations: 0.8683 MB / 0.5144 GB, free: 7.492 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.4639, allocations: 15.94 kB / 0.5145 GB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.4639, allocations: 4 kB / 0.5145 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.4639, allocations: 0 / 0.5145 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006605/0.4646, allocations: 183.8 kB / 0.5146 GB, free: 7.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4646, allocations: 7.938 kB / 0.5146 GB, free: 7.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.4649, allocations: 25.41 kB / 0.5147 GB, free: 7.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.465, allocations: 67.86 kB / 0.5147 GB, free: 7.195 MB / 430.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.0002162/0.4652, allocations: 141.8 kB / 0.5149 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.4654, allocations: 19.84 kB / 0.5149 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008019/0.4734, allocations: 7.974 MB / 0.5227 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/0.4734, allocations: 28.56 kB / 0.5227 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4734, allocations: 3.938 kB / 0.5227 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.4734, allocations: 7.984 kB / 0.5227 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/0.4767, allocations: 3.596 MB / 0.5262 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.4767, allocations: 4 kB / 0.5262 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006356/0.4774, allocations: 107.8 kB / 0.5263 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.4774, allocations: 3.938 kB / 0.5263 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.4774, allocations: 19.98 kB / 0.5264 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4774, allocations: 0.875 kB / 0.5264 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4774, allocations: 5.016 kB / 0.5264 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002484/0.4799, allocations: 1.835 MB / 0.5282 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.48, allocations: 140.5 kB / 0.5283 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/0.4801, allocations: 15.92 kB / 0.5283 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.4804, allocations: 12 kB / 0.5283 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.189e-05/0.4805, allocations: 31.95 kB / 0.5283 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.4805, allocations: 16.8 kB / 0.5284 GB, free: 8.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.232e-05/0.4806, allocations: 91.34 kB / 0.5284 GB, free: 8.824 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4806, allocations: 0 / 0.5284 GB, free: 8.824 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003366/0.4839, allocations: 1.002 MB / 0.5294 GB, free: 7.82 MB / 446.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.007972/0.4919, allocations: 3.449 MB / 0.5328 GB, free: 4.359 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.4936, allocations: 0.8766 MB / 0.5337 GB, free: 3.484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4936, allocations: 0 / 0.5337 GB, free: 3.484 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.4943, allocations: 0.5205 MB / 0.5342 GB, free: 2.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006415/0.495, allocations: 83.33 kB / 0.5342 GB, free: 2.887 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008645/0.5036, allocations: 4.683 MB / 0.5388 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004927/0.5041, allocations: 0.8575 MB / 0.5397 GB, free: 13.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002058/0.5062, allocations: 1.784 MB / 0.5414 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.5066, allocations: 219.3 kB / 0.5416 GB, free: 11.19 MB / 462.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5066, allocations: 0 / 0.5416 GB, free: 11.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08588/0.5925, allocations: 45.76 MB / 0.5863 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11.2, allocations: 10.16 kB / 0.5863 GB, free: 13.43 MB / 0.4981 GB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.851847711019218]