Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001395/0.001395, allocations: 105 kB / 19.74 MB, free: 2.566 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.001567/0.001567, allocations: 217.9 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.277/1.277, allocations: 230.5 MB / 256.4 MB, free: 8.438 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 67.88 kB / 376.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2056, allocations: 53.31 MB / 430.2 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01496/0.2206, allocations: 13.55 MB / 443.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.2374, allocations: 15.65 MB / 459.4 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2376, allocations: 4 kB / 459.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.2379, allocations: 83.47 kB / 459.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002899/0.2382, allocations: 107.2 kB / 459.6 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01356/0.2517, allocations: 5.986 MB / 465.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000494/0.2522, allocations: 342.5 kB / 465.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.027e-05/0.2523, allocations: 9.688 kB / 466 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004754/0.2528, allocations: 239 kB / 466.2 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.2529, allocations: 115.5 kB / 466.3 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.363e-05/0.253, allocations: 12 kB / 466.3 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01222/0.2652, allocations: 6.778 MB / 473.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.2653, allocations: 43.84 kB / 473.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.2654, allocations: 103.6 kB / 473.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006319/0.2717, allocations: 3.921 MB / 477.2 MB, free: 8.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2717, allocations: 0 / 477.2 MB, free: 8.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2717, allocations: 0 / 477.2 MB, free: 8.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2717, allocations: 0 / 477.2 MB, free: 8.109 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.002123/0.2739, allocations: 1.018 MB / 478.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2739, allocations: 16.03 kB / 478.2 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.37e-05/0.274, allocations: 58.67 kB / 478.2 MB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.2753, allocations: 176.6 kB / 478.4 MB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.2755, allocations: 260.1 kB / 478.7 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.2756, allocations: 16.81 kB / 478.7 MB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.2756, allocations: 27.88 kB / 478.7 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00306/0.2787, allocations: 0.905 MB / 479.6 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2787, allocations: 0 / 479.6 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.2787, allocations: 12 kB / 479.6 MB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2787, allocations: 4 kB / 479.6 MB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003151/0.2819, allocations: 0.9734 MB / 480.6 MB, free: 4.535 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.001535/0.2834, allocations: 1.335 MB / 481.9 MB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.2859, allocations: 0.7398 MB / 482.7 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.2862, allocations: 152.8 kB / 482.8 MB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07828/0.3645, allocations: 42.18 MB / 0.5127 GB, free: 2.609 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.3645, allocations: 34.55 kB / 0.5127 GB, free: 2.566 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.053e-06/0.3645, allocations: 0 / 0.5127 GB, free: 2.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005146/0.3697, allocations: 1.358 MB / 0.5141 GB, free: 1.203 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.3697, allocations: 55.41 kB / 0.5141 GB, free: 1.137 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.3698, allocations: 133.7 kB / 0.5143 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.682e-05/0.3699, allocations: 29.7 kB / 0.5143 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.397e-05/0.3699, allocations: 120.8 kB / 0.5144 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.3701, allocations: 123 kB / 0.5145 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.3703, allocations: 157.6 kB / 0.5147 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3705, allocations: 334.8 kB / 0.515 GB, free: 228 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006356/0.3711, allocations: 335.7 kB / 0.5153 GB, free: 15.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.3718, allocations: 407.5 kB / 0.5157 GB, free: 15.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.3731, allocations: 0.7105 MB / 0.5164 GB, free: 14.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3731, allocations: 4 kB / 0.5164 GB, free: 14.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001754/0.3749, allocations: 0.8758 MB / 0.5172 GB, free: 13.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3749, allocations: 11.94 kB / 0.5173 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3749, allocations: 0 / 0.5173 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3749, allocations: 4 kB / 0.5173 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006268/0.3755, allocations: 176 kB / 0.5174 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3756, allocations: 11.92 kB / 0.5174 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.3759, allocations: 31.83 kB / 0.5175 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.376, allocations: 67.94 kB / 0.5175 GB, free: 13.54 MB / 446.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.0002036/0.3762, allocations: 141.8 kB / 0.5177 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.3763, allocations: 19.84 kB / 0.5177 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007342/0.3837, allocations: 7.966 MB / 0.5255 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.65e-05/0.3837, allocations: 27.95 kB / 0.5255 GB, free: 5.367 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3837, allocations: 3.938 kB / 0.5255 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3837, allocations: 3.984 kB / 0.5255 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003111/0.3868, allocations: 3.608 MB / 0.529 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.3868, allocations: 0 / 0.529 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/0.3874, allocations: 107.9 kB / 0.5291 GB, free: 1.387 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3874, allocations: 7.938 kB / 0.5291 GB, free: 1.379 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3874, allocations: 15.92 kB / 0.5291 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.3874, allocations: 4 kB / 0.5292 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3874, allocations: 0 / 0.5292 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.3898, allocations: 1.835 MB / 0.5309 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.636e-05/0.3899, allocations: 152.5 kB / 0.5311 GB, free: 15.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.697e-05/0.3899, allocations: 7.938 kB / 0.5311 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00027/0.3902, allocations: 12 kB / 0.5311 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.3903, allocations: 27.95 kB / 0.5311 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.3903, allocations: 19.98 kB / 0.5312 GB, free: 15.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.673e-05/0.3904, allocations: 91.27 kB / 0.5312 GB, free: 15.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3904, allocations: 0 / 0.5312 GB, free: 15.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002444/0.3928, allocations: 1.002 MB / 0.5322 GB, free: 14.18 MB / 462.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.0063/0.3991, allocations: 3.439 MB / 0.5356 GB, free: 10.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.4006, allocations: 0.8763 MB / 0.5364 GB, free: 9.832 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4006, allocations: 4.125 kB / 0.5364 GB, free: 9.828 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000695/0.4013, allocations: 0.5127 MB / 0.5369 GB, free: 9.316 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006011/0.4019, allocations: 88.12 kB / 0.537 GB, free: 9.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007038/0.4089, allocations: 4.683 MB / 0.5416 GB, free: 4.418 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.4093, allocations: 0.8497 MB / 0.5424 GB, free: 3.539 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.4112, allocations: 1.791 MB / 0.5442 GB, free: 1.742 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.4116, allocations: 215.5 kB / 0.5444 GB, free: 1.531 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4116, allocations: 0 / 0.5444 GB, free: 1.531 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2182/0.6298, allocations: 46.04 MB / 0.5893 GB, free: 88.54 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.581/10.21, allocations: 12 kB / 0.5894 GB, free: 88.53 MB / 462.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.28262894100044]