Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.8472/0.8472, 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005108/0.0005108, allocations: 11.97 kB / 250.6 MB, free: 4.41 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1709, allocations: 33.35 MB / 283.9 MB, free: 1.742 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.818/1.989, allocations: 307.2 MB / 0.5773 GB, free: 17.38 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/2.187, allocations: 164.6 MB / 0.7381 GB, free: 0.4961 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005003/2.187, allocations: 15.88 kB / 0.7381 GB, free: 492 kB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:75:3-76:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:30:3-31:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:32:3-33:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002101/2.188, allocations: 44.56 kB / 0.7381 GB, free: 448 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005427/2.188, allocations: 119 kB / 0.7382 GB, free: 328 kB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03041/2.218, allocations: 11.46 MB / 0.7494 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006051/2.219, allocations: 378.8 kB / 0.7498 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/2.219, allocations: 185 kB / 0.75 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/2.22, allocations: 167.4 kB / 0.7501 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/2.22, allocations: 172.4 kB / 0.7503 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/2.22, allocations: 32 kB / 0.7503 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03535/2.255, allocations: 19.55 MB / 0.7694 GB, free: 376 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000163/2.255, allocations: 87.69 kB / 0.7695 GB, free: 288 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0002332/2.256, allocations: 159.3 kB / 0.7696 GB, free: 128 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02404/2.28, allocations: 9.794 MB / 0.7792 GB, free: 6.305 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/2.28, allocations: 4 kB / 0.7792 GB, free: 6.301 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.363e-06/2.28, allocations: 0 / 0.7792 GB, free: 6.301 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.045e-05/2.28, allocations: 4 kB / 0.7792 GB, free: 6.297 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004807/2.285, allocations: 1.764 MB / 0.7809 GB, free: 4.492 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/2.285, allocations: 12.03 kB / 0.781 GB, free: 4.48 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.455e-05/2.285, allocations: 10.5 kB / 0.781 GB, free: 4.469 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.794e-05/2.285, allocations: 74.53 kB / 0.781 GB, free: 4.387 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.025e-05/2.285, allocations: 48.5 kB / 0.7811 GB, free: 4.34 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/2.285, allocations: 255.5 kB / 0.7813 GB, free: 4.066 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/2.285, allocations: 25 kB / 0.7814 GB, free: 4.043 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/2.285, allocations: 32 kB / 0.7814 GB, free: 4.012 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006314/2.286, allocations: 358.2 kB / 0.7817 GB, free: 3.641 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/2.286, allocations: 3.938 kB / 0.7817 GB, free: 3.637 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/2.286, allocations: 16 kB / 0.7817 GB, free: 3.621 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/2.286, allocations: 8 kB / 0.7817 GB, free: 3.613 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/2.286, allocations: 237.2 kB / 0.782 GB, free: 3.383 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07205/2.358, allocations: 22 MB / 0.8035 GB, free: 13.3 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/2.359, allocations: 62.55 kB / 0.8035 GB, free: 13.23 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.289e-05/2.359, allocations: 28.92 kB / 0.8036 GB, free: 13.2 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3792/2.738, allocations: 67.11 MB / 0.8691 GB, free: 288.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/2.738, allocations: 40.44 kB / 0.8691 GB, free: 288.8 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 2.114e-06/2.738, allocations: 0 / 0.8691 GB, free: 288.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.000426/2.738, allocations: 121.1 kB / 0.8692 GB, free: 288.7 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.017e-05/2.739, allocations: 51.41 kB / 0.8693 GB, free: 288.7 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/2.739, allocations: 366 kB / 0.8696 GB, free: 288.4 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/2.739, allocations: 25.7 kB / 0.8697 GB, free: 288.4 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/2.739, allocations: 233.8 kB / 0.8699 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/2.739, allocations: 21.45 kB / 0.8699 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/2.739, allocations: 63.42 kB / 0.87 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.047e-05/2.739, allocations: 333.4 kB / 0.8703 GB, free: 287.8 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/2.739, allocations: 42.66 kB / 0.8703 GB, free: 287.8 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/2.739, allocations: 146 kB / 0.8705 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/2.74, allocations: 194.5 kB / 0.8707 GB, free: 287.4 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/2.74, allocations: 4.875 kB / 0.8707 GB, free: 287.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003783/2.74, allocations: 230.3 kB / 0.8709 GB, free: 287.2 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/2.74, allocations: 9.875 kB / 0.8709 GB, free: 287.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/2.74, allocations: 0 / 0.8709 GB, free: 287.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/2.74, allocations: 8 kB / 0.8709 GB, free: 287.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/2.741, allocations: 115.5 kB / 0.871 GB, free: 287.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/2.741, allocations: 12.11 kB / 0.871 GB, free: 287.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/2.741, allocations: 34.92 kB / 0.8711 GB, free: 287.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/2.741, allocations: 16.75 kB / 0.8711 GB, free: 287.1 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/2.741, allocations: 157.8 kB / 0.8712 GB, free: 286.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.84e-05/2.741, allocations: 31.8 kB / 0.8713 GB, free: 286.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/2.741, allocations: 124.5 kB / 0.8714 GB, free: 286.8 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/2.741, allocations: 3.938 kB / 0.8714 GB, free: 286.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/2.741, allocations: 0 / 0.8714 GB, free: 286.8 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/2.741, allocations: 4 kB / 0.8714 GB, free: 286.8 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1855/2.927, allocations: 65.76 MB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/2.927, allocations: 0 / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.891e-05/2.927, allocations: 11.98 kB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/2.927, allocations: 4 kB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/2.927, allocations: 4.125 kB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/2.927, allocations: 4 kB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/2.927, allocations: 0.9844 kB / 0.9356 GB, free: 221.8 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/2.927, allocations: 163.3 kB / 0.9358 GB, free: 221.6 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.851e-05/2.927, allocations: 46.31 kB / 0.9358 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/2.927, allocations: 7.375 kB / 0.9358 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/2.927, allocations: 7.984 kB / 0.9358 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.287e-05/2.928, allocations: 7.938 kB / 0.9358 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/2.928, allocations: 3.984 kB / 0.9358 GB, free: 221.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000217/2.928, allocations: 267.2 kB / 0.9361 GB, free: 221.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7e-08/2.928, allocations: 0 / 0.9361 GB, free: 221.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002893/2.931, allocations: 1.457 MB / 0.9375 GB, free: 220 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006403/2.937, allocations: 2.801 MB / 0.9403 GB, free: 217.5 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004249/2.937, allocations: 114.4 kB / 0.9404 GB, free: 217.4 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/2.937, allocations: 0.9375 kB / 0.9404 GB, free: 217.4 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 9.625e-05/2.938, allocations: 32.11 kB / 0.9404 GB, free: 217.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/2.938, allocations: 68.59 kB / 0.9405 GB, free: 217.3 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004288/2.942, allocations: 3.15 MB / 0.9435 GB, free: 214 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/2.942, allocations: 174.9 kB / 0.9437 GB, free: 213.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001495/2.943, allocations: 46.03 kB / 0.9437 GB, free: 213.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/2.943, allocations: 103.4 kB / 0.9438 GB, free: 213.6 MB / 0.6856 GB Notification: Performance of SimCode: time 5.31e-07/2.943, allocations: 0 / 0.9438 GB, free: 213.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07218/3.015, allocations: 51.25 MB / 0.9939 GB, free: 163.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/17.45, allocations: 7.312 kB / 0.9939 GB, free: 163.3 MB / 0.6856 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.50465766096022] Failed to read output from testmodel.py, exit status != 0: 17.833998248912394 17.852643762 15.569118747 Calling exit ...