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.001357/0.001357, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00149/0.00149, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.002134/0.002134, allocations: 64.77 kB / 378.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2672, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01657/0.2838, allocations: 13.13 MB / 445 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.2981, allocations: 11.62 MB / 456.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.2982, allocations: 4 kB / 456.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003117/0.2985, allocations: 79.48 kB / 456.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.2987, allocations: 79.44 kB / 456.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01314/0.3119, allocations: 5.088 MB / 461.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.3123, allocations: 242.9 kB / 462.1 MB, free: 8.566 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.349e-05/0.3123, allocations: 5.641 kB / 462.1 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004388/0.3128, allocations: 199.3 kB / 462.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.3129, allocations: 79.62 kB / 462.4 MB, free: 8.281 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.3129, allocations: 8 kB / 462.4 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01303/0.3259, allocations: 7.009 MB / 469.4 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.408e-05/0.326, allocations: 23.92 kB / 469.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.3262, allocations: 71.72 kB / 469.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009025/0.3352, allocations: 3.882 MB / 473.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3352, allocations: 0 / 473.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3352, allocations: 0 / 473.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.3352, allocations: 4 kB / 473.4 MB, free: 13.27 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00488/0.3401, allocations: 1.102 MB / 474.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.3401, allocations: 12.03 kB / 474.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.863e-05/0.3402, allocations: 46.73 kB / 474.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004807/0.3407, allocations: 48.84 kB / 474.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.341, allocations: 166.3 kB / 474.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.341, allocations: 12.66 kB / 474.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.3411, allocations: 24.06 kB / 474.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3424, allocations: 384.8 kB / 475.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3424, allocations: 3.938 kB / 475.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.3425, allocations: 11.98 kB / 475.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3425, allocations: 11.98 kB / 475.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.3439, allocations: 347.6 kB / 475.6 MB, free: 11.03 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.001577/0.3455, allocations: 1.159 MB / 476.7 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008686/0.3463, allocations: 267.8 kB / 477 MB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.3466, allocations: 114.9 kB / 477.1 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08796/0.4346, allocations: 26 MB / 0.4913 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/0.4346, allocations: 46.44 kB / 0.4913 GB, free: 15.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.814e-06/0.4346, allocations: 0 / 0.4913 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00705/0.4417, allocations: 1.507 MB / 0.4928 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/0.4418, allocations: 106.8 kB / 0.4929 GB, free: 13.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.4419, allocations: 117.8 kB / 0.493 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.4419, allocations: 29.7 kB / 0.4931 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.442, allocations: 108.6 kB / 0.4932 GB, free: 13.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.4421, allocations: 130.9 kB / 0.4933 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.4422, allocations: 65.69 kB / 0.4933 GB, free: 13.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4424, allocations: 330.7 kB / 0.4937 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004014/0.4428, allocations: 143.6 kB / 0.4938 GB, free: 12.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.4432, allocations: 198.8 kB / 0.494 GB, free: 12.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000798/0.444, allocations: 346.6 kB / 0.4943 GB, free: 12.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.444, allocations: 8 kB / 0.4943 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001114/0.4451, allocations: 418.1 kB / 0.4947 GB, free: 11.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4452, allocations: 8 kB / 0.4947 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4452, allocations: 0 / 0.4947 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.4454, allocations: 40.77 kB / 0.4948 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004767/0.4459, allocations: 87.88 kB / 0.4949 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004312/0.4463, allocations: 0.5447 MB / 0.4954 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.4466, allocations: 28 kB / 0.4954 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.4467, allocations: 12 kB / 0.4954 GB, free: 10.91 MB / 414.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.0001682/0.4468, allocations: 138.3 kB / 0.4956 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.4469, allocations: 23.89 kB / 0.4956 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.4493, allocations: 1.5 MB / 0.497 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.288e-05/0.4493, allocations: 20.34 kB / 0.4971 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.4493, allocations: 0 / 0.4971 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.4494, allocations: 3.984 kB / 0.4971 GB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/0.4526, allocations: 2.002 MB / 0.499 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.423e-06/0.4526, allocations: 3.938 kB / 0.499 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.4531, allocations: 87.86 kB / 0.4991 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003331/0.4535, allocations: 68.92 kB / 0.4992 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.4535, allocations: 15.98 kB / 0.4992 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004382/0.4539, allocations: 0.5952 MB / 0.4998 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4539, allocations: 8.031 kB / 0.4998 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.4564, allocations: 1.745 MB / 0.5015 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.178e-05/0.4565, allocations: 51.53 kB / 0.5015 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.052e-05/0.4566, allocations: 8 kB / 0.5015 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004012/0.457, allocations: 27.95 kB / 0.5016 GB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-05/0.457, allocations: 31.94 kB / 0.5016 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.496e-05/0.4571, allocations: 19.94 kB / 0.5016 GB, free: 4.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.985e-05/0.4571, allocations: 91.27 kB / 0.5017 GB, free: 4.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4571, allocations: 0 / 0.5017 GB, free: 4.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002666/0.4598, allocations: 0.9747 MB / 0.5027 GB, free: 3.363 MB / 414.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.00752/0.4673, allocations: 3.325 MB / 0.5059 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.4689, allocations: 0.6004 MB / 0.5065 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4689, allocations: 448 / 0.5065 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008605/0.4698, allocations: 476.6 kB / 0.5069 GB, free: 14.92 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007903/0.4706, allocations: 88.41 kB / 0.507 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007824/0.4784, allocations: 3.951 MB / 0.5109 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.4789, allocations: 0.8177 MB / 0.5117 GB, free: 9.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004046/0.4793, allocations: 145.7 kB / 0.5118 GB, free: 9.734 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.4795, allocations: 123.4 kB / 0.5119 GB, free: 9.613 MB / 430.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4795, allocations: 0 / 0.5119 GB, free: 9.613 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.268/0.7476, allocations: 41.35 MB / 0.5523 GB, free: 84.03 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.39, allocations: 12.94 kB / 0.5523 GB, free: 84.03 MB / 446.1 MB " [Timeout remaining time 644] (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.85839350288734] Failed to read output from testmodel.py, exit status != 0: ['time', 'V', 'medium.h', 'medium.p'] 15.511521094944328 15.527900637 15.189106537 Calling exit ...