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.8151/0.8151, allocations: 153.9 MB / 172.7 MB, free: 4.961 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.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 0.0005318/0.0005318, allocations: 7.984 kB / 249.8 MB, free: 4.527 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1641, allocations: 33.36 MB / 283.1 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.805/1.969, allocations: 307.4 MB / 0.5767 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03296/2.002, allocations: 34.7 MB / 0.6106 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/2.002, allocations: 2.344 kB / 0.6106 GB, free: 14.36 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/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.0004287/2.002, allocations: 131 kB / 0.6107 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/2.003, allocations: 120.7 kB / 0.6108 GB, free: 14.21 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.02628/2.029, allocations: 9.823 MB / 0.6204 GB, free: 8.797 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006536/2.029, allocations: 343.5 kB / 0.6208 GB, free: 8.516 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/2.03, allocations: 100.8 kB / 0.6209 GB, free: 8.418 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/2.03, allocations: 151.3 kB / 0.621 GB, free: 8.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/2.03, allocations: 111.5 kB / 0.6211 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/2.03, allocations: 16 kB / 0.6211 GB, free: 8.145 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03571/2.066, allocations: 17.93 MB / 0.6386 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.495e-05/2.066, allocations: 43.78 kB / 0.6387 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002088/2.066, allocations: 139.3 kB / 0.6388 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02017/2.086, allocations: 8.436 MB / 0.647 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/2.086, allocations: 0 / 0.647 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.373e-06/2.086, allocations: 0 / 0.647 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.755e-06/2.086, allocations: 0 / 0.647 GB, free: 13.57 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004005/2.09, allocations: 1.419 MB / 0.6484 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/2.09, allocations: 12.03 kB / 0.6484 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.059e-05/2.09, allocations: 66.53 kB / 0.6485 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.369e-05/2.091, allocations: 27.81 kB / 0.6485 GB, free: 12 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/2.091, allocations: 176.7 kB / 0.6487 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/2.091, allocations: 16.44 kB / 0.6487 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.531e-05/2.091, allocations: 20 kB / 0.6487 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/2.091, allocations: 299.4 kB / 0.649 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/2.091, allocations: 1.031 kB / 0.649 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/2.091, allocations: 5.312 kB / 0.649 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/2.091, allocations: 15.98 kB / 0.649 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002609/2.092, allocations: 173.1 kB / 0.6492 GB, free: 11.26 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.03416/2.126, allocations: 11.25 MB / 0.6602 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/2.126, allocations: 118.7 kB / 0.6603 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/2.126, allocations: 68.84 kB / 0.6604 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1422/2.268, allocations: 43.4 MB / 0.7028 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/2.268, allocations: 38.5 kB / 0.7028 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.505e-06/2.268, allocations: 0 / 0.7028 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001064/2.27, allocations: 361.3 kB / 0.7031 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/2.27, allocations: 60.05 kB / 0.7032 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/2.27, allocations: 220.9 kB / 0.7034 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/2.27, allocations: 29.7 kB / 0.7034 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/2.27, allocations: 148.8 kB / 0.7036 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/2.27, allocations: 115 kB / 0.7037 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.748e-05/2.27, allocations: 57.64 kB / 0.7037 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001479/2.27, allocations: 338.8 kB / 0.7041 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/2.27, allocations: 76.86 kB / 0.7041 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/2.271, allocations: 116.2 kB / 0.7042 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/2.271, allocations: 213.8 kB / 0.7044 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/2.271, allocations: 0 / 0.7044 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004756/2.271, allocations: 302 kB / 0.7047 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/2.271, allocations: 4 kB / 0.7047 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/2.271, allocations: 0 / 0.7047 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000897/2.272, allocations: 166.6 kB / 0.7049 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.515e-05/2.272, allocations: 7.984 kB / 0.7049 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005676/2.273, allocations: 0.6407 MB / 0.7055 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/2.273, allocations: 28.52 kB / 0.7056 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/2.273, allocations: 12 kB / 0.7056 GB, free: 1.199 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 (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.0001365/2.273, allocations: 125.8 kB / 0.7057 GB, free: 1.066 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.198e-05/2.273, allocations: 27.8 kB / 0.7057 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007874/2.274, allocations: 0.5896 MB / 0.7063 GB, free: 388 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003624/2.274, allocations: 214.9 kB / 0.7065 GB, free: 164 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/2.274, allocations: 0 / 0.7065 GB, free: 164 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/2.274, allocations: 0 / 0.7065 GB, free: 164 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/2.275, allocations: 0.7055 MB / 0.7072 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/2.275, allocations: 5 kB / 0.7072 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.107e-05/2.275, allocations: 15.98 kB / 0.7072 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003748/2.276, allocations: 107.2 kB / 0.7073 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/2.276, allocations: 8 kB / 0.7073 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005244/2.276, allocations: 0.655 MB / 0.708 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/2.276, allocations: 12.03 kB / 0.708 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/2.277, allocations: 329.2 kB / 0.7083 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.519e-05/2.277, allocations: 35.78 kB / 0.7083 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/2.277, allocations: 21.02 kB / 0.7083 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/2.277, allocations: 0 / 0.7083 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/2.277, allocations: 11.97 kB / 0.7083 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/2.277, allocations: 12 kB / 0.7084 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002736/2.277, allocations: 239.9 kB / 0.7086 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.277, allocations: 0 / 0.7086 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003432/2.281, allocations: 1.196 MB / 0.7098 GB, free: 12.73 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00654/2.287, allocations: 2.517 MB / 0.7122 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005326/2.288, allocations: 218.4 kB / 0.7124 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/2.288, allocations: 0 / 0.7124 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002012/2.288, allocations: 76.95 kB / 0.7125 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/2.289, allocations: 127.7 kB / 0.7126 GB, free: 9.816 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005053/2.294, allocations: 3.056 MB / 0.7156 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/2.294, allocations: 0.7675 MB / 0.7164 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.921e-05/2.294, allocations: 29.16 kB / 0.7164 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/2.295, allocations: 87.41 kB / 0.7165 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/2.295, allocations: 0 / 0.7165 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09387/2.388, allocations: 48.14 MB / 0.7635 GB, free: 6.262 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/17.23, allocations: 4.562 kB / 0.7635 GB, free: 6.262 MB / 0.6231 GB " [Timeout remaining time 642] (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: 19.325279247015715] Failed to read output from testmodel.py, exit status != 0: 17.780245383968577 17.79087559 15.702023119 Calling exit ...