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.001323/0.001323, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001511/0.001511, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.001599/0.001599, allocations: 51.92 kB / 379.4 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.278, allocations: 53.35 MB / 432.8 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01799/0.296, allocations: 13.57 MB / 446.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01915/0.3151, allocations: 15.66 MB / 462 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.3153, allocations: 4 kB / 462 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000357/0.3157, allocations: 79.48 kB / 462.1 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.316, allocations: 107.3 kB / 462.2 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01626/0.3323, allocations: 5.997 MB / 468.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000522/0.3328, allocations: 342.5 kB / 468.5 MB, free: 2.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.262e-05/0.3328, allocations: 5.812 kB / 468.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.3333, allocations: 247 kB / 468.7 MB, free: 2.473 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.3335, allocations: 99.67 kB / 468.8 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.779e-05/0.3335, allocations: 12 kB / 468.9 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01311/0.3467, allocations: 6.79 MB / 475.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.3468, allocations: 43.83 kB / 475.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.3469, allocations: 111.5 kB / 475.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009182/0.3561, allocations: 3.913 MB / 479.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3561, allocations: 0 / 479.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3561, allocations: 3.984 kB / 479.7 MB, free: 7.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3561, allocations: 4 kB / 479.7 MB, free: 7.488 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.002638/0.3588, allocations: 0.9506 MB / 480.7 MB, free: 6.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3588, allocations: 8.031 kB / 480.7 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.128e-05/0.3588, allocations: 8.625 kB / 480.7 MB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.653e-05/0.3589, allocations: 50.73 kB / 480.7 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.3602, allocations: 184.6 kB / 480.9 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3605, allocations: 210.1 kB / 481.1 MB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.3606, allocations: 20.56 kB / 481.1 MB, free: 6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/0.3606, allocations: 20 kB / 481.2 MB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.3638, allocations: 0.9012 MB / 482.1 MB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3638, allocations: 4 kB / 482.1 MB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.3638, allocations: 12 kB / 482.1 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.3638, allocations: 4 kB / 482.1 MB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003234/0.367, allocations: 0.9695 MB / 483 MB, free: 4.07 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.001688/0.3687, allocations: 1.311 MB / 484.4 MB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002598/0.3713, allocations: 0.7324 MB / 485.1 MB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/0.3716, allocations: 149.6 kB / 485.2 MB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07171/0.4433, allocations: 20.55 MB / 0.4939 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.4434, allocations: 42.5 kB / 0.494 GB, free: 13.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.084e-06/0.4434, allocations: 0 / 0.494 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005326/0.4487, allocations: 1.36 MB / 0.4953 GB, free: 11.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.4487, allocations: 55.41 kB / 0.4953 GB, free: 11.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.4489, allocations: 117.8 kB / 0.4955 GB, free: 11.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.111e-05/0.4489, allocations: 30.08 kB / 0.4955 GB, free: 11.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.449, allocations: 128.8 kB / 0.4956 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.4492, allocations: 122.9 kB / 0.4957 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.4495, allocations: 161.6 kB / 0.4959 GB, free: 11.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4496, allocations: 330.8 kB / 0.4962 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000657/0.4503, allocations: 339.6 kB / 0.4965 GB, free: 10.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007708/0.4511, allocations: 411.5 kB / 0.4969 GB, free: 10.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.4525, allocations: 0.7075 MB / 0.4976 GB, free: 9.285 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4525, allocations: 0 / 0.4976 GB, free: 9.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001938/0.4544, allocations: 0.8759 MB / 0.4985 GB, free: 8.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.4544, allocations: 7.938 kB / 0.4985 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4544, allocations: 4 kB / 0.4985 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.4545, allocations: 4 kB / 0.4985 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.4551, allocations: 175.8 kB / 0.4986 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.4551, allocations: 4 kB / 0.4986 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.4555, allocations: 31.83 kB / 0.4987 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.4556, allocations: 72.16 kB / 0.4987 GB, free: 8.109 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.0002506/0.4558, allocations: 141.7 kB / 0.4989 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.456, allocations: 19.84 kB / 0.4989 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008473/0.4645, allocations: 8.505 MB / 0.5072 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/0.4645, allocations: 31.95 kB / 0.5072 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4645, allocations: 0 / 0.5072 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.4645, allocations: 3.984 kB / 0.5072 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003406/0.4679, allocations: 3.771 MB / 0.5109 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4679, allocations: 3.984 kB / 0.5109 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006262/0.4686, allocations: 103.8 kB / 0.511 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.4686, allocations: 7.938 kB / 0.511 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.453e-05/0.4686, allocations: 19.92 kB / 0.5111 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4686, allocations: 0 / 0.5111 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4686, allocations: 0 / 0.5111 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.4712, allocations: 1.878 MB / 0.5129 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.354e-05/0.4713, allocations: 75.31 kB / 0.513 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.4713, allocations: 8 kB / 0.513 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.4716, allocations: 12 kB / 0.513 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.4717, allocations: 39.94 kB / 0.513 GB, free: 9.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.4717, allocations: 15.98 kB / 0.513 GB, free: 9.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.203e-05/0.4718, allocations: 91.27 kB / 0.5131 GB, free: 9.086 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4718, allocations: 0 / 0.5131 GB, free: 9.086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002788/0.4746, allocations: 1.006 MB / 0.5141 GB, free: 8.078 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.007347/0.482, allocations: 3.478 MB / 0.5175 GB, free: 4.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4837, allocations: 0.8954 MB / 0.5184 GB, free: 3.676 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4837, allocations: 0 / 0.5184 GB, free: 3.676 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.4844, allocations: 0.5249 MB / 0.5189 GB, free: 3.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006544/0.4851, allocations: 87.05 kB / 0.519 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008301/0.4934, allocations: 4.712 MB / 0.5236 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004777/0.4939, allocations: 0.8536 MB / 0.5244 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001989/0.4959, allocations: 1.78 MB / 0.5261 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004879/0.4963, allocations: 219.3 kB / 0.5264 GB, free: 11.35 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4963, allocations: 0 / 0.5264 GB, free: 11.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2762/0.7726, allocations: 46.88 MB / 0.5721 GB, free: 77.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/14.53, allocations: 9.234 kB / 0.5721 GB, free: 77.43 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.506037026993]