Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8081/0.8081, allocations: 153.8 MB / 172.7 MB, free: 4.883 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005042/0.0005042, allocations: 15.97 kB / 249.7 MB, free: 4.434 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1733, allocations: 33.35 MB / 283.1 MB, free: 1.742 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.816/1.989, allocations: 307.4 MB / 0.5767 GB, free: 17.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0314/2.021, allocations: 30.74 MB / 0.6067 GB, free: 2.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/2.021, allocations: 1.438 kB / 0.6067 GB, free: 2.766 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004159/2.021, allocations: 111.8 kB / 0.6068 GB, free: 2.715 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/2.021, allocations: 118 kB / 0.6069 GB, free: 2.633 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02831/2.05, allocations: 9.756 MB / 0.6165 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000735/2.051, allocations: 354.8 kB / 0.6168 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/2.051, allocations: 97.39 kB / 0.6169 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/2.051, allocations: 156.3 kB / 0.617 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/2.051, allocations: 103.4 kB / 0.6171 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/2.051, allocations: 21.22 kB / 0.6172 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03391/2.085, allocations: 16.82 MB / 0.6336 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.979e-05/2.085, allocations: 51.77 kB / 0.6336 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001821/2.085, allocations: 107.5 kB / 0.6337 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02237/2.108, allocations: 8.513 MB / 0.6421 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/2.108, allocations: 0 / 0.6421 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/2.108, allocations: 0 / 0.6421 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.512e-05/2.108, allocations: 0 / 0.6421 GB, free: 2.57 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004364/2.112, allocations: 1.427 MB / 0.6435 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/2.112, allocations: 12.03 kB / 0.6435 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/2.112, allocations: 62.53 kB / 0.6435 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/2.112, allocations: 27.81 kB / 0.6436 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/2.113, allocations: 176.7 kB / 0.6437 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.734e-05/2.113, allocations: 12.44 kB / 0.6437 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/2.113, allocations: 24.84 kB / 0.6438 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005197/2.113, allocations: 347.7 kB / 0.6441 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/2.113, allocations: 4.5 kB / 0.6441 GB, free: 392 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/2.113, allocations: 12 kB / 0.6441 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/2.113, allocations: 15.92 kB / 0.6441 GB, free: 364 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/2.114, allocations: 173.2 kB / 0.6443 GB, free: 188 kB / 0.4981 GB 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.03676/2.15, allocations: 10.92 MB / 0.6549 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/2.151, allocations: 130.5 kB / 0.6551 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/2.151, allocations: 72.83 kB / 0.6551 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1485/2.3, allocations: 43.63 MB / 0.6977 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/2.3, allocations: 35.69 kB / 0.6978 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.315e-06/2.3, allocations: 4.781 kB / 0.6978 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.0009163/2.301, allocations: 344.4 kB / 0.6981 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/2.301, allocations: 81.11 kB / 0.6982 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/2.301, allocations: 223.1 kB / 0.6984 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/2.301, allocations: 25.7 kB / 0.6984 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/2.301, allocations: 164.6 kB / 0.6986 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.279e-05/2.301, allocations: 111 kB / 0.6987 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-05/2.301, allocations: 53.69 kB / 0.6987 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001709/2.301, allocations: 338.8 kB / 0.6991 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/2.301, allocations: 72.73 kB / 0.6991 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/2.302, allocations: 163.6 kB / 0.6993 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/2.302, allocations: 237.5 kB / 0.6995 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/2.302, allocations: 0 / 0.6995 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004504/2.302, allocations: 302.1 kB / 0.6998 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/2.302, allocations: 8.156 kB / 0.6998 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/2.302, allocations: 4 kB / 0.6998 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009029/2.303, allocations: 135.3 kB / 0.6999 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.979e-05/2.303, allocations: 25.89 kB / 0.7 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005767/2.304, allocations: 0.6119 MB / 0.7006 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/2.304, allocations: 35.7 kB / 0.7006 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/2.304, allocations: 8 kB / 0.7006 GB, free: 6.238 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001455/2.304, allocations: 137.8 kB / 0.7007 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.785e-05/2.304, allocations: 23.8 kB / 0.7008 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009627/2.305, allocations: 0.5979 MB / 0.7013 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005253/2.306, allocations: 226.4 kB / 0.7016 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/2.306, allocations: 0 / 0.7016 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/2.306, allocations: 4 kB / 0.7016 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/2.307, allocations: 0.6665 MB / 0.7022 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/2.307, allocations: 5.953 kB / 0.7022 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.433e-05/2.307, allocations: 19.98 kB / 0.7022 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003313/2.307, allocations: 114.9 kB / 0.7023 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/2.307, allocations: 4 kB / 0.7024 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005532/2.308, allocations: 0.6443 MB / 0.703 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/2.308, allocations: 0.7031 kB / 0.703 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006383/2.309, allocations: 349.8 kB / 0.7033 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.177e-05/2.309, allocations: 28.58 kB / 0.7033 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/2.309, allocations: 15.83 kB / 0.7034 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/2.309, allocations: 7.984 kB / 0.7034 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/2.309, allocations: 11.98 kB / 0.7034 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/2.309, allocations: 11.88 kB / 0.7034 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002656/2.309, allocations: 239.1 kB / 0.7036 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/2.309, allocations: 0 / 0.7036 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003002/2.312, allocations: 1.231 MB / 0.7048 GB, free: 1.746 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005231/2.317, allocations: 2.55 MB / 0.7073 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005716/2.318, allocations: 239 kB / 0.7075 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/2.318, allocations: 4.125 kB / 0.7075 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002484/2.318, allocations: 87.89 kB / 0.7076 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006836/2.319, allocations: 128.2 kB / 0.7077 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/2.323, allocations: 3.089 MB / 0.7108 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/2.323, allocations: 166 kB / 0.7109 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001041/2.323, allocations: 29.2 kB / 0.711 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/2.323, allocations: 91.41 kB / 0.711 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/2.323, allocations: 0 / 0.711 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09354/2.417, allocations: 49.14 MB / 0.759 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/16.97, allocations: 0 / 0.759 GB, free: 10.84 MB / 0.6231 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.044281516224146] Failed to read output from testmodel.py, exit status != 0: 17.50673543009907 17.517667466 15.407392936 Calling exit ...