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.8323/0.8323, allocations: 153.8 MB / 173.4 MB, free: 4.875 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.0005046/0.0005046, allocations: 11.98 kB / 250.5 MB, free: 4.445 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.1913, allocations: 33.35 MB / 283.9 MB, free: 1.738 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.869/2.06, allocations: 307.2 MB / 0.5772 GB, free: 17.26 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03467/2.095, allocations: 31.07 MB / 0.6076 GB, free: 2.5 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004687/2.096, allocations: 3.531 kB / 0.6076 GB, free: 2.5 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/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.0008817/2.096, allocations: 270.8 kB / 0.6078 GB, free: 2.438 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007361/2.097, allocations: 289 kB / 0.6081 GB, free: 2.332 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.03159/2.129, allocations: 9.929 MB / 0.6178 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009967/2.13, allocations: 0.4956 MB / 0.6183 GB, free: 11.44 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/2.13, allocations: 163.3 kB / 0.6184 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004142/2.13, allocations: 255.1 kB / 0.6187 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/2.131, allocations: 327 kB / 0.619 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/2.131, allocations: 24 kB / 0.619 GB, free: 10.69 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03537/2.166, allocations: 17.8 MB / 0.6364 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000379/2.167, allocations: 183.3 kB / 0.6366 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00033/2.167, allocations: 206.6 kB / 0.6368 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02356/2.191, allocations: 8.906 MB / 0.6455 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/2.191, allocations: 0 / 0.6455 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.023e-06/2.191, allocations: 0 / 0.6455 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.038e-05/2.191, allocations: 7.938 kB / 0.6455 GB, free: 15.55 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.004793/2.195, allocations: 1.811 MB / 0.6472 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/2.195, allocations: 8.031 kB / 0.6473 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.223e-05/2.195, allocations: 8.5 kB / 0.6473 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.322e-05/2.196, allocations: 76.08 kB / 0.6473 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/2.196, allocations: 75.47 kB / 0.6474 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/2.196, allocations: 432.9 kB / 0.6478 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/2.196, allocations: 20.5 kB / 0.6478 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/2.196, allocations: 24 kB / 0.6479 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000665/2.197, allocations: 493.1 kB / 0.6483 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/2.197, allocations: 0 / 0.6483 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/2.197, allocations: 11.94 kB / 0.6483 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/2.197, allocations: 19.92 kB / 0.6484 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/2.198, allocations: 345.8 kB / 0.6487 GB, free: 12.14 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.03528/2.233, allocations: 11.43 MB / 0.6599 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/2.233, allocations: 156.5 kB / 0.66 GB, free: 476 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/2.234, allocations: 85.77 kB / 0.6601 GB, free: 388 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.144/2.378, allocations: 43.61 MB / 0.7027 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/2.378, allocations: 38.44 kB / 0.7027 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=38): time 2.354e-06/2.378, allocations: 0 / 0.7027 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of matching and sorting (n=38): time 0.001922/2.38, allocations: 0.5137 MB / 0.7032 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/2.38, allocations: 110.8 kB / 0.7033 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/2.381, allocations: 1.004 MB / 0.7043 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/2.381, allocations: 33.7 kB / 0.7043 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/2.381, allocations: 304.5 kB / 0.7046 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/2.381, allocations: 138.8 kB / 0.7047 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/2.382, allocations: 58.53 kB / 0.7048 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001988/2.382, allocations: 378.8 kB / 0.7052 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/2.382, allocations: 160.4 kB / 0.7053 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/2.382, allocations: 299.8 kB / 0.7056 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/2.383, allocations: 344 kB / 0.7059 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/2.383, allocations: 0 / 0.7059 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008596/2.384, allocations: 0.5387 MB / 0.7065 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/2.384, allocations: 12.03 kB / 0.7065 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/2.384, allocations: 0.6562 kB / 0.7065 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/2.385, allocations: 225.3 kB / 0.7067 GB, free: 484 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/2.385, allocations: 16 kB / 0.7067 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007709/2.386, allocations: 0.6722 MB / 0.7074 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/2.386, allocations: 51.64 kB / 0.7074 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/2.387, allocations: 17.48 kB / 0.7074 GB, free: 15.7 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.0002953/2.387, allocations: 246.7 kB / 0.7077 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/2.387, allocations: 68.36 kB / 0.7077 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009064/2.388, allocations: 0.6814 MB / 0.7084 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003898/2.388, allocations: 251.8 kB / 0.7086 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/2.388, allocations: 0.75 kB / 0.7086 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/2.388, allocations: 7.922 kB / 0.7086 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/2.39, allocations: 0.8764 MB / 0.7095 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/2.39, allocations: 4.031 kB / 0.7095 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.837e-05/2.39, allocations: 19.98 kB / 0.7095 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009472/2.391, allocations: 170.5 kB / 0.7097 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/2.391, allocations: 5.781 kB / 0.7097 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006933/2.391, allocations: 0.72 MB / 0.7104 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/2.391, allocations: 0 / 0.7104 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005425/2.392, allocations: 407.6 kB / 0.7108 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/2.392, allocations: 99.48 kB / 0.7109 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/2.392, allocations: 15.89 kB / 0.7109 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/2.392, allocations: 8.688 kB / 0.7109 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/2.392, allocations: 16.53 kB / 0.7109 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/2.392, allocations: 9.844 kB / 0.7109 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001035/2.393, allocations: 0.8114 MB / 0.7117 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.393, allocations: 0 / 0.7117 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003501/2.397, allocations: 1.278 MB / 0.713 GB, free: 9.832 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.00722/2.404, allocations: 2.642 MB / 0.7155 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008302/2.405, allocations: 334.8 kB / 0.7159 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/2.405, allocations: 0 / 0.7159 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000314/2.405, allocations: 108.7 kB / 0.716 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009411/2.406, allocations: 155.9 kB / 0.7161 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01079/2.417, allocations: 6.155 MB / 0.7221 GB, free: 324 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/2.417, allocations: 334 kB / 0.7224 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001864/2.418, allocations: 57.45 kB / 0.7225 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/2.418, allocations: 227.4 kB / 0.7227 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of SimCode: time 6.42e-07/2.418, allocations: 0 / 0.7227 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1/2.518, allocations: 54.83 MB / 0.7763 GB, free: 9.672 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/18.04, allocations: 6.688 kB / 0.7763 GB, free: 9.668 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.21777321700938] Failed to read output from testmodel.py, exit status != 0: 18.610179514973424 18.62193406 16.428328117 Calling exit ...