Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00135/0.00135, allocations: 107.6 kB / 21.19 MB, free: 0.5859 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.001407/0.001407, allocations: 210.7 kB / 24.47 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 54.58 kB / 348 MB, free: 9.074 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2439, allocations: 49.16 MB / 397.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01357/0.2574, allocations: 12.22 MB / 409.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01795/0.2754, allocations: 13.63 MB / 423 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.2756, allocations: 1.781 kB / 423 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.276, allocations: 67.83 kB / 423.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.2764, allocations: 116.8 kB / 423.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02035/0.2968, allocations: 5.905 MB / 429.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006092/0.2974, allocations: 345.7 kB / 429.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.481e-05/0.2974, allocations: 11.78 kB / 429.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005235/0.298, allocations: 210.2 kB / 429.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2981, allocations: 99.55 kB / 429.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.2982, allocations: 16 kB / 429.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01366/0.3118, allocations: 6.458 MB / 436.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3119, allocations: 43.83 kB / 436.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.3121, allocations: 87.67 kB / 436.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009937/0.3221, allocations: 3.898 MB / 440.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.3221, allocations: 4 kB / 440.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3221, allocations: 0 / 440.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.3221, allocations: 0 / 440.3 MB, free: 7.688 MB / 350.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.002643/0.3247, allocations: 0.935 MB / 441.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3248, allocations: 15.98 kB / 441.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.091e-05/0.3249, allocations: 58.67 kB / 441.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/0.3262, allocations: 172.7 kB / 441.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.3266, allocations: 202.2 kB / 441.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.3266, allocations: 16.81 kB / 441.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.3267, allocations: 27.89 kB / 441.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/0.3297, allocations: 0.9591 MB / 442.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.3297, allocations: 0 / 442.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.3297, allocations: 8 kB / 442.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3298, allocations: 4 kB / 442.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003159/0.3329, allocations: 0.9656 MB / 443.6 MB, free: 4.23 MB / 350.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.001604/0.3345, allocations: 0.9547 MB / 444.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.337, allocations: 0.7206 MB / 445.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.3373, allocations: 152.7 kB / 445.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08733/0.4246, allocations: 19.73 MB / 465.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/0.4247, allocations: 34.56 kB / 465.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.985e-06/0.4247, allocations: 0 / 465.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006593/0.4313, allocations: 1.364 MB / 466.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.4313, allocations: 55.41 kB / 466.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.4314, allocations: 125.8 kB / 466.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.111e-05/0.4315, allocations: 29.7 kB / 466.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.4316, allocations: 120.8 kB / 466.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.4318, allocations: 122.9 kB / 467 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/0.4321, allocations: 165.5 kB / 467.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4323, allocations: 326.8 kB / 467.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007259/0.433, allocations: 331.8 kB / 467.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007269/0.4337, allocations: 411.3 kB / 468.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.4351, allocations: 0.7037 MB / 468.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4351, allocations: 0 / 468.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001871/0.437, allocations: 0.8719 MB / 469.8 MB, free: 9.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.437, allocations: 11.94 kB / 469.8 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.437, allocations: 0 / 469.8 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.437, allocations: 4 kB / 469.8 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/0.4377, allocations: 179.8 kB / 470 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.4377, allocations: 12.19 kB / 470 MB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003144/0.438, allocations: 31.78 kB / 470 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4381, allocations: 67.92 kB / 470.1 MB, free: 9.543 MB / 382.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.0002421/0.4384, allocations: 142.1 kB / 470.2 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.4385, allocations: 19.84 kB / 470.2 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008883/0.4474, allocations: 8.493 MB / 478.7 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.61e-05/0.4474, allocations: 27.95 kB / 478.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.4474, allocations: 0 / 478.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4474, allocations: 7.984 kB / 478.8 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.4511, allocations: 3.713 MB / 482.5 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.4511, allocations: 3.938 kB / 482.5 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006283/0.4518, allocations: 111.8 kB / 482.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.4518, allocations: 7.938 kB / 482.6 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.4518, allocations: 8 kB / 482.6 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4518, allocations: 3.938 kB / 482.6 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4518, allocations: 11.92 kB / 482.6 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.4545, allocations: 1.882 MB / 484.5 MB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.4545, allocations: 71.33 kB / 484.6 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.4546, allocations: 7.938 kB / 484.6 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002777/0.4549, allocations: 15.98 kB / 484.6 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.455, allocations: 31.94 kB / 484.6 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.455, allocations: 15.98 kB / 484.7 MB, free: 10.67 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.4551, allocations: 91.34 kB / 484.7 MB, free: 10.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4551, allocations: 4 kB / 484.7 MB, free: 10.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002691/0.4578, allocations: 0.9825 MB / 485.7 MB, free: 9.59 MB / 398.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.007602/0.4654, allocations: 3.467 MB / 489.2 MB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.4671, allocations: 0.8916 MB / 490.1 MB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.4671, allocations: 4.281 kB / 490.1 MB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/0.468, allocations: 0.5244 MB / 490.6 MB, free: 4.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000665/0.4686, allocations: 87.97 kB / 490.7 MB, free: 4.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008322/0.4769, allocations: 4.679 MB / 495.4 MB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.4772, allocations: 259.1 kB / 495.6 MB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002135/0.4793, allocations: 1.78 MB / 497.4 MB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004732/0.4798, allocations: 215.3 kB / 497.6 MB, free: 13.5 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4798, allocations: 4 kB / 497.6 MB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0978/0.5776, allocations: 46.82 MB / 0.5317 GB, free: 14.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.75, allocations: 0 / 0.5317 GB, free: 14.43 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.342530290130526]