Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.5689/0.5689, allocations: 120.4 MB / 139.5 MB, free: 13 MB / 138.7 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.374e-06/2.374e-06, allocations: 0 / 216.6 MB, free: 8.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.698e-05/1.936e-05, allocations: 2.281 kB / 216.6 MB, free: 8.68 MB / 202.7 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 0.9767/0.9767, allocations: 254.2 MB / 470.8 MB, free: 8.906 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2392/1.216, allocations: 30.52 MB / 0.4896 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/1.216, allocations: 3.781 kB / 0.4896 GB, free: 0.8867 MB / 442.7 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0003212/1.216, allocations: 107.5 kB / 0.4897 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/1.217, allocations: 124.5 kB / 0.4898 GB, free: 0.875 MB / 442.7 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.02032/1.237, allocations: 9.766 MB / 0.4994 GB, free: 15.11 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005489/1.237, allocations: 370.4 kB / 0.4997 GB, free: 14.96 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/1.238, allocations: 93.16 kB / 0.4998 GB, free: 14.94 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/1.238, allocations: 216.8 kB / 0.5 GB, free: 14.87 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/1.238, allocations: 79.52 kB / 0.5001 GB, free: 14.85 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/1.238, allocations: 16.66 kB / 0.5001 GB, free: 14.85 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02444/1.263, allocations: 16.8 MB / 0.5165 GB, free: 3.219 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 8.699e-05/1.263, allocations: 42.47 kB / 0.5165 GB, free: 3.184 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/1.263, allocations: 88.75 kB / 0.5166 GB, free: 3.102 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0207/1.284, allocations: 10.8 MB / 0.5272 GB, free: 8.793 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/1.284, allocations: 1.531 kB / 0.5272 GB, free: 8.793 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.284, allocations: 0 / 0.5272 GB, free: 8.793 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/1.284, allocations: 0 / 0.5272 GB, free: 8.793 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003839/1.287, allocations: 1.408 MB / 0.5286 GB, free: 7.352 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/1.287, allocations: 8.781 kB / 0.5286 GB, free: 7.344 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/1.288, allocations: 71.91 kB / 0.5286 GB, free: 7.266 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.922e-05/1.288, allocations: 28.41 kB / 0.5287 GB, free: 7.238 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/1.288, allocations: 170.4 kB / 0.5288 GB, free: 7.047 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/1.288, allocations: 12.5 kB / 0.5288 GB, free: 7.035 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/1.288, allocations: 26.06 kB / 0.5289 GB, free: 7.012 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/1.288, allocations: 296.3 kB / 0.5291 GB, free: 6.699 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/1.288, allocations: 0.5312 kB / 0.5291 GB, free: 6.699 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/1.288, allocations: 17.53 kB / 0.5292 GB, free: 6.684 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/1.288, allocations: 11.98 kB / 0.5292 GB, free: 6.672 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/1.288, allocations: 177.1 kB / 0.5293 GB, free: 6.496 MB / 474.7 MB 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.01855/1.307, allocations: 10.83 MB / 0.5399 GB, free: 11.76 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/1.307, allocations: 112.9 kB / 0.54 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.162e-05/1.307, allocations: 72.83 kB / 0.5401 GB, free: 11.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07259/1.38, allocations: 43.58 MB / 0.5826 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/1.38, allocations: 34.56 kB / 0.5827 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.445e-06/1.38, allocations: 0 / 0.5827 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0008093/1.381, allocations: 376.3 kB / 0.583 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/1.381, allocations: 59.33 kB / 0.5831 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/1.381, allocations: 223.1 kB / 0.5833 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/1.381, allocations: 25.7 kB / 0.5833 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/1.381, allocations: 152.7 kB / 0.5835 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/1.381, allocations: 113.7 kB / 0.5836 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/1.381, allocations: 45.69 kB / 0.5836 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.002e-05/1.381, allocations: 334.8 kB / 0.5839 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.921e-05/1.381, allocations: 75.97 kB / 0.584 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/1.381, allocations: 121.6 kB / 0.5841 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/1.382, allocations: 209.1 kB / 0.5843 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/1.382, allocations: 0 / 0.5843 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002974/1.382, allocations: 294.1 kB / 0.5846 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/1.382, allocations: 8 kB / 0.5846 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/1.382, allocations: 7.984 kB / 0.5846 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005506/1.382, allocations: 157.7 kB / 0.5848 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.592e-05/1.382, allocations: 12.78 kB / 0.5848 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003889/1.383, allocations: 0.6315 MB / 0.5854 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.563e-05/1.383, allocations: 31.8 kB / 0.5854 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/1.383, allocations: 4 kB / 0.5854 GB, free: 12.98 MB / 0.5261 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.383, allocations: 137.7 kB / 0.5856 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/1.383, allocations: 24.94 kB / 0.5856 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005105/1.384, allocations: 0.5923 MB / 0.5862 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002078/1.384, allocations: 219 kB / 0.5864 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/1.384, allocations: 3.984 kB / 0.5864 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/1.384, allocations: 3.938 kB / 0.5864 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006276/1.384, allocations: 0.6686 MB / 0.587 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.384, allocations: 0.6562 kB / 0.587 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/1.384, allocations: 12.75 kB / 0.5871 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/1.385, allocations: 125.5 kB / 0.5872 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/1.385, allocations: 0 / 0.5872 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003167/1.385, allocations: 0.6595 MB / 0.5878 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.385, allocations: 0.5625 kB / 0.5878 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/1.385, allocations: 336 kB / 0.5881 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/1.385, allocations: 32.44 kB / 0.5882 GB, free: 10 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/1.385, allocations: 11.89 kB / 0.5882 GB, free: 9.988 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.495e-05/1.385, allocations: 8.062 kB / 0.5882 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/1.385, allocations: 9.156 kB / 0.5882 GB, free: 9.973 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/1.385, allocations: 4 kB / 0.5882 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001739/1.386, allocations: 239.1 kB / 0.5884 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6e-08/1.386, allocations: 0 / 0.5884 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003063/1.389, allocations: 1.21 MB / 0.5896 GB, free: 8.527 MB / 0.5261 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005175/1.394, allocations: 2.68 MB / 0.5922 GB, free: 6.051 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004798/1.394, allocations: 224.5 kB / 0.5924 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.394, allocations: 0 / 0.5924 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/1.394, allocations: 84.16 kB / 0.5925 GB, free: 5.746 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/1.395, allocations: 116 kB / 0.5926 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/1.399, allocations: 3.058 MB / 0.5956 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/1.399, allocations: 164.8 kB / 0.5958 GB, free: 2.297 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 9.762e-05/1.399, allocations: 20.11 kB / 0.5958 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.629e-05/1.399, allocations: 88.47 kB / 0.5959 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/1.399, allocations: 0 / 0.5959 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06934/1.469, allocations: 48.76 MB / 0.6435 GB, free: 1.797 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.903/11.37, allocations: 3.984 kB / 0.6435 GB, free: 1.793 MB / 0.573 GB " [Timeout remaining time 648] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.961480667814612] Failed to read output from testmodel.py, exit status != 0: 11.710898343473673 11.832692929 10.546648271 Calling exit ...