Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.8862/0.8862, allocations: 153.8 MB / 170.2 MB, free: 13.75 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.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005045/0.0005045, allocations: 13.03 kB / 246.2 MB, free: 14.96 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06284/0.06335, allocations: 33.35 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.TestBend): time 1.709/1.772, allocations: 307.4 MB / 0.5732 GB, free: 10.46 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04385/1.816, allocations: 35.29 MB / 0.6077 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004429/1.817, allocations: 4 kB / 0.6077 GB, free: 7.023 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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.0007582/1.817, allocations: 287.9 kB / 0.6079 GB, free: 6.742 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005016/1.818, allocations: 290.8 kB / 0.6082 GB, free: 6.457 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.02717/1.845, allocations: 9.989 MB / 0.618 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008057/1.846, allocations: 0.4987 MB / 0.6185 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/1.846, allocations: 156.5 kB / 0.6186 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003782/1.847, allocations: 259.1 kB / 0.6188 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/1.847, allocations: 319.1 kB / 0.6192 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/1.847, allocations: 27.94 kB / 0.6192 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03182/1.879, allocations: 18.07 MB / 0.6368 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002785/1.879, allocations: 179.4 kB / 0.637 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003418/1.879, allocations: 274.2 kB / 0.6373 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02006/1.899, allocations: 8.894 MB / 0.6459 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.899, allocations: 0 / 0.6459 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.264e-06/1.899, allocations: 0 / 0.6459 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.496e-05/1.899, allocations: 4 kB / 0.6459 GB, free: 15.75 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004855/1.904, allocations: 1.89 MB / 0.6478 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/1.904, allocations: 12.03 kB / 0.6478 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.591e-05/1.904, allocations: 70.53 kB / 0.6479 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/1.905, allocations: 75.48 kB / 0.6479 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/1.905, allocations: 0.4948 MB / 0.6484 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/1.905, allocations: 16.56 kB / 0.6484 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/1.905, allocations: 27.94 kB / 0.6485 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005916/1.906, allocations: 429.3 kB / 0.6489 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/1.906, allocations: 0 / 0.6489 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/1.906, allocations: 12 kB / 0.6489 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/1.906, allocations: 19.98 kB / 0.6489 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/1.906, allocations: 349.7 kB / 0.6492 GB, free: 12.23 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.03985/1.946, allocations: 18.69 MB / 0.6675 GB, free: 7.664 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006039/1.947, allocations: 150.6 kB / 0.6676 GB, free: 7.508 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/1.947, allocations: 76.84 kB / 0.6677 GB, free: 7.43 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3365/2.283, allocations: 83.06 MB / 0.7488 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/2.283, allocations: 33.88 kB / 0.7489 GB, free: 193 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.094e-06/2.283, allocations: 0 / 0.7489 GB, free: 193 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001705/2.285, allocations: 0.5866 MB / 0.7494 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/2.285, allocations: 106.7 kB / 0.7495 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009913/2.286, allocations: 1.01 MB / 0.7505 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/2.286, allocations: 25.7 kB / 0.7505 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/2.286, allocations: 302.6 kB / 0.7508 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/2.286, allocations: 133.9 kB / 0.751 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.875e-05/2.287, allocations: 66.39 kB / 0.751 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/2.287, allocations: 388.8 kB / 0.7514 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/2.287, allocations: 155.5 kB / 0.7515 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/2.287, allocations: 236.3 kB / 0.7518 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/2.287, allocations: 339.5 kB / 0.7521 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/2.287, allocations: 0 / 0.7521 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00058/2.288, allocations: 0.5327 MB / 0.7526 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/2.288, allocations: 4 kB / 0.7526 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/2.288, allocations: 4 kB / 0.7526 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/2.289, allocations: 223.1 kB / 0.7528 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.185e-05/2.29, allocations: 19.38 kB / 0.7529 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004953/2.29, allocations: 0.6803 MB / 0.7535 GB, free: 190.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/2.29, allocations: 42.77 kB / 0.7536 GB, free: 190.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/2.29, allocations: 9.688 kB / 0.7536 GB, free: 190.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001918/2.29, allocations: 253.9 kB / 0.7538 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/2.29, allocations: 72.97 kB / 0.7539 GB, free: 190.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006251/2.291, allocations: 0.6763 MB / 0.7545 GB, free: 189.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002851/2.291, allocations: 240 kB / 0.7548 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/2.291, allocations: 3.984 kB / 0.7548 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/2.291, allocations: 0 / 0.7548 GB, free: 189.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009537/2.292, allocations: 0.972 MB / 0.7557 GB, free: 188.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/2.292, allocations: 0 / 0.7557 GB, free: 188.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-05/2.292, allocations: 16 kB / 0.7557 GB, free: 188.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008172/2.293, allocations: 184.2 kB / 0.7559 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/2.293, allocations: 7.562 kB / 0.7559 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004658/2.294, allocations: 0.708 MB / 0.7566 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/2.294, allocations: 0 / 0.7566 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/2.294, allocations: 409 kB / 0.757 GB, free: 187.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/2.294, allocations: 177.4 kB / 0.7572 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/2.294, allocations: 18.14 kB / 0.7572 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/2.294, allocations: 7.469 kB / 0.7572 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/2.295, allocations: 15.8 kB / 0.7572 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/2.295, allocations: 7.984 kB / 0.7572 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006659/2.295, allocations: 0.8079 MB / 0.758 GB, free: 186.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.295, allocations: 0 / 0.758 GB, free: 186.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002865/2.298, allocations: 1.275 MB / 0.7593 GB, free: 185.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00512/2.303, allocations: 2.647 MB / 0.7618 GB, free: 183.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007377/2.304, allocations: 348.8 kB / 0.7622 GB, free: 182.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.304, allocations: 0 / 0.7622 GB, free: 182.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002486/2.304, allocations: 94.3 kB / 0.7623 GB, free: 182.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008603/2.305, allocations: 150.9 kB / 0.7624 GB, free: 182.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007231/2.312, allocations: 6.141 MB / 0.7684 GB, free: 176.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/2.313, allocations: 0.933 MB / 0.7693 GB, free: 175.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001599/2.313, allocations: 60.16 kB / 0.7694 GB, free: 175.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/2.313, allocations: 231.3 kB / 0.7696 GB, free: 175.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.402e-06/2.313, allocations: 3.844 kB / 0.7696 GB, free: 175.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07851/2.391, allocations: 54.5 MB / 0.8228 GB, free: 121.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/17.14, allocations: 8.203 kB / 0.8228 GB, free: 121.5 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend_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_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.07235094200587] Failed to read output from testmodel.py, exit status != 0: 17.42209518099844 17.431000515 15.529456088 Calling exit ...