Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.8456/0.8456, allocations: 153.8 MB / 170.2 MB, free: 13.79 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.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004872/0.0004872, allocations: 15.42 kB / 246.3 MB, free: 14.93 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05913/0.05962, allocations: 33.36 MB / 279.7 MB, free: 15.14 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.SimpleExamples.TestSingularPressureLoss): time 1.69/1.749, allocations: 307.2 MB / 0.5731 GB, free: 10.62 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04527/1.795, allocations: 34.64 MB / 0.607 GB, free: 7.844 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/1.795, allocations: 3.938 kB / 0.607 GB, free: 7.84 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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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.000421/1.795, allocations: 131.9 kB / 0.6071 GB, free: 7.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/1.795, allocations: 111.2 kB / 0.6072 GB, free: 7.602 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.02488/1.82, allocations: 9.754 MB / 0.6167 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005759/1.821, allocations: 330.5 kB / 0.6171 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/1.821, allocations: 88.67 kB / 0.6171 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/1.821, allocations: 147.4 kB / 0.6173 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/1.822, allocations: 107.4 kB / 0.6174 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/1.822, allocations: 16 kB / 0.6174 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0318/1.853, allocations: 17.91 MB / 0.6349 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.431e-05/1.853, allocations: 39.86 kB / 0.6349 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000215/1.854, allocations: 131.3 kB / 0.6351 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01963/1.873, allocations: 8.423 MB / 0.6433 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.873, allocations: 0 / 0.6433 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.793e-06/1.873, allocations: 0 / 0.6433 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.638e-06/1.873, allocations: 8 kB / 0.6433 GB, free: 2.613 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004429/1.878, allocations: 1.474 MB / 0.6447 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/1.878, allocations: 8.031 kB / 0.6447 GB, free: 1.078 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.773e-05/1.878, allocations: 62.53 kB / 0.6448 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.083e-05/1.878, allocations: 31.75 kB / 0.6448 GB, free: 0.9766 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/1.878, allocations: 230.6 kB / 0.645 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/1.878, allocations: 16.44 kB / 0.6451 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/1.878, allocations: 16 kB / 0.6451 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004502/1.879, allocations: 294.7 kB / 0.6454 GB, free: 372 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/1.879, allocations: 0 / 0.6454 GB, free: 372 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/1.879, allocations: 8 kB / 0.6454 GB, free: 364 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/1.879, allocations: 11.94 kB / 0.6454 GB, free: 352 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/1.879, allocations: 160.4 kB / 0.6455 GB, free: 192 kB / 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.04007/1.919, allocations: 18.11 MB / 0.6632 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/1.919, allocations: 98.53 kB / 0.6633 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.693e-05/1.92, allocations: 68.84 kB / 0.6634 GB, free: 12.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4112/2.331, allocations: 82.87 MB / 0.7443 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/2.331, allocations: 30.56 kB / 0.7443 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 3.296e-06/2.331, allocations: 0 / 0.7443 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.001064/2.332, allocations: 398 kB / 0.7447 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/2.332, allocations: 52.25 kB / 0.7448 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/2.332, allocations: 214.9 kB / 0.745 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/2.332, allocations: 29.14 kB / 0.745 GB, free: 196.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.164e-05/2.332, allocations: 149 kB / 0.7451 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.892e-05/2.332, allocations: 112.2 kB / 0.7452 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.858e-05/2.332, allocations: 44.52 kB / 0.7453 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001028/2.332, allocations: 333.3 kB / 0.7456 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/2.333, allocations: 70.73 kB / 0.7457 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/2.333, allocations: 108.4 kB / 0.7458 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/2.333, allocations: 202.8 kB / 0.746 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/2.333, allocations: 0 / 0.746 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003792/2.333, allocations: 273.5 kB / 0.7462 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/2.333, allocations: 5.188 kB / 0.7462 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/2.333, allocations: 0.7812 kB / 0.7462 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008378/2.334, allocations: 144.8 kB / 0.7464 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.006e-05/2.334, allocations: 16.83 kB / 0.7464 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003771/2.335, allocations: 0.6106 MB / 0.747 GB, free: 195 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/2.335, allocations: 32.77 kB / 0.747 GB, free: 195 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/2.335, allocations: 3.969 kB / 0.747 GB, free: 195 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 (singularPressureLoss.C2.b,singularPressureLoss.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,2)} Notification: Performance of prepare postOptimizeDAE: time 9.593e-05/2.335, allocations: 136.1 kB / 0.7471 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/2.335, allocations: 23.64 kB / 0.7472 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005348/2.335, allocations: 0.5427 MB / 0.7477 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002656/2.336, allocations: 194.8 kB / 0.7479 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/2.336, allocations: 0 / 0.7479 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/2.336, allocations: 0 / 0.7479 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006353/2.336, allocations: 0.6738 MB / 0.7485 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/2.336, allocations: 5.062 kB / 0.7485 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.201e-05/2.336, allocations: 21.22 kB / 0.7486 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003272/2.337, allocations: 109.2 kB / 0.7487 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/2.337, allocations: 3.812 kB / 0.7487 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003201/2.337, allocations: 0.6229 MB / 0.7493 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/2.337, allocations: 0 / 0.7493 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/2.337, allocations: 311.4 kB / 0.7496 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.899e-05/2.337, allocations: 110.7 kB / 0.7497 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/2.337, allocations: 6.625 kB / 0.7497 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/2.338, allocations: 7.656 kB / 0.7497 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/2.338, allocations: 9.422 kB / 0.7497 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/2.338, allocations: 3.75 kB / 0.7497 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001843/2.338, allocations: 238 kB / 0.7499 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.338, allocations: 0 / 0.7499 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002869/2.341, allocations: 1.192 MB / 0.7511 GB, free: 193.1 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004434/2.345, allocations: 2.493 MB / 0.7535 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004452/2.345, allocations: 197.8 kB / 0.7537 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/2.345, allocations: 0 / 0.7537 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001844/2.346, allocations: 79.3 kB / 0.7538 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000661/2.346, allocations: 120.9 kB / 0.7539 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/2.349, allocations: 2.962 MB / 0.7568 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/2.349, allocations: 0.7597 MB / 0.7575 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.514e-05/2.349, allocations: 21.95 kB / 0.7576 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/2.349, allocations: 89.22 kB / 0.7577 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of SimCode: time 3.2e-07/2.349, allocations: 0 / 0.7577 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06941/2.419, allocations: 47.56 MB / 0.8041 GB, free: 140.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/16.7, allocations: 4 kB / 0.8041 GB, free: 140.9 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss_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_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.60746363599901] Failed to read output from testmodel.py, exit status != 0: 16.968543117996887 16.976773773 15.101436095 Calling exit ...