Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.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.00189/0.00189, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.002393/0.002393, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.487/1.487, allocations: 230.5 MB / 254.8 MB, free: 15.26 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-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.WaterIF97,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97",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.002008/0.002008, allocations: 71.81 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.1012, allocations: 53.34 MB / 427 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01687/0.1181, allocations: 13.06 MB / 440.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2093/0.3274, allocations: 11.57 MB / 451.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.3275, allocations: 1.062 kB / 451.6 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003219/0.3278, allocations: 73.67 kB / 451.7 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.3281, allocations: 85.88 kB / 451.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0141/0.3422, allocations: 5.081 MB / 456.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.3425, allocations: 233 kB / 457.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.683e-05/0.3426, allocations: 10.48 kB / 457.1 MB, free: 7.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004097/0.343, allocations: 200.8 kB / 457.3 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.3431, allocations: 75.58 kB / 457.4 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.3431, allocations: 7.719 kB / 457.4 MB, free: 7.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01464/0.3578, allocations: 7.003 MB / 464.4 MB, free: 7.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.3579, allocations: 34.81 kB / 464.4 MB, free: 7.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.3581, allocations: 61.67 kB / 464.5 MB, free: 7.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/0.3696, allocations: 3.885 MB / 468.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.3696, allocations: 1.312 kB / 468.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3696, allocations: 4 kB / 468.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3696, allocations: 0 / 468.4 MB, free: 5.207 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.005507/0.3751, allocations: 1.166 MB / 469.5 MB, free: 4.379 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3752, allocations: 19.8 kB / 469.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.3752, allocations: 45.97 kB / 469.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/0.3757, allocations: 51.5 kB / 469.6 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.3759, allocations: 231.3 kB / 469.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.376, allocations: 10.25 kB / 469.9 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.376, allocations: 17.78 kB / 469.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3772, allocations: 389.1 kB / 470.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3772, allocations: 1.531 kB / 470.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.3773, allocations: 6.125 kB / 470.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3773, allocations: 3.25 kB / 470.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.3787, allocations: 358.3 kB / 470.6 MB, free: 3.594 MB / 366.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.001134/0.3798, allocations: 1.182 MB / 471.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007883/0.3806, allocations: 277.5 kB / 472.1 MB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.3808, allocations: 114 kB / 472.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1108/0.4916, allocations: 52.79 MB / 0.5127 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.773e-05/0.4917, allocations: 34.56 kB / 0.5127 GB, free: 14.33 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.4917, allocations: 4 kB / 0.5127 GB, free: 14.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007297/0.4989, allocations: 1.577 MB / 0.5143 GB, free: 12.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.499, allocations: 106.8 kB / 0.5144 GB, free: 12.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.4992, allocations: 125.8 kB / 0.5145 GB, free: 12.44 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.4992, allocations: 33.77 kB / 0.5145 GB, free: 12.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.4993, allocations: 108.6 kB / 0.5146 GB, free: 12.29 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.4994, allocations: 125.9 kB / 0.5147 GB, free: 12.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.4995, allocations: 65.69 kB / 0.5148 GB, free: 12.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4997, allocations: 327.2 kB / 0.5151 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.5001, allocations: 139.7 kB / 0.5152 GB, free: 11.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.5006, allocations: 198.5 kB / 0.5154 GB, free: 11.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008807/0.5014, allocations: 354.5 kB / 0.5158 GB, free: 11.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5014, allocations: 3.938 kB / 0.5158 GB, free: 11.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00115/0.5026, allocations: 430.9 kB / 0.5162 GB, free: 10.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5026, allocations: 8 kB / 0.5162 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.5026, allocations: 0 / 0.5162 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.5029, allocations: 32.84 kB / 0.5162 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005554/0.5034, allocations: 95.97 kB / 0.5163 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004372/0.5039, allocations: 0.5523 MB / 0.5169 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.5042, allocations: 19.98 kB / 0.5169 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/0.5042, allocations: 15.98 kB / 0.5169 GB, free: 9.863 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.5044, allocations: 138.4 kB / 0.517 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.5045, allocations: 18.48 kB / 0.517 GB, free: 9.703 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002356/0.5068, allocations: 1.443 MB / 0.5185 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.5069, allocations: 31.98 kB / 0.5185 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5069, allocations: 0 / 0.5185 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.5069, allocations: 0 / 0.5185 GB, free: 8.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.5101, allocations: 1.979 MB / 0.5204 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.5101, allocations: 0 / 0.5204 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/0.5107, allocations: 83.98 kB / 0.5205 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003332/0.511, allocations: 68.8 kB / 0.5206 GB, free: 6.035 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.039e-05/0.511, allocations: 15.98 kB / 0.5206 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004561/0.5115, allocations: 0.5952 MB / 0.5212 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5115, allocations: 0 / 0.5212 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.514, allocations: 1.699 MB / 0.5228 GB, free: 3.672 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.5141, allocations: 132.6 kB / 0.5229 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.5142, allocations: 8 kB / 0.5229 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.5146, allocations: 31.95 kB / 0.523 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.78e-05/0.5146, allocations: 27.97 kB / 0.523 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.5147, allocations: 11.98 kB / 0.523 GB, free: 3.445 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.691e-05/0.5148, allocations: 91.27 kB / 0.5231 GB, free: 3.355 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5148, allocations: 288 / 0.5231 GB, free: 3.355 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003894/0.5186, allocations: 0.9748 MB / 0.5241 GB, free: 2.379 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008757/0.5274, allocations: 3.301 MB / 0.5273 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.5291, allocations: 0.577 MB / 0.5278 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.5291, allocations: 4.125 kB / 0.5278 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.5299, allocations: 448.7 kB / 0.5283 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008442/0.5308, allocations: 72.81 kB / 0.5283 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0092/0.54, allocations: 3.928 MB / 0.5322 GB, free: 9.984 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.5405, allocations: 0.8178 MB / 0.533 GB, free: 9.141 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000373/0.5408, allocations: 137.7 kB / 0.5331 GB, free: 9.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.5411, allocations: 123.4 kB / 0.5332 GB, free: 8.887 MB / 446.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5411, allocations: 0 / 0.5332 GB, free: 8.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08386/0.6249, allocations: 40.67 MB / 0.5729 GB, free: 332 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.29, allocations: 304 / 0.5729 GB, free: 332 kB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_4_1_0-beta_om_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.880062684882432] Failed to read output from testmodel.py, exit status != 0: ['time', 'V', 'medium.h', 'medium.p'] 15.407263812143356 15.423060456 15.050125113 Calling exit ...