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.8508/0.8508, allocations: 153.8 MB / 172.7 MB, free: 4.879 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.000515/0.000515, allocations: 11.97 kB / 249.8 MB, free: 4.383 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1769, 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.SimpleExamples.TestSingularPressureLoss): time 1.896/2.073, allocations: 307.5 MB / 0.5768 GB, free: 17.27 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03324/2.106, allocations: 30.51 MB / 0.6066 GB, free: 2.719 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003303/2.107, allocations: 3.406 kB / 0.6066 GB, free: 2.719 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/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.0004241/2.107, allocations: 107.9 kB / 0.6067 GB, free: 2.672 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002215/2.107, allocations: 109.8 kB / 0.6068 GB, free: 2.598 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.02793/2.135, allocations: 9.681 MB / 0.6163 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006683/2.136, allocations: 334.3 kB / 0.6166 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/2.136, allocations: 94.48 kB / 0.6167 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/2.136, allocations: 139.4 kB / 0.6168 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/2.137, allocations: 99.42 kB / 0.6169 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/2.137, allocations: 16.66 kB / 0.6169 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03323/2.17, allocations: 16.75 MB / 0.6333 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/2.17, allocations: 51.77 kB / 0.6334 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001838/2.17, allocations: 95.55 kB / 0.6334 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02039/2.191, allocations: 8.439 MB / 0.6417 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/2.191, allocations: 0 / 0.6417 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.244e-06/2.191, allocations: 0 / 0.6417 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.226e-06/2.191, allocations: 0 / 0.6417 GB, free: 3.07 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004007/2.195, allocations: 1.396 MB / 0.643 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/2.195, allocations: 12.03 kB / 0.6431 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.205e-05/2.195, allocations: 60.56 kB / 0.6431 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.749e-05/2.195, allocations: 28.38 kB / 0.6431 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/2.195, allocations: 172.7 kB / 0.6433 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/2.195, allocations: 12.44 kB / 0.6433 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/2.195, allocations: 20 kB / 0.6433 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/2.195, allocations: 298.7 kB / 0.6436 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/2.195, allocations: 0.6562 kB / 0.6436 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/2.195, allocations: 9 kB / 0.6436 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/2.195, allocations: 12 kB / 0.6436 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/2.196, allocations: 162.1 kB / 0.6438 GB, free: 0.8086 MB / 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.03521/2.231, allocations: 10.82 MB / 0.6544 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/2.231, allocations: 102.5 kB / 0.6545 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.983e-05/2.231, allocations: 65.48 kB / 0.6545 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1461/2.377, allocations: 43.58 MB / 0.6971 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/2.377, allocations: 38.56 kB / 0.6971 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/2.377, allocations: 0.75 kB / 0.6971 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0008712/2.378, allocations: 326.2 kB / 0.6974 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/2.378, allocations: 51.41 kB / 0.6975 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/2.379, allocations: 215.7 kB / 0.6977 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/2.379, allocations: 29.7 kB / 0.6977 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/2.379, allocations: 144.8 kB / 0.6979 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/2.379, allocations: 115 kB / 0.698 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.07e-05/2.379, allocations: 49.62 kB / 0.698 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001659/2.379, allocations: 331.6 kB / 0.6983 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/2.379, allocations: 72.3 kB / 0.6984 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/2.379, allocations: 119.9 kB / 0.6985 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/2.38, allocations: 205.5 kB / 0.6987 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/2.38, allocations: 0 / 0.6987 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004031/2.38, allocations: 282 kB / 0.699 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/2.38, allocations: 4.125 kB / 0.699 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/2.38, allocations: 8.938 kB / 0.699 GB, free: 8.074 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007938/2.381, allocations: 137.4 kB / 0.6991 GB, free: 7.938 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.168e-05/2.381, allocations: 16.98 kB / 0.6991 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005504/2.381, allocations: 0.6076 MB / 0.6997 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/2.382, allocations: 27.77 kB / 0.6998 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/2.382, allocations: 8 kB / 0.6998 GB, free: 7.254 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 (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 0.0001418/2.382, allocations: 133.8 kB / 0.6999 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/2.382, allocations: 21.59 kB / 0.6999 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007279/2.382, allocations: 0.5618 MB / 0.7005 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003258/2.383, allocations: 206.5 kB / 0.7007 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/2.383, allocations: 0 / 0.7007 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/2.383, allocations: 0 / 0.7007 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007823/2.384, allocations: 0.6201 MB / 0.7013 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/2.384, allocations: 0 / 0.7013 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.359e-05/2.384, allocations: 13.06 kB / 0.7013 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003323/2.384, allocations: 108.7 kB / 0.7014 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/2.384, allocations: 0 / 0.7014 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005039/2.384, allocations: 0.6388 MB / 0.702 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.384, allocations: 0 / 0.702 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/2.385, allocations: 309.2 kB / 0.7023 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.999e-05/2.385, allocations: 31.77 kB / 0.7023 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/2.385, allocations: 11.89 kB / 0.7023 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/2.385, allocations: 5.188 kB / 0.7023 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/2.385, allocations: 7.984 kB / 0.7024 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/2.385, allocations: 1.266 kB / 0.7024 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002501/2.385, allocations: 237.2 kB / 0.7026 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.385, allocations: 64 / 0.7026 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003014/2.388, allocations: 1.208 MB / 0.7038 GB, free: 2.973 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 (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.00536/2.394, allocations: 2.475 MB / 0.7062 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005409/2.394, allocations: 211.3 kB / 0.7064 GB, free: 304 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/2.394, allocations: 0 / 0.7064 GB, free: 304 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/2.394, allocations: 75.95 kB / 0.7064 GB, free: 228 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/2.395, allocations: 122.8 kB / 0.7066 GB, free: 124 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004148/2.399, allocations: 2.963 MB / 0.7095 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/2.399, allocations: 155.5 kB / 0.7096 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.271e-05/2.4, allocations: 20.86 kB / 0.7096 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/2.4, allocations: 87.41 kB / 0.7097 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/2.4, allocations: 0 / 0.7097 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09369/2.493, allocations: 48.23 MB / 0.7568 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.35/16.85, allocations: 8.828 kB / 0.7568 GB, free: 13.23 MB / 0.6231 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: 19.036371971014887] Failed to read output from testmodel.py, exit status != 0: 17.411298854276538 17.422272226 15.229179163 Calling exit ...