Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.7836/0.7836, allocations: 153.8 MB / 173.5 MB, free: 4.965 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.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004622, allocations: 15.98 kB / 250.6 MB, free: 4.453 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1529, allocations: 33.37 MB / 284 MB, free: 1.828 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.SimpleExamples.TestPipePressureLoss): time 1.674/1.827, allocations: 307.3 MB / 0.5775 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03042/1.857, allocations: 34.69 MB / 0.6113 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002823/1.857, allocations: 2.25 kB / 0.6114 GB, free: 14.38 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.0004133/1.858, allocations: 133.4 kB / 0.6115 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/1.858, allocations: 121.1 kB / 0.6116 GB, free: 14.23 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.02629/1.884, allocations: 9.818 MB / 0.6212 GB, free: 8.809 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006269/1.885, allocations: 348.1 kB / 0.6215 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/1.885, allocations: 92.77 kB / 0.6216 GB, free: 8.391 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/1.885, allocations: 151.3 kB / 0.6217 GB, free: 8.242 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/1.885, allocations: 121.4 kB / 0.6219 GB, free: 8.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/1.885, allocations: 16 kB / 0.6219 GB, free: 8.109 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0323/1.918, allocations: 17.92 MB / 0.6394 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.39e-05/1.918, allocations: 47.8 kB / 0.6394 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002168/1.918, allocations: 132.1 kB / 0.6395 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01903/1.937, allocations: 8.443 MB / 0.6478 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/1.937, allocations: 7.922 kB / 0.6478 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.703e-06/1.937, allocations: 0 / 0.6478 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.266e-05/1.937, allocations: 0 / 0.6478 GB, free: 13.52 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.003706/1.941, allocations: 1.407 MB / 0.6492 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/1.941, allocations: 12.03 kB / 0.6492 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.572e-05/1.941, allocations: 8.438 kB / 0.6492 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.828e-05/1.941, allocations: 72.69 kB / 0.6493 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.245e-05/1.941, allocations: 27.81 kB / 0.6493 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/1.941, allocations: 176.7 kB / 0.6495 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/1.941, allocations: 12.44 kB / 0.6495 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/1.941, allocations: 20 kB / 0.6495 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/1.942, allocations: 300.9 kB / 0.6498 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/1.942, allocations: 4 kB / 0.6498 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/1.942, allocations: 8 kB / 0.6498 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/1.942, allocations: 15.98 kB / 0.6498 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/1.942, allocations: 169.1 kB / 0.65 GB, free: 11.21 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.03364/1.976, allocations: 11.24 MB / 0.6609 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/1.976, allocations: 116.1 kB / 0.6611 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/1.976, allocations: 76.83 kB / 0.6611 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1426/2.119, allocations: 43.41 MB / 0.7035 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/2.119, allocations: 32.31 kB / 0.7035 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 1.954e-06/2.119, allocations: 0 / 0.7035 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001038/2.12, allocations: 368.4 kB / 0.7039 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/2.12, allocations: 51.41 kB / 0.7039 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/2.12, allocations: 220.9 kB / 0.7042 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/2.12, allocations: 25.7 kB / 0.7042 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/2.12, allocations: 152.7 kB / 0.7043 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/2.12, allocations: 115.6 kB / 0.7044 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.853e-05/2.12, allocations: 57.66 kB / 0.7045 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001479/2.121, allocations: 334.8 kB / 0.7048 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/2.121, allocations: 75.97 kB / 0.7049 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/2.121, allocations: 120.8 kB / 0.705 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/2.121, allocations: 213.8 kB / 0.7052 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/2.121, allocations: 0 / 0.7052 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004544/2.122, allocations: 290.3 kB / 0.7055 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/2.122, allocations: 8 kB / 0.7055 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/2.122, allocations: 3.938 kB / 0.7055 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008922/2.122, allocations: 165.6 kB / 0.7057 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.427e-05/2.122, allocations: 8 kB / 0.7057 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005641/2.123, allocations: 0.6435 MB / 0.7063 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/2.123, allocations: 27.67 kB / 0.7063 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/2.123, allocations: 7.984 kB / 0.7063 GB, free: 1.156 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.0001288/2.123, allocations: 134.8 kB / 0.7065 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/2.123, allocations: 27.8 kB / 0.7065 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007507/2.124, allocations: 0.5899 MB / 0.7071 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003664/2.124, allocations: 210.4 kB / 0.7073 GB, free: 116 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/2.125, allocations: 1.594 kB / 0.7073 GB, free: 116 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/2.125, allocations: 3.984 kB / 0.7073 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/2.126, allocations: 0.7043 MB / 0.7079 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/2.126, allocations: 0 / 0.7079 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.588e-05/2.126, allocations: 16.62 kB / 0.708 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003737/2.126, allocations: 112.8 kB / 0.7081 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/2.126, allocations: 8 kB / 0.7081 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005405/2.127, allocations: 0.6554 MB / 0.7087 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/2.127, allocations: 0.5625 kB / 0.7087 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/2.127, allocations: 337.1 kB / 0.709 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.596e-05/2.127, allocations: 47.62 kB / 0.7091 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/2.127, allocations: 11.89 kB / 0.7091 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/2.127, allocations: 5.453 kB / 0.7091 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.729e-05/2.127, allocations: 12.92 kB / 0.7091 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/2.127, allocations: 4 kB / 0.7091 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002558/2.127, allocations: 239.1 kB / 0.7093 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.127, allocations: 0 / 0.7093 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003055/2.131, allocations: 1.196 MB / 0.7105 GB, free: 12.68 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.006253/2.137, allocations: 2.517 MB / 0.713 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005401/2.137, allocations: 219.1 kB / 0.7132 GB, free: 9.949 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/2.137, allocations: 0 / 0.7132 GB, free: 9.949 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/2.138, allocations: 79.89 kB / 0.7133 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007384/2.138, allocations: 124.1 kB / 0.7134 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004602/2.143, allocations: 3.062 MB / 0.7164 GB, free: 6.602 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/2.143, allocations: 0.7675 MB / 0.7171 GB, free: 5.809 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.04e-05/2.143, allocations: 21.31 kB / 0.7171 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/2.143, allocations: 87.41 kB / 0.7172 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/2.143, allocations: 0 / 0.7172 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0842/2.228, allocations: 48.14 MB / 0.7642 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/16.91, allocations: 1.531 kB / 0.7642 GB, free: 6.195 MB / 0.6231 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.210588869987987] Failed to read output from testmodel.py, exit status != 0: 17.49879855895415 17.509181417 15.569710918 Calling exit ...