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.8129/0.8129, allocations: 153.9 MB / 173.5 MB, free: 4.969 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004744/0.0004744, allocations: 11.97 kB / 250.6 MB, free: 4.484 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1699, allocations: 33.36 MB / 284 MB, free: 1.832 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.767/1.936, allocations: 307.3 MB / 0.5774 GB, free: 16.01 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03315/1.97, allocations: 34.69 MB / 0.6113 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/1.97, allocations: 3 kB / 0.6113 GB, free: 14.43 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.0004713/1.97, allocations: 127.4 kB / 0.6114 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003555/1.971, allocations: 116.6 kB / 0.6115 GB, free: 14.29 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.02882/2, allocations: 9.82 MB / 0.6211 GB, free: 8.887 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007715/2, allocations: 335.3 kB / 0.6214 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/2.001, allocations: 84.8 kB / 0.6215 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004064/2.001, allocations: 147.4 kB / 0.6216 GB, free: 8.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/2.001, allocations: 107 kB / 0.6217 GB, free: 8.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/2.001, allocations: 16 kB / 0.6218 GB, free: 8.223 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03436/2.036, allocations: 17.92 MB / 0.6393 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.034e-05/2.036, allocations: 43.84 kB / 0.6393 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001937/2.036, allocations: 135.9 kB / 0.6394 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01998/2.056, allocations: 8.419 MB / 0.6477 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/2.056, allocations: 0 / 0.6477 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.683e-06/2.056, allocations: 8 kB / 0.6477 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.126e-06/2.056, allocations: 0 / 0.6477 GB, free: 13.67 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.004089/2.06, allocations: 1.399 MB / 0.649 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/2.06, allocations: 8.031 kB / 0.649 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.65e-05/2.06, allocations: 10.62 kB / 0.649 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.919e-05/2.06, allocations: 62.53 kB / 0.6491 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/2.06, allocations: 27.81 kB / 0.6491 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/2.06, allocations: 170.3 kB / 0.6493 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/2.06, allocations: 20.44 kB / 0.6493 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/2.06, allocations: 18.02 kB / 0.6493 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/2.061, allocations: 288.5 kB / 0.6496 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/2.061, allocations: 4 kB / 0.6496 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/2.061, allocations: 4 kB / 0.6496 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/2.061, allocations: 19.98 kB / 0.6496 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/2.061, allocations: 164.5 kB / 0.6498 GB, free: 11.4 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.03526/2.096, allocations: 11.23 MB / 0.6608 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003618/2.097, allocations: 99.89 kB / 0.6609 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/2.097, allocations: 64.97 kB / 0.6609 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.146/2.243, allocations: 43.41 MB / 0.7033 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/2.243, allocations: 34.56 kB / 0.7033 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 4.348e-06/2.243, allocations: 4 kB / 0.7033 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0008654/2.244, allocations: 318.2 kB / 0.7036 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/2.244, allocations: 59.34 kB / 0.7037 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/2.244, allocations: 215.7 kB / 0.7039 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/2.244, allocations: 25.7 kB / 0.7039 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/2.244, allocations: 156.7 kB / 0.7041 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.903e-05/2.244, allocations: 103.1 kB / 0.7042 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-05/2.244, allocations: 53.64 kB / 0.7042 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001445/2.244, allocations: 326.8 kB / 0.7045 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/2.245, allocations: 74.64 kB / 0.7046 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/2.245, allocations: 112.9 kB / 0.7047 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/2.245, allocations: 207.6 kB / 0.7049 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/2.245, allocations: 3.938 kB / 0.7049 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004349/2.245, allocations: 274.1 kB / 0.7052 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/2.245, allocations: 5.562 kB / 0.7052 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/2.245, allocations: 4.125 kB / 0.7052 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/2.246, allocations: 143.3 kB / 0.7053 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.763e-05/2.246, allocations: 15.92 kB / 0.7053 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005666/2.247, allocations: 0.6147 MB / 0.7059 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/2.247, allocations: 24.91 kB / 0.706 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/2.247, allocations: 9 kB / 0.706 GB, free: 1.512 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.0001318/2.247, allocations: 133.7 kB / 0.7061 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.807e-05/2.247, allocations: 23.86 kB / 0.7061 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007212/2.248, allocations: 0.5494 MB / 0.7067 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003313/2.248, allocations: 202.2 kB / 0.7069 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/2.248, allocations: 0.75 kB / 0.7069 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/2.248, allocations: 1.172 kB / 0.7069 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008561/2.249, allocations: 0.654 MB / 0.7075 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/2.249, allocations: 0.75 kB / 0.7075 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.717e-05/2.249, allocations: 19.98 kB / 0.7075 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000355/2.249, allocations: 110.1 kB / 0.7076 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/2.25, allocations: 0.8125 kB / 0.7076 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005102/2.25, allocations: 0.6388 MB / 0.7082 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.25, allocations: 0 / 0.7082 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/2.25, allocations: 297.9 kB / 0.7085 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/2.25, allocations: 39.72 kB / 0.7086 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.486e-05/2.25, allocations: 13.02 kB / 0.7086 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.534e-05/2.251, allocations: 0.75 kB / 0.7086 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/2.251, allocations: 11.98 kB / 0.7086 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.421e-06/2.251, allocations: 4.062 kB / 0.7086 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002503/2.251, allocations: 237.2 kB / 0.7088 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.251, allocations: 0 / 0.7088 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003053/2.254, allocations: 1.196 MB / 0.71 GB, free: 13.21 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.006124/2.26, allocations: 2.488 MB / 0.7124 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005286/2.261, allocations: 199.8 kB / 0.7126 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/2.261, allocations: 8.062 kB / 0.7126 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002239/2.261, allocations: 79.89 kB / 0.7127 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007332/2.262, allocations: 129.3 kB / 0.7128 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004503/2.266, allocations: 2.953 MB / 0.7157 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/2.266, allocations: 0.7597 MB / 0.7164 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.607e-05/2.267, allocations: 25.77 kB / 0.7165 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/2.267, allocations: 87.41 kB / 0.7166 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/2.267, allocations: 0 / 0.7166 GB, free: 6.387 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08843/2.355, allocations: 47.84 MB / 0.7633 GB, free: 7.18 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/16.95, allocations: 4.062 kB / 0.7633 GB, free: 7.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.26236065500416] Failed to read output from testmodel.py, exit status != 0: 17.54639950406272 17.557516527 15.4993402 Calling exit ...