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.864/0.864, allocations: 153.8 MB / 172.7 MB, free: 4.941 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005181/0.0005181, allocations: 11.98 kB / 249.8 MB, free: 4.512 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1721, allocations: 33.37 MB / 283.2 MB, free: 1.816 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.813/1.985, allocations: 307.5 MB / 0.5768 GB, free: 15.93 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03461/2.02, allocations: 35.35 MB / 0.6114 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004654/2.02, allocations: 3.469 kB / 0.6114 GB, free: 13.88 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.0008011/2.021, allocations: 297.3 kB / 0.6116 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005541/2.021, allocations: 285.8 kB / 0.6119 GB, free: 13.7 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.02834/2.05, allocations: 10.07 MB / 0.6217 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009986/2.051, allocations: 0.4987 MB / 0.6222 GB, free: 6.977 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/2.051, allocations: 156.7 kB / 0.6224 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/2.051, allocations: 255.7 kB / 0.6226 GB, free: 6.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003797/2.052, allocations: 323 kB / 0.6229 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/2.052, allocations: 24 kB / 0.623 GB, free: 6.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03578/2.088, allocations: 18.08 MB / 0.6406 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000262/2.088, allocations: 175.4 kB / 0.6408 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003359/2.088, allocations: 274.2 kB / 0.641 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02187/2.11, allocations: 8.894 MB / 0.6497 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/2.11, allocations: 0 / 0.6497 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.683e-06/2.11, allocations: 0 / 0.6497 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.002e-05/2.11, allocations: 3.938 kB / 0.6497 GB, free: 10.76 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.004992/2.115, allocations: 1.83 MB / 0.6515 GB, free: 8.891 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/2.115, allocations: 8.031 kB / 0.6515 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.466e-05/2.115, allocations: 66.53 kB / 0.6516 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/2.115, allocations: 75.47 kB / 0.6517 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006227/2.116, allocations: 444.9 kB / 0.6521 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/2.116, allocations: 16.5 kB / 0.6521 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.404e-05/2.116, allocations: 24 kB / 0.6521 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/2.117, allocations: 436.9 kB / 0.6525 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/2.117, allocations: 1.688 kB / 0.6525 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/2.117, allocations: 12 kB / 0.6526 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/2.117, allocations: 15.98 kB / 0.6526 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/2.117, allocations: 350.8 kB / 0.6529 GB, free: 7.406 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.03635/2.154, allocations: 11.82 MB / 0.6645 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/2.154, allocations: 150.6 kB / 0.6646 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/2.154, allocations: 86.14 kB / 0.6647 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1444/2.299, allocations: 43.44 MB / 0.7071 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/2.299, allocations: 43.5 kB / 0.7071 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.926e-06/2.299, allocations: 3.938 kB / 0.7071 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001924/2.301, allocations: 0.5145 MB / 0.7076 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/2.301, allocations: 110.8 kB / 0.7078 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/2.302, allocations: 1 MB / 0.7087 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/2.302, allocations: 25.7 kB / 0.7088 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002904/2.303, allocations: 312.4 kB / 0.7091 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/2.303, allocations: 131.8 kB / 0.7092 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/2.303, allocations: 65.69 kB / 0.7092 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002093/2.303, allocations: 378.8 kB / 0.7096 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/2.303, allocations: 160.4 kB / 0.7098 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/2.304, allocations: 239.1 kB / 0.71 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/2.304, allocations: 348 kB / 0.7103 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/2.304, allocations: 0 / 0.7103 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008831/2.305, allocations: 0.5348 MB / 0.7108 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/2.305, allocations: 11.98 kB / 0.7108 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/2.305, allocations: 0.75 kB / 0.7108 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/2.307, allocations: 222.9 kB / 0.7111 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.742e-05/2.307, allocations: 20.73 kB / 0.7111 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007606/2.308, allocations: 0.679 MB / 0.7117 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/2.308, allocations: 43.61 kB / 0.7118 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/2.308, allocations: 12 kB / 0.7118 GB, free: 10.72 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.0003069/2.308, allocations: 249.7 kB / 0.712 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/2.308, allocations: 60.33 kB / 0.7121 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009577/2.309, allocations: 0.6915 MB / 0.7128 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004333/2.31, allocations: 255.2 kB / 0.713 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/2.31, allocations: 5.312 kB / 0.713 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/2.31, allocations: 3.938 kB / 0.713 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/2.311, allocations: 0.9435 MB / 0.7139 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/2.311, allocations: 0 / 0.7139 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/2.311, allocations: 15.98 kB / 0.714 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008907/2.312, allocations: 182.6 kB / 0.7141 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/2.312, allocations: 4 kB / 0.7141 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007103/2.313, allocations: 0.7084 MB / 0.7148 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/2.313, allocations: 3.938 kB / 0.7148 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006531/2.313, allocations: 407.2 kB / 0.7152 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/2.314, allocations: 100.1 kB / 0.7153 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/2.314, allocations: 15.95 kB / 0.7153 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/2.314, allocations: 8 kB / 0.7153 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/2.314, allocations: 15.91 kB / 0.7154 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/2.314, allocations: 12 kB / 0.7154 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001015/2.315, allocations: 0.8114 MB / 0.7162 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.315, allocations: 0 / 0.7162 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00353/2.318, allocations: 1.271 MB / 0.7174 GB, free: 4.797 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.006836/2.325, allocations: 2.651 MB / 0.72 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008463/2.326, allocations: 342.6 kB / 0.7203 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/2.326, allocations: 0 / 0.7203 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002922/2.326, allocations: 97.89 kB / 0.7204 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008645/2.327, allocations: 161.9 kB / 0.7206 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009802/2.337, allocations: 6.162 MB / 0.7266 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006522/2.338, allocations: 0.9362 MB / 0.7275 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001864/2.338, allocations: 60.19 kB / 0.7276 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/2.338, allocations: 229.5 kB / 0.7278 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of SimCode: time 7.32e-07/2.338, allocations: 0 / 0.7278 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1074/2.446, allocations: 54.82 MB / 0.7813 GB, free: 3.871 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/17.9, allocations: 15.3 kB / 0.7813 GB, free: 3.863 MB / 0.6387 GB " [Timeout remaining time 642] (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.041009264066815] Failed to read output from testmodel.py, exit status != 0: 18.436683089006692 18.448616377 16.335768148 Calling exit ...