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.001293/0.001293, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001352/0.001352, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.415/1.415, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.001577/0.001577, allocations: 51.91 kB / 373.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.107, allocations: 53.31 MB / 427.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1991/0.3061, allocations: 13.49 MB / 440.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.3235, allocations: 15.61 MB / 456.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.3237, allocations: 1.438 kB / 456.2 MB, free: 9.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.324, allocations: 82.23 kB / 456.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003542/0.3244, allocations: 108.2 kB / 456.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01726/0.3416, allocations: 5.979 MB / 462.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.3421, allocations: 338.9 kB / 462.7 MB, free: 5.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.962e-05/0.3422, allocations: 11.17 kB / 462.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.3426, allocations: 240.4 kB / 463 MB, free: 5.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.3428, allocations: 112.7 kB / 463.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.3428, allocations: 13.12 kB / 463.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01339/0.3562, allocations: 6.772 MB / 469.9 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3563, allocations: 48.78 kB / 469.9 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.3565, allocations: 101.6 kB / 470 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009151/0.3656, allocations: 3.922 MB / 474 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3656, allocations: 0 / 474 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3656, allocations: 0 / 474 MB, free: 15.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.3657, allocations: 0 / 474 MB, free: 15.57 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.003124/0.3688, allocations: 1.029 MB / 475 MB, free: 14.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3688, allocations: 9 kB / 475 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.185e-05/0.3689, allocations: 54.08 kB / 475 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/0.3702, allocations: 184.7 kB / 475.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.3706, allocations: 252.1 kB / 475.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.3706, allocations: 15.44 kB / 475.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.3706, allocations: 31.39 kB / 475.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003162/0.3738, allocations: 0.9057 MB / 476.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3738, allocations: 0 / 476.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.3738, allocations: 10.25 kB / 476.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3739, allocations: 4.219 kB / 476.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.3771, allocations: 0.9746 MB / 477.4 MB, free: 13.23 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.001751/0.3789, allocations: 1.349 MB / 478.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002604/0.3815, allocations: 0.7281 MB / 479.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.3817, allocations: 154.4 kB / 479.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08702/0.4688, allocations: 42.18 MB / 0.5096 GB, free: 11.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.4688, allocations: 34.55 kB / 0.5096 GB, free: 11.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.635e-06/0.4688, allocations: 0 / 0.5096 GB, free: 11.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005634/0.4744, allocations: 1.357 MB / 0.5109 GB, free: 10.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.4745, allocations: 59.34 kB / 0.511 GB, free: 10.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.4746, allocations: 125.7 kB / 0.5111 GB, free: 10.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.936e-05/0.4747, allocations: 33.7 kB / 0.5112 GB, free: 10.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.4748, allocations: 116.8 kB / 0.5113 GB, free: 10.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.475, allocations: 119 kB / 0.5114 GB, free: 10.08 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.4753, allocations: 165.5 kB / 0.5115 GB, free: 9.914 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.4755, allocations: 330.8 kB / 0.5118 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000717/0.4762, allocations: 339.6 kB / 0.5122 GB, free: 9.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007929/0.477, allocations: 407.3 kB / 0.5126 GB, free: 8.824 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.4785, allocations: 0.7144 MB / 0.5133 GB, free: 8.082 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.4785, allocations: 0 / 0.5133 GB, free: 8.082 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002034/0.4805, allocations: 0.8728 MB / 0.5141 GB, free: 7.203 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.4805, allocations: 11.94 kB / 0.5141 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4805, allocations: 4 kB / 0.5141 GB, free: 7.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.4805, allocations: 4 kB / 0.5141 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006873/0.4812, allocations: 179.7 kB / 0.5143 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.4812, allocations: 4 kB / 0.5143 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.4816, allocations: 36.64 kB / 0.5143 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.4817, allocations: 67.92 kB / 0.5144 GB, free: 6.902 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.0002844/0.482, allocations: 137.8 kB / 0.5145 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.4822, allocations: 19.84 kB / 0.5146 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008449/0.4907, allocations: 7.974 MB / 0.5223 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-05/0.4907, allocations: 23.97 kB / 0.5224 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.4907, allocations: 7.984 kB / 0.5224 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.4907, allocations: 4 kB / 0.5224 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.4943, allocations: 3.604 MB / 0.5259 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.4943, allocations: 0.875 kB / 0.5259 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006587/0.4949, allocations: 108.2 kB / 0.526 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/0.4949, allocations: 7.938 kB / 0.526 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.495, allocations: 11.98 kB / 0.526 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.495, allocations: 0 / 0.526 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.495, allocations: 3.938 kB / 0.526 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/0.4977, allocations: 1.84 MB / 0.5278 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.4979, allocations: 146.9 kB / 0.528 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.9e-05/0.498, allocations: 11.94 kB / 0.528 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.4983, allocations: 11.98 kB / 0.528 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/0.4984, allocations: 27.97 kB / 0.528 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.4984, allocations: 15.98 kB / 0.528 GB, free: 8.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.999e-05/0.4985, allocations: 99.33 kB / 0.5281 GB, free: 8.531 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4985, allocations: 0 / 0.5281 GB, free: 8.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00373/0.5022, allocations: 0.998 MB / 0.5291 GB, free: 7.531 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.009309/0.5115, allocations: 3.438 MB / 0.5325 GB, free: 4.082 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.5132, allocations: 0.8844 MB / 0.5333 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5132, allocations: 0 / 0.5333 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007823/0.514, allocations: 0.5127 MB / 0.5338 GB, free: 2.688 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.5147, allocations: 85.25 kB / 0.5339 GB, free: 2.605 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009328/0.524, allocations: 4.683 MB / 0.5385 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005049/0.5245, allocations: 0.8575 MB / 0.5393 GB, free: 12.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002079/0.5266, allocations: 1.787 MB / 0.5411 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005189/0.5271, allocations: 219.3 kB / 0.5413 GB, free: 10.9 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5271, allocations: 0 / 0.5413 GB, free: 10.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09042/0.6175, allocations: 45.76 MB / 0.5859 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.38, allocations: 4.062 kB / 0.586 GB, free: 13.2 MB / 0.4981 GB " [Timeout remaining time 649] (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: 14.030651225941256]