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.001326/0.001326, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001456/0.001456, allocations: 207.5 kB / 23.72 MB, free: 4.391 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.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 7.758 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.001976/0.001976, allocations: 71.89 kB / 378.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2489, allocations: 53.4 MB / 432 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01784/0.2667, allocations: 12.31 MB / 444.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.2858, allocations: 13.63 MB / 457.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.286, allocations: 4 kB / 457.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003557/0.2863, allocations: 71.52 kB / 458 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.2867, allocations: 111.2 kB / 458.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0164/0.3031, allocations: 5.944 MB / 464 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005354/0.3037, allocations: 338.6 kB / 464.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.141e-05/0.3037, allocations: 5.812 kB / 464.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004964/0.3042, allocations: 231 kB / 464.6 MB, free: 5.457 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.3044, allocations: 99.59 kB / 464.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.3044, allocations: 15.94 kB / 464.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01345/0.3179, allocations: 6.478 MB / 471.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.318, allocations: 43.89 kB / 471.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.3182, allocations: 91.64 kB / 471.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009382/0.3275, allocations: 3.917 MB / 475.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3276, allocations: 0 / 475.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3276, allocations: 0 / 475.2 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.3276, allocations: 0 / 475.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.002702/0.3303, allocations: 0.9389 MB / 476.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3303, allocations: 11.98 kB / 476.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.692e-05/0.3304, allocations: 58.73 kB / 476.2 MB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.3318, allocations: 184.6 kB / 476.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.3321, allocations: 206.2 kB / 476.6 MB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.3322, allocations: 20.81 kB / 476.6 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.3322, allocations: 23.94 kB / 476.7 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003201/0.3354, allocations: 0.9514 MB / 477.6 MB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3354, allocations: 3.938 kB / 477.6 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.3355, allocations: 12 kB / 477.6 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.3355, allocations: 4 kB / 477.6 MB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00327/0.3388, allocations: 0.9617 MB / 478.6 MB, free: 7.336 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.00169/0.3405, allocations: 0.9549 MB / 479.6 MB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.3431, allocations: 0.7207 MB / 480.3 MB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.3434, allocations: 148.8 kB / 480.4 MB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07673/0.4201, allocations: 20.64 MB / 0.4893 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.4202, allocations: 34.56 kB / 0.4893 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.4202, allocations: 0 / 0.4893 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005396/0.4256, allocations: 1.365 MB / 0.4907 GB, free: 15.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.4256, allocations: 55.41 kB / 0.4907 GB, free: 15.3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.4258, allocations: 125.7 kB / 0.4909 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/0.4258, allocations: 33.69 kB / 0.4909 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.564e-05/0.4259, allocations: 120.9 kB / 0.491 GB, free: 15.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.4261, allocations: 118.9 kB / 0.4911 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.4263, allocations: 161.6 kB / 0.4913 GB, free: 14.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4265, allocations: 334.8 kB / 0.4916 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.4272, allocations: 335.8 kB / 0.4919 GB, free: 14.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007883/0.428, allocations: 403.5 kB / 0.4923 GB, free: 13.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.4295, allocations: 0.7075 MB / 0.493 GB, free: 12.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4295, allocations: 0 / 0.493 GB, free: 12.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001998/0.4315, allocations: 0.8797 MB / 0.4938 GB, free: 12.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.4315, allocations: 7.938 kB / 0.4938 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4315, allocations: 4 kB / 0.4939 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.4315, allocations: 7.984 kB / 0.4939 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006806/0.4322, allocations: 171.8 kB / 0.494 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.4322, allocations: 4 kB / 0.494 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.4325, allocations: 39.95 kB / 0.4941 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.4327, allocations: 67.94 kB / 0.4941 GB, free: 11.73 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.0002515/0.4329, allocations: 142.6 kB / 0.4943 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.4331, allocations: 19.84 kB / 0.4943 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009666/0.4427, allocations: 8.486 MB / 0.5026 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.514e-05/0.4428, allocations: 27.95 kB / 0.5026 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.4428, allocations: 8 kB / 0.5026 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.4428, allocations: 3.984 kB / 0.5026 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003969/0.4467, allocations: 3.724 MB / 0.5062 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4467, allocations: 0 / 0.5062 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.4474, allocations: 112.2 kB / 0.5064 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.389e-05/0.4474, allocations: 7.938 kB / 0.5064 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.4475, allocations: 11.98 kB / 0.5064 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4475, allocations: 0 / 0.5064 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4475, allocations: 7.922 kB / 0.5064 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.4503, allocations: 1.893 MB / 0.5082 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.743e-05/0.4504, allocations: 63.39 kB / 0.5083 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/0.4505, allocations: 11.94 kB / 0.5083 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.4508, allocations: 12 kB / 0.5083 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.4509, allocations: 31.94 kB / 0.5083 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.4509, allocations: 15.98 kB / 0.5084 GB, free: 12.85 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.829e-05/0.451, allocations: 91.27 kB / 0.5084 GB, free: 12.76 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.451, allocations: 0 / 0.5084 GB, free: 12.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002652/0.4537, allocations: 1.01 MB / 0.5094 GB, free: 11.75 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.0073/0.461, allocations: 3.474 MB / 0.5128 GB, free: 8.246 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.4627, allocations: 0.8873 MB / 0.5137 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4627, allocations: 0.5 kB / 0.5137 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000845/0.4636, allocations: 0.5361 MB / 0.5142 GB, free: 6.824 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/0.4642, allocations: 98.75 kB / 0.5143 GB, free: 6.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008572/0.4728, allocations: 4.7 MB / 0.5189 GB, free: 1.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.4731, allocations: 255.2 kB / 0.5191 GB, free: 1.625 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002268/0.4753, allocations: 1.784 MB / 0.5209 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005267/0.4759, allocations: 223.3 kB / 0.5211 GB, free: 15.62 MB / 446.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4759, allocations: 0 / 0.5211 GB, free: 15.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.274/0.7498, allocations: 46.99 MB / 0.567 GB, free: 80.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.98, allocations: 12.78 kB / 0.567 GB, free: 80.07 MB / 446.1 MB " [Timeout remaining time 646] (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/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_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: 16.683495779056102]