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.8169/0.8169, allocations: 153.9 MB / 172.7 MB, free: 4.984 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.0005113/0.0005113, allocations: 19.97 kB / 249.8 MB, free: 4.527 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1619, allocations: 33.36 MB / 283.2 MB, free: 1.855 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.TestPipePressureLoss): time 1.762/1.924, allocations: 307.4 MB / 0.5767 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03241/1.956, allocations: 34.7 MB / 0.6106 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003238/1.957, allocations: 2.938 kB / 0.6106 GB, free: 14.46 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.0004498/1.957, allocations: 134.1 kB / 0.6107 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/1.957, allocations: 114.5 kB / 0.6108 GB, free: 14.32 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.02662/1.984, allocations: 9.821 MB / 0.6204 GB, free: 8.844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006584/1.984, allocations: 346.1 kB / 0.6208 GB, free: 8.512 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/1.985, allocations: 92.83 kB / 0.6209 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/1.985, allocations: 155.3 kB / 0.621 GB, free: 8.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/1.985, allocations: 117.5 kB / 0.6211 GB, free: 8.156 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/1.985, allocations: 16.75 kB / 0.6211 GB, free: 8.141 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0351/2.02, allocations: 17.92 MB / 0.6386 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.623e-05/2.02, allocations: 43.8 kB / 0.6387 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002163/2.021, allocations: 131.3 kB / 0.6388 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02105/2.042, allocations: 8.443 MB / 0.647 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/2.042, allocations: 0 / 0.647 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.315e-06/2.042, allocations: 4 kB / 0.647 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.748e-06/2.042, allocations: 4 kB / 0.6471 GB, free: 13.55 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.00417/2.046, allocations: 1.415 MB / 0.6484 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/2.046, allocations: 12.03 kB / 0.6484 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.878e-05/2.046, allocations: 62.53 kB / 0.6485 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/2.046, allocations: 31.75 kB / 0.6485 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/2.046, allocations: 177.8 kB / 0.6487 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/2.046, allocations: 12.44 kB / 0.6487 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/2.046, allocations: 20 kB / 0.6487 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004435/2.047, allocations: 299.4 kB / 0.649 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/2.047, allocations: 0 / 0.649 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/2.047, allocations: 13.88 kB / 0.649 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/2.047, allocations: 11.98 kB / 0.649 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/2.047, allocations: 165.2 kB / 0.6492 GB, free: 11.26 MB / 0.5137 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.03548/2.083, allocations: 11.25 MB / 0.6602 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/2.083, allocations: 110.6 kB / 0.6603 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/2.083, allocations: 72.83 kB / 0.6604 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1409/2.224, allocations: 43.41 MB / 0.7028 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/2.224, allocations: 35.8 kB / 0.7028 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.324e-06/2.224, allocations: 4 kB / 0.7028 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001013/2.225, allocations: 364.4 kB / 0.7031 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/2.225, allocations: 55.41 kB / 0.7032 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/2.225, allocations: 220.9 kB / 0.7034 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/2.225, allocations: 33.7 kB / 0.7034 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/2.225, allocations: 150 kB / 0.7036 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.744e-05/2.225, allocations: 111 kB / 0.7037 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.481e-05/2.226, allocations: 53.66 kB / 0.7037 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001485/2.226, allocations: 338.8 kB / 0.7041 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/2.226, allocations: 79.91 kB / 0.7041 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/2.226, allocations: 124.2 kB / 0.7043 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/2.226, allocations: 205.8 kB / 0.7044 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/2.226, allocations: 0 / 0.7044 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004593/2.227, allocations: 297.7 kB / 0.7047 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/2.227, allocations: 4 kB / 0.7047 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/2.227, allocations: 8.953 kB / 0.7047 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008843/2.228, allocations: 166.1 kB / 0.7049 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.952e-05/2.228, allocations: 8 kB / 0.7049 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005463/2.228, allocations: 0.6339 MB / 0.7055 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/2.228, allocations: 31.67 kB / 0.7056 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/2.228, allocations: 4 kB / 0.7056 GB, free: 1.195 MB / 0.5606 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 0.0001362/2.228, allocations: 141.9 kB / 0.7057 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/2.228, allocations: 23.8 kB / 0.7057 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007542/2.229, allocations: 0.5853 MB / 0.7063 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000354/2.23, allocations: 210.4 kB / 0.7065 GB, free: 156 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/2.23, allocations: 0 / 0.7065 GB, free: 156 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/2.23, allocations: 7.984 kB / 0.7065 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009673/2.231, allocations: 0.7027 MB / 0.7072 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/2.231, allocations: 0 / 0.7072 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-05/2.231, allocations: 15.94 kB / 0.7072 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003573/2.231, allocations: 119.5 kB / 0.7073 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/2.231, allocations: 4 kB / 0.7073 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005088/2.231, allocations: 0.6544 MB / 0.708 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/2.231, allocations: 3.938 kB / 0.708 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/2.232, allocations: 337.2 kB / 0.7083 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.331e-05/2.232, allocations: 39.78 kB / 0.7083 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/2.232, allocations: 15.83 kB / 0.7083 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/2.232, allocations: 4.891 kB / 0.7083 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.777e-05/2.232, allocations: 9.734 kB / 0.7084 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/2.232, allocations: 4 kB / 0.7084 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002442/2.232, allocations: 239.1 kB / 0.7086 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.232, allocations: 0 / 0.7086 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003101/2.236, allocations: 1.204 MB / 0.7098 GB, free: 12.71 MB / 0.5762 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.005392/2.241, allocations: 2.515 MB / 0.7122 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005349/2.241, allocations: 217.5 kB / 0.7124 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/2.241, allocations: 0 / 0.7124 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/2.242, allocations: 79.89 kB / 0.7125 GB, free: 9.906 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007203/2.242, allocations: 122.5 kB / 0.7126 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/2.247, allocations: 3.065 MB / 0.7156 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/2.247, allocations: 0.7675 MB / 0.7164 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.559e-05/2.247, allocations: 25.75 kB / 0.7164 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/2.247, allocations: 87.41 kB / 0.7165 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of SimCode: time 5.92e-07/2.247, allocations: 0 / 0.7165 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09962/2.347, allocations: 48.13 MB / 0.7635 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/16.46, allocations: 2.031 kB / 0.7635 GB, free: 6.25 MB / 0.6231 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.624550548000116] Failed to read output from testmodel.py, exit status != 0: 17.001143188000015 17.012237744 14.968145752 Calling exit ...