Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.8076/0.8076, allocations: 153.8 MB / 173.5 MB, free: 4.934 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.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004755/0.0004755, allocations: 15.97 kB / 250.6 MB, free: 4.496 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1568, allocations: 33.35 MB / 283.9 MB, free: 1.805 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.786/1.943, allocations: 307.4 MB / 0.5774 GB, free: 16.02 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03496/1.978, allocations: 35.35 MB / 0.612 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004125/1.979, allocations: 3.688 kB / 0.612 GB, free: 13.89 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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.0007242/1.979, allocations: 291.8 kB / 0.6122 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000475/1.98, allocations: 285.4 kB / 0.6125 GB, free: 13.71 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.02877/2.009, allocations: 10.07 MB / 0.6223 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009783/2.01, allocations: 0.4948 MB / 0.6228 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/2.01, allocations: 158.4 kB / 0.623 GB, free: 6.863 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003885/2.01, allocations: 259.1 kB / 0.6232 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/2.011, allocations: 319 kB / 0.6235 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.233e-05/2.011, allocations: 28 kB / 0.6236 GB, free: 6.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03605/2.047, allocations: 18.09 MB / 0.6412 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002857/2.047, allocations: 171.4 kB / 0.6414 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003734/2.047, allocations: 270.2 kB / 0.6416 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02268/2.07, allocations: 8.902 MB / 0.6503 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/2.07, allocations: 0 / 0.6503 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.643e-06/2.07, allocations: 0 / 0.6503 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.869e-06/2.07, allocations: 0 / 0.6503 GB, free: 10.8 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004898/2.075, allocations: 1.834 MB / 0.6521 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/2.075, allocations: 8.031 kB / 0.6521 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.535e-05/2.075, allocations: 9.156 kB / 0.6521 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/2.075, allocations: 70.53 kB / 0.6522 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/2.075, allocations: 75.47 kB / 0.6523 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006157/2.076, allocations: 437 kB / 0.6527 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/2.076, allocations: 17.75 kB / 0.6527 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/2.076, allocations: 24 kB / 0.6527 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/2.077, allocations: 437.9 kB / 0.6532 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/2.077, allocations: 0 / 0.6532 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/2.077, allocations: 16 kB / 0.6532 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/2.077, allocations: 19.92 kB / 0.6532 GB, free: 7.77 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004888/2.077, allocations: 345.7 kB / 0.6535 GB, free: 7.434 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.03636/2.114, allocations: 11.81 MB / 0.6651 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/2.114, allocations: 154.6 kB / 0.6652 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/2.114, allocations: 80.78 kB / 0.6653 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1493/2.264, allocations: 43.45 MB / 0.7077 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/2.264, allocations: 34.5 kB / 0.7077 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.084e-06/2.264, allocations: 0 / 0.7077 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001888/2.266, allocations: 0.5237 MB / 0.7083 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.997e-05/2.266, allocations: 106.8 kB / 0.7084 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/2.267, allocations: 1.008 MB / 0.7093 GB, free: 14 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/2.267, allocations: 25.7 kB / 0.7094 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/2.267, allocations: 308.5 kB / 0.7097 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/2.268, allocations: 130.8 kB / 0.7098 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/2.268, allocations: 65.69 kB / 0.7099 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001955/2.268, allocations: 378.8 kB / 0.7102 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/2.268, allocations: 160.4 kB / 0.7104 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/2.268, allocations: 241 kB / 0.7106 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004464/2.269, allocations: 340 kB / 0.7109 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/2.269, allocations: 8 kB / 0.7109 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008619/2.27, allocations: 0.5346 MB / 0.7114 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/2.27, allocations: 4.781 kB / 0.7115 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/2.27, allocations: 7.984 kB / 0.7115 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/2.271, allocations: 216.7 kB / 0.7117 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.682e-05/2.271, allocations: 27.92 kB / 0.7117 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007487/2.272, allocations: 0.6675 MB / 0.7123 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/2.272, allocations: 47.66 kB / 0.7124 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.906e-05/2.272, allocations: 16.8 kB / 0.7124 GB, free: 10.75 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002893/2.273, allocations: 245.8 kB / 0.7126 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/2.273, allocations: 72.22 kB / 0.7127 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009208/2.274, allocations: 0.6873 MB / 0.7134 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003775/2.274, allocations: 247.2 kB / 0.7136 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/2.274, allocations: 0 / 0.7136 GB, free: 9.414 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/2.274, allocations: 4.688 kB / 0.7136 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/2.276, allocations: 0.9474 MB / 0.7145 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/2.276, allocations: 1.688 kB / 0.7145 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.497e-05/2.276, allocations: 20.69 kB / 0.7146 GB, free: 8.391 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008845/2.277, allocations: 190.5 kB / 0.7147 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/2.277, allocations: 0 / 0.7147 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006981/2.277, allocations: 0.7045 MB / 0.7154 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.277, allocations: 4.875 kB / 0.7154 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/2.278, allocations: 407.8 kB / 0.7158 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/2.278, allocations: 95.48 kB / 0.7159 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.77e-05/2.278, allocations: 15.94 kB / 0.7159 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/2.278, allocations: 11.94 kB / 0.7159 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/2.278, allocations: 11.97 kB / 0.716 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/2.278, allocations: 4 kB / 0.716 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001003/2.279, allocations: 0.8114 MB / 0.7168 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.01e-07/2.279, allocations: 4 kB / 0.7168 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003425/2.283, allocations: 1.288 MB / 0.718 GB, free: 4.816 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006962/2.29, allocations: 2.639 MB / 0.7206 GB, free: 2.18 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008044/2.291, allocations: 330.6 kB / 0.7209 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/2.291, allocations: 4 kB / 0.7209 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003246/2.291, allocations: 109.1 kB / 0.721 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009227/2.292, allocations: 164.8 kB / 0.7212 GB, free: 1.602 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/2.302, allocations: 6.15 MB / 0.7272 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006476/2.303, allocations: 0.94 MB / 0.7281 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001753/2.303, allocations: 58.78 kB / 0.7282 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/2.303, allocations: 231.4 kB / 0.7284 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of SimCode: time 8.32e-07/2.303, allocations: 4 kB / 0.7284 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0984/2.401, allocations: 54.84 MB / 0.7819 GB, free: 3.887 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/18.21, allocations: 19.77 kB / 0.782 GB, free: 3.879 MB / 0.6387 GB " [Timeout remaining time 641] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.56446596700698] Failed to read output from testmodel.py, exit status != 0: 18.803791680024005 18.81689608 16.743957433 Calling exit ...