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.5875/0.5875, allocations: 120.4 MB / 139.5 MB, free: 12.98 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.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 3.276e-06/3.276e-06, allocations: 0.6094 kB / 216.6 MB, free: 8.672 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.012e-05/2.339e-05, allocations: 6.891 kB / 216.6 MB, free: 8.668 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.TestBend): time 1.034/1.034, allocations: 254.3 MB / 470.9 MB, free: 8.812 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2663/1.301, allocations: 31.09 MB / 0.4903 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/1.301, allocations: 4.125 kB / 0.4903 GB, free: 0.8789 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/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.0006498/1.302, allocations: 268.8 kB / 0.4905 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004329/1.302, allocations: 284.4 kB / 0.4908 GB, free: 0.8594 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.02608/1.328, allocations: 10.03 MB / 0.5006 GB, free: 14.7 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008375/1.329, allocations: 0.5074 MB / 0.5011 GB, free: 14.45 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/1.329, allocations: 164.7 kB / 0.5013 GB, free: 14.37 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005244/1.33, allocations: 333.2 kB / 0.5016 GB, free: 14.18 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/1.33, allocations: 275.6 kB / 0.5018 GB, free: 14.08 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/1.33, allocations: 24.69 kB / 0.5019 GB, free: 14.08 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02787/1.358, allocations: 16.94 MB / 0.5184 GB, free: 1.609 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002227/1.358, allocations: 178.9 kB / 0.5186 GB, free: 1.441 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002477/1.358, allocations: 161.4 kB / 0.5187 GB, free: 1.289 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02109/1.38, allocations: 11.25 MB / 0.5297 GB, free: 6.543 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/1.38, allocations: 0 / 0.5297 GB, free: 6.543 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/1.38, allocations: 0.6562 kB / 0.5297 GB, free: 6.543 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/1.38, allocations: 4 kB / 0.5297 GB, free: 6.539 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004733/1.384, allocations: 1.812 MB / 0.5315 GB, free: 4.695 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/1.384, allocations: 12.03 kB / 0.5315 GB, free: 4.684 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.135e-05/1.384, allocations: 67.09 kB / 0.5316 GB, free: 4.609 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/1.385, allocations: 75.53 kB / 0.5316 GB, free: 4.535 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006506/1.385, allocations: 430.1 kB / 0.532 GB, free: 4.102 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/1.385, allocations: 20.5 kB / 0.5321 GB, free: 4.082 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/1.385, allocations: 27.94 kB / 0.5321 GB, free: 4.055 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005062/1.386, allocations: 489.5 kB / 0.5326 GB, free: 3.527 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/1.386, allocations: 4 kB / 0.5326 GB, free: 3.523 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/1.386, allocations: 8 kB / 0.5326 GB, free: 3.516 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/1.386, allocations: 17.39 kB / 0.5326 GB, free: 3.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/1.386, allocations: 349.9 kB / 0.5329 GB, free: 3.16 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.01973/1.406, allocations: 11.42 MB / 0.5441 GB, free: 7.824 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004564/1.406, allocations: 150.2 kB / 0.5442 GB, free: 7.672 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/1.406, allocations: 84.83 kB / 0.5443 GB, free: 7.586 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07724/1.484, allocations: 43.62 MB / 0.5869 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/1.484, allocations: 30.56 kB / 0.5869 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=38): time 3.336e-06/1.484, allocations: 7.938 kB / 0.5869 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38): time 0.001252/1.485, allocations: 0.5131 MB / 0.5874 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/1.485, allocations: 106.8 kB / 0.5875 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/1.486, allocations: 1.008 MB / 0.5885 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/1.486, allocations: 34.67 kB / 0.5885 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/1.486, allocations: 310.2 kB / 0.5888 GB, free: 9.887 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.933e-05/1.486, allocations: 125.8 kB / 0.589 GB, free: 9.766 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.099e-05/1.486, allocations: 65.64 kB / 0.589 GB, free: 9.695 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.487, allocations: 390.7 kB / 0.5894 GB, free: 9.305 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/1.487, allocations: 164.4 kB / 0.5896 GB, free: 9.145 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/1.487, allocations: 286.9 kB / 0.5898 GB, free: 8.824 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/1.487, allocations: 343.7 kB / 0.5902 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/1.487, allocations: 0 / 0.5902 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005786/1.488, allocations: 0.5425 MB / 0.5907 GB, free: 7.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/1.488, allocations: 4.75 kB / 0.5907 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/1.488, allocations: 4 kB / 0.5907 GB, free: 7.902 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009634/1.489, allocations: 221.3 kB / 0.5909 GB, free: 7.684 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.379e-05/1.489, allocations: 16 kB / 0.5909 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005234/1.489, allocations: 0.6788 MB / 0.5916 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/1.49, allocations: 44.78 kB / 0.5916 GB, free: 6.922 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/1.49, allocations: 13.66 kB / 0.5916 GB, free: 6.91 MB / 0.5261 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.0002334/1.49, allocations: 249.7 kB / 0.5919 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/1.49, allocations: 64.19 kB / 0.5919 GB, free: 6.594 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/1.49, allocations: 0.6942 MB / 0.5926 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002347/1.491, allocations: 259.2 kB / 0.5929 GB, free: 5.559 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.491, allocations: 4.062 kB / 0.5929 GB, free: 5.555 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/1.491, allocations: 0 / 0.5929 GB, free: 5.555 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009398/1.492, allocations: 0.878 MB / 0.5937 GB, free: 4.629 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/1.492, allocations: 4.562 kB / 0.5937 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/1.492, allocations: 17.2 kB / 0.5937 GB, free: 4.609 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005177/1.492, allocations: 181.8 kB / 0.5939 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/1.492, allocations: 8 kB / 0.5939 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004305/1.493, allocations: 0.6973 MB / 0.5946 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.493, allocations: 0 / 0.5946 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/1.493, allocations: 417.2 kB / 0.595 GB, free: 3.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/1.493, allocations: 99.42 kB / 0.5951 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/1.493, allocations: 13.95 kB / 0.5951 GB, free: 3.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/1.493, allocations: 11.98 kB / 0.5951 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/1.493, allocations: 7.984 kB / 0.5951 GB, free: 3.141 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/1.493, allocations: 8 kB / 0.5951 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007167/1.494, allocations: 0.8153 MB / 0.5959 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6e-08/1.494, allocations: 0.6562 kB / 0.5959 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003204/1.497, allocations: 1.274 MB / 0.5972 GB, free: 1.047 MB / 0.5261 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.007111/1.504, allocations: 2.824 MB / 0.5999 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0008852/1.505, allocations: 332.6 kB / 0.6003 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/1.505, allocations: 0 / 0.6003 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002004/1.505, allocations: 106.7 kB / 0.6004 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000808/1.506, allocations: 151.4 kB / 0.6005 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007815/1.514, allocations: 6.15 MB / 0.6065 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/1.514, allocations: 342.3 kB / 0.6068 GB, free: 7.199 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000192/1.515, allocations: 66.7 kB / 0.6069 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/1.515, allocations: 232.4 kB / 0.6071 GB, free: 6.91 MB / 0.5417 GB Notification: Performance of SimCode: time 1.874e-06/1.515, allocations: 0 / 0.6071 GB, free: 6.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08148/1.596, allocations: 55.38 MB / 0.6612 GB, free: 15.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.796/11.39, allocations: 2.75 kB / 0.6612 GB, free: 15.93 MB / 0.6042 GB " [Timeout remaining time 648] (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: 13.070023839361966] Failed to read output from testmodel.py, exit status != 0: 11.946656563319266 11.859778058 10.478305108 Calling exit ...