Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.8398/0.8398, allocations: 153.8 MB / 170.2 MB, free: 13.77 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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004887, allocations: 13.73 kB / 246.2 MB, free: 14.94 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06498/0.06547, allocations: 33.34 MB / 279.6 MB, free: 15.19 MB / 238.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.TestPipePressureLoss): time 1.748/1.814, allocations: 307.2 MB / 0.5731 GB, free: 10.55 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04302/1.857, allocations: 34.66 MB / 0.6069 GB, free: 7.754 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/1.857, allocations: 4 kB / 0.6069 GB, free: 7.75 MB / 494.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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40: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.0004136/1.858, allocations: 135.7 kB / 0.607 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/1.858, allocations: 111.2 kB / 0.6071 GB, free: 7.512 MB / 494.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.02415/1.882, allocations: 9.746 MB / 0.6167 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005969/1.883, allocations: 350.3 kB / 0.617 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/1.883, allocations: 88.59 kB / 0.6171 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/1.883, allocations: 155.3 kB / 0.6172 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/1.883, allocations: 115.4 kB / 0.6173 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/1.883, allocations: 16 kB / 0.6174 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03019/1.913, allocations: 17.92 MB / 0.6349 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.099e-05/1.913, allocations: 43.78 kB / 0.6349 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/1.914, allocations: 135.3 kB / 0.635 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01951/1.933, allocations: 8.435 MB / 0.6433 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/1.933, allocations: 0 / 0.6433 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.978e-06/1.933, allocations: 4 kB / 0.6433 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.037e-06/1.933, allocations: 0 / 0.6433 GB, free: 2.461 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004582/1.938, allocations: 1.494 MB / 0.6447 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/1.938, allocations: 8.031 kB / 0.6447 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.408e-05/1.938, allocations: 70.47 kB / 0.6448 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.945e-05/1.938, allocations: 27.81 kB / 0.6448 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/1.938, allocations: 226.6 kB / 0.645 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/1.938, allocations: 16.44 kB / 0.6451 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.083e-05/1.938, allocations: 20 kB / 0.6451 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/1.939, allocations: 303.3 kB / 0.6454 GB, free: 180 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.939, allocations: 0 / 0.6454 GB, free: 180 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/1.939, allocations: 12 kB / 0.6454 GB, free: 168 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/1.939, allocations: 11.98 kB / 0.6454 GB, free: 156 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002755/1.939, allocations: 166.4 kB / 0.6455 GB, free: 15.99 MB / 0.5294 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.03956/1.979, allocations: 18.13 MB / 0.6632 GB, free: 11.98 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/1.979, allocations: 106.7 kB / 0.6634 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/1.979, allocations: 68.78 kB / 0.6634 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3538/2.333, allocations: 82.86 MB / 0.7443 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/2.333, allocations: 39.56 kB / 0.7444 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.834e-06/2.333, allocations: 0 / 0.7444 GB, free: 196.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009418/2.334, allocations: 448.1 kB / 0.7448 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/2.334, allocations: 52.62 kB / 0.7448 GB, free: 196.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/2.334, allocations: 218.5 kB / 0.7451 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/2.334, allocations: 29.64 kB / 0.7451 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.436e-05/2.334, allocations: 146.9 kB / 0.7452 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.491e-05/2.334, allocations: 119 kB / 0.7453 GB, free: 196 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/2.334, allocations: 47.53 kB / 0.7454 GB, free: 196 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.071e-05/2.334, allocations: 340.7 kB / 0.7457 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.964e-05/2.334, allocations: 71 kB / 0.7458 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/2.334, allocations: 111.1 kB / 0.7459 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/2.335, allocations: 213.2 kB / 0.7461 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.335, allocations: 3.609 kB / 0.7461 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003559/2.335, allocations: 293.2 kB / 0.7464 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/2.335, allocations: 3.969 kB / 0.7464 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/2.335, allocations: 3.938 kB / 0.7464 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008533/2.336, allocations: 166.3 kB / 0.7465 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.135e-05/2.336, allocations: 8.938 kB / 0.7465 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003693/2.336, allocations: 0.6373 MB / 0.7472 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/2.336, allocations: 28.59 kB / 0.7472 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/2.336, allocations: 3.875 kB / 0.7472 GB, free: 194.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 9.863e-05/2.337, allocations: 145 kB / 0.7473 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.364e-05/2.337, allocations: 23.7 kB / 0.7474 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000565/2.337, allocations: 0.5733 MB / 0.7479 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002926/2.337, allocations: 220.1 kB / 0.7481 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/2.337, allocations: 0 / 0.7481 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/2.337, allocations: 0 / 0.7481 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007584/2.338, allocations: 0.7252 MB / 0.7488 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/2.338, allocations: 0.5625 kB / 0.7488 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/2.338, allocations: 22.31 kB / 0.7489 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003414/2.339, allocations: 113.6 kB / 0.749 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/2.339, allocations: 3.875 kB / 0.749 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000318/2.339, allocations: 0.65 MB / 0.7496 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/2.339, allocations: 4 kB / 0.7496 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/2.339, allocations: 336 kB / 0.7499 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/2.339, allocations: 104.4 kB / 0.75 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/2.339, allocations: 13.44 kB / 0.75 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/2.339, allocations: 3.812 kB / 0.75 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.858e-05/2.34, allocations: 18.17 kB / 0.7501 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/2.34, allocations: 3.969 kB / 0.7501 GB, free: 193 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001787/2.34, allocations: 239.2 kB / 0.7503 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/2.34, allocations: 0 / 0.7503 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002699/2.342, allocations: 1.205 MB / 0.7515 GB, free: 192.9 MB / 0.5919 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005584/2.348, allocations: 2.517 MB / 0.7539 GB, free: 191 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004593/2.348, allocations: 214.8 kB / 0.7541 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/2.348, allocations: 0 / 0.7541 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/2.349, allocations: 85.44 kB / 0.7542 GB, free: 190.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/2.349, allocations: 118.7 kB / 0.7543 GB, free: 190.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/2.353, allocations: 3.051 MB / 0.7573 GB, free: 188 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/2.353, allocations: 0.773 MB / 0.7581 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.974e-05/2.353, allocations: 21.95 kB / 0.7581 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/2.354, allocations: 88.91 kB / 0.7582 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of SimCode: time 3.8e-07/2.354, allocations: 0 / 0.7582 GB, free: 187.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07589/2.429, allocations: 47.85 MB / 0.8049 GB, free: 140.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/16.25, allocations: 12.05 kB / 0.8049 GB, free: 140.1 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss_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_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.202965410993784] Failed to read output from testmodel.py, exit status != 0: 16.515433338994626 16.524861631 14.589511177 Calling exit ...