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.981/0.981, allocations: 153.9 MB / 172.7 MB, free: 4.953 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.0007349/0.0007349, allocations: 11.97 kB / 249.8 MB, free: 4.453 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2414, allocations: 33.37 MB / 283.2 MB, free: 1.812 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.789/2.03, allocations: 307.4 MB / 0.5768 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03194/2.062, allocations: 34.7 MB / 0.6107 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002954/2.062, allocations: 6.125 kB / 0.6107 GB, free: 14.17 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.0004213/2.063, allocations: 133.5 kB / 0.6108 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/2.063, allocations: 107.7 kB / 0.6109 GB, free: 14.03 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.02676/2.09, allocations: 9.823 MB / 0.6205 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006003/2.09, allocations: 330.5 kB / 0.6208 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/2.09, allocations: 85.88 kB / 0.6209 GB, free: 8.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/2.091, allocations: 143.4 kB / 0.621 GB, free: 7.938 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/2.091, allocations: 107.4 kB / 0.6212 GB, free: 7.832 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/2.091, allocations: 17.59 kB / 0.6212 GB, free: 7.816 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03388/2.125, allocations: 17.92 MB / 0.6387 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.441e-05/2.125, allocations: 39.86 kB / 0.6387 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001984/2.125, allocations: 131.3 kB / 0.6388 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02301/2.148, allocations: 8.423 MB / 0.6471 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/2.148, allocations: 1.031 kB / 0.6471 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.074e-06/2.148, allocations: 0 / 0.6471 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.024e-05/2.148, allocations: 0 / 0.6471 GB, free: 13.27 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.004718/2.153, allocations: 1.4 MB / 0.6484 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/2.153, allocations: 8.031 kB / 0.6484 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/2.153, allocations: 58.55 kB / 0.6485 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.823e-05/2.153, allocations: 31.81 kB / 0.6485 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002358/2.153, allocations: 186 kB / 0.6487 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/2.153, allocations: 12.44 kB / 0.6487 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/2.153, allocations: 20 kB / 0.6487 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/2.154, allocations: 291.6 kB / 0.649 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/2.154, allocations: 1.359 kB / 0.649 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/2.154, allocations: 12 kB / 0.649 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/2.154, allocations: 11.98 kB / 0.649 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/2.154, allocations: 164.5 kB / 0.6492 GB, free: 11 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.03374/2.188, allocations: 11.23 MB / 0.6602 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/2.188, allocations: 102.6 kB / 0.6603 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.77e-05/2.188, allocations: 66.11 kB / 0.6603 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.136/2.324, allocations: 43.41 MB / 0.7027 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/2.324, allocations: 38.55 kB / 0.7027 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 1.914e-06/2.324, allocations: 0 / 0.7027 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0008591/2.325, allocations: 318.2 kB / 0.7031 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/2.325, allocations: 51.41 kB / 0.7031 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/2.325, allocations: 211.8 kB / 0.7033 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/2.325, allocations: 29.7 kB / 0.7033 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/2.325, allocations: 152.6 kB / 0.7035 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.901e-05/2.326, allocations: 111 kB / 0.7036 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.08e-05/2.326, allocations: 45.66 kB / 0.7036 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001599/2.326, allocations: 334.8 kB / 0.7039 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/2.326, allocations: 72.98 kB / 0.704 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/2.326, allocations: 113.7 kB / 0.7041 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/2.326, allocations: 203.6 kB / 0.7043 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/2.326, allocations: 4 kB / 0.7043 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000424/2.327, allocations: 282.1 kB / 0.7046 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/2.327, allocations: 4 kB / 0.7046 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/2.327, allocations: 4.938 kB / 0.7046 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000836/2.328, allocations: 144.7 kB / 0.7047 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.125e-05/2.328, allocations: 16.77 kB / 0.7048 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005561/2.328, allocations: 0.6084 MB / 0.7053 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/2.328, allocations: 23.81 kB / 0.7054 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/2.328, allocations: 5.078 kB / 0.7054 GB, free: 1.113 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.0001325/2.328, allocations: 135 kB / 0.7055 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/2.329, allocations: 27.8 kB / 0.7055 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/2.329, allocations: 0.5486 MB / 0.7061 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003221/2.33, allocations: 198.2 kB / 0.7063 GB, free: 128 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/2.33, allocations: 7.984 kB / 0.7063 GB, free: 120 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/2.33, allocations: 0 / 0.7063 GB, free: 120 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007958/2.33, allocations: 0.6565 MB / 0.7069 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/2.33, allocations: 0 / 0.7069 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.776e-05/2.33, allocations: 17 kB / 0.7069 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003347/2.331, allocations: 109.7 kB / 0.707 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/2.331, allocations: 4 kB / 0.707 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004876/2.331, allocations: 0.6399 MB / 0.7077 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/2.331, allocations: 3.938 kB / 0.7077 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/2.332, allocations: 292.7 kB / 0.7079 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.192e-05/2.332, allocations: 31.73 kB / 0.708 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/2.332, allocations: 15.94 kB / 0.708 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-05/2.332, allocations: 4.875 kB / 0.708 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/2.332, allocations: 7.984 kB / 0.708 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/2.332, allocations: 8 kB / 0.708 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002339/2.332, allocations: 226.1 kB / 0.7082 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.332, allocations: 0 / 0.7082 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003017/2.335, allocations: 1.204 MB / 0.7094 GB, free: 12.82 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005215/2.34, allocations: 2.484 MB / 0.7118 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005476/2.341, allocations: 208.1 kB / 0.712 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/2.341, allocations: 0 / 0.712 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002396/2.341, allocations: 75.89 kB / 0.7121 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007269/2.342, allocations: 130.7 kB / 0.7122 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/2.346, allocations: 2.956 MB / 0.7151 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/2.346, allocations: 0.7597 MB / 0.7158 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.193e-05/2.346, allocations: 23.55 kB / 0.7159 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/2.346, allocations: 87.41 kB / 0.7159 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/2.346, allocations: 0 / 0.7159 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08962/2.436, allocations: 47.82 MB / 0.7627 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/16.96, allocations: 7.984 kB / 0.7627 GB, free: 6.781 MB / 0.6231 GB " [Timeout remaining time 642] (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.265548952000017] Failed to read output from testmodel.py, exit status != 0: 17.535744202999922 17.547878508 15.397241058 Calling exit ...