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.8316/0.8316, allocations: 153.8 MB / 172.7 MB, free: 4.859 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.0004963/0.0004963, allocations: 15.98 kB / 249.8 MB, free: 4.355 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1731, allocations: 33.35 MB / 283.1 MB, free: 1.723 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.81/1.983, allocations: 307.5 MB / 0.5768 GB, free: 17.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03098/2.014, allocations: 30.51 MB / 0.6066 GB, free: 2.836 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002806/2.015, allocations: 2.281 kB / 0.6066 GB, free: 2.836 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.000433/2.015, allocations: 106.4 kB / 0.6067 GB, free: 2.789 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/2.015, allocations: 109.2 kB / 0.6068 GB, free: 2.715 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.02652/2.042, allocations: 9.687 MB / 0.6163 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006407/2.043, allocations: 338.3 kB / 0.6166 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/2.043, allocations: 80.84 kB / 0.6167 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/2.043, allocations: 151.4 kB / 0.6168 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/2.043, allocations: 95.44 kB / 0.6169 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/2.043, allocations: 16 kB / 0.6169 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03252/2.076, allocations: 16.75 MB / 0.6333 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/2.076, allocations: 43.84 kB / 0.6333 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001596/2.076, allocations: 107.5 kB / 0.6334 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02184/2.098, allocations: 8.432 MB / 0.6417 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/2.098, allocations: 0 / 0.6417 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/2.098, allocations: 4 kB / 0.6417 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.315e-06/2.098, allocations: 0 / 0.6417 GB, free: 2.883 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.004112/2.102, allocations: 1.396 MB / 0.643 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/2.102, allocations: 8.031 kB / 0.6431 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.133e-05/2.102, allocations: 62.53 kB / 0.6431 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.605e-05/2.102, allocations: 29.08 kB / 0.6431 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/2.102, allocations: 172.7 kB / 0.6433 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/2.102, allocations: 24.42 kB / 0.6433 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/2.102, allocations: 16 kB / 0.6433 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/2.103, allocations: 286.8 kB / 0.6436 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/2.103, allocations: 0 / 0.6436 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/2.103, allocations: 14.44 kB / 0.6436 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/2.103, allocations: 11.98 kB / 0.6436 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002435/2.103, allocations: 158.1 kB / 0.6438 GB, free: 0.625 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.03469/2.138, allocations: 10.83 MB / 0.6544 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/2.138, allocations: 106.5 kB / 0.6545 GB, free: 5.613 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/2.138, allocations: 60.97 kB / 0.6545 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1479/2.286, allocations: 43.58 MB / 0.6971 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/2.286, allocations: 31.5 kB / 0.6971 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=32): time 2.305e-06/2.286, allocations: 0 / 0.6971 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of matching and sorting (n=32): time 0.0009037/2.287, allocations: 326.2 kB / 0.6974 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/2.287, allocations: 51.41 kB / 0.6975 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/2.288, allocations: 219.7 kB / 0.6977 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/2.288, allocations: 25.7 kB / 0.6977 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/2.288, allocations: 152.7 kB / 0.6979 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/2.288, allocations: 111 kB / 0.698 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-05/2.288, allocations: 45.69 kB / 0.698 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001629/2.288, allocations: 334.8 kB / 0.6983 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/2.288, allocations: 70.53 kB / 0.6984 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/2.288, allocations: 112.9 kB / 0.6985 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/2.289, allocations: 205.5 kB / 0.6987 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/2.289, allocations: 0 / 0.6987 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004568/2.289, allocations: 286.6 kB / 0.699 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/2.289, allocations: 8 kB / 0.699 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/2.289, allocations: 0 / 0.699 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008287/2.29, allocations: 150.4 kB / 0.6991 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.853e-05/2.29, allocations: 8 kB / 0.6991 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005964/2.291, allocations: 0.6133 MB / 0.6997 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/2.291, allocations: 25.05 kB / 0.6998 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/2.291, allocations: 9.562 kB / 0.6998 GB, free: 7.07 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.0001422/2.291, allocations: 129.8 kB / 0.6999 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/2.291, allocations: 30.06 kB / 0.6999 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007652/2.292, allocations: 0.5567 MB / 0.7005 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003376/2.292, allocations: 202.4 kB / 0.7007 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/2.292, allocations: 0 / 0.7007 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/2.292, allocations: 0 / 0.7007 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008933/2.293, allocations: 0.6168 MB / 0.7013 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.293, allocations: 0 / 0.7013 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.87e-05/2.293, allocations: 16 kB / 0.7013 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003394/2.293, allocations: 108.7 kB / 0.7014 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/2.293, allocations: 5.219 kB / 0.7014 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005393/2.294, allocations: 0.6343 MB / 0.702 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/2.294, allocations: 4.031 kB / 0.702 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/2.294, allocations: 301.2 kB / 0.7023 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/2.294, allocations: 33.45 kB / 0.7023 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/2.294, allocations: 19.83 kB / 0.7023 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/2.294, allocations: 4.062 kB / 0.7023 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/2.294, allocations: 11.97 kB / 0.7024 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/2.294, allocations: 8 kB / 0.7024 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002749/2.295, allocations: 225.2 kB / 0.7026 GB, free: 4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/2.295, allocations: 0 / 0.7026 GB, free: 4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003273/2.298, allocations: 1.204 MB / 0.7038 GB, free: 2.793 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.006536/2.305, allocations: 2.478 MB / 0.7062 GB, free: 332 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006281/2.305, allocations: 207.5 kB / 0.7064 GB, free: 120 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/2.305, allocations: 0 / 0.7064 GB, free: 120 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/2.305, allocations: 84.14 kB / 0.7064 GB, free: 36 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007992/2.306, allocations: 123.7 kB / 0.7066 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005114/2.311, allocations: 2.95 MB / 0.7094 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/2.311, allocations: 163.4 kB / 0.7096 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001318/2.312, allocations: 23.95 kB / 0.7096 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/2.312, allocations: 87.41 kB / 0.7097 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of SimCode: time 7.72e-07/2.312, allocations: 0 / 0.7097 GB, free: 12.58 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09967/2.411, allocations: 48.22 MB / 0.7568 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/16.77, allocations: 11.23 kB / 0.7568 GB, free: 13.04 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 & /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: 18.762602670118213] Failed to read output from testmodel.py, exit status != 0: 17.306138976942748 17.319266276 15.217671543 Calling exit ...