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.8133/0.8133, allocations: 153.8 MB / 172.7 MB, free: 4.855 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004954/0.0004954, allocations: 11.98 kB / 249.8 MB, free: 4.363 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1632, allocations: 33.36 MB / 283.2 MB, free: 1.715 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.776/1.939, allocations: 307.6 MB / 0.5769 GB, free: 17.3 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1964/2.136, allocations: 164.7 MB / 0.7378 GB, free: 344 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003404/2.136, allocations: 7.938 kB / 0.7378 GB, free: 336 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.0001826/2.136, allocations: 49.06 kB / 0.7378 GB, free: 288 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004919/2.137, allocations: 115 kB / 0.738 GB, free: 172 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.03008/2.167, allocations: 11.46 MB / 0.7491 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006038/2.168, allocations: 390.7 kB / 0.7495 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/2.168, allocations: 161.1 kB / 0.7497 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/2.168, allocations: 175.3 kB / 0.7498 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/2.168, allocations: 139.3 kB / 0.75 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/2.168, allocations: 36 kB / 0.75 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03433/2.203, allocations: 18.61 MB / 0.7682 GB, free: 1.188 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001783/2.203, allocations: 87.69 kB / 0.7683 GB, free: 1.102 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.000244/2.203, allocations: 159.3 kB / 0.7684 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02227/2.225, allocations: 9.798 MB / 0.778 GB, free: 7.121 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/2.225, allocations: 0 / 0.778 GB, free: 7.121 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.753e-06/2.225, allocations: 0 / 0.778 GB, free: 7.121 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 8.947e-06/2.225, allocations: 0 / 0.778 GB, free: 7.121 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.004253/2.23, allocations: 1.772 MB / 0.7797 GB, free: 5.309 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/2.23, allocations: 12.03 kB / 0.7797 GB, free: 5.297 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.382e-05/2.23, allocations: 67.22 kB / 0.7798 GB, free: 5.223 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.58e-05/2.23, allocations: 51.7 kB / 0.7798 GB, free: 5.172 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/2.23, allocations: 255.5 kB / 0.7801 GB, free: 4.898 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/2.23, allocations: 23.16 kB / 0.7801 GB, free: 4.875 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/2.23, allocations: 36 kB / 0.7801 GB, free: 4.84 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006143/2.231, allocations: 361.4 kB / 0.7805 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/2.231, allocations: 0 / 0.7805 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/2.231, allocations: 19.98 kB / 0.7805 GB, free: 4.445 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/2.231, allocations: 8.844 kB / 0.7805 GB, free: 4.438 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/2.231, allocations: 230.5 kB / 0.7807 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07464/2.306, allocations: 22 MB / 0.8022 GB, free: 14.13 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/2.306, allocations: 70.48 kB / 0.8023 GB, free: 14.05 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.199e-05/2.306, allocations: 24.92 kB / 0.8023 GB, free: 14.03 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.401/2.707, allocations: 67.12 MB / 0.8678 GB, free: 289.7 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/2.707, allocations: 34.56 kB / 0.8679 GB, free: 289.7 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.984e-06/2.707, allocations: 0.7656 kB / 0.8679 GB, free: 289.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0003988/2.708, allocations: 122 kB / 0.868 GB, free: 289.6 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/2.708, allocations: 51.41 kB / 0.868 GB, free: 289.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/2.708, allocations: 374.7 kB / 0.8684 GB, free: 289.2 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/2.708, allocations: 29.69 kB / 0.8684 GB, free: 289.2 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/2.708, allocations: 229.2 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/2.708, allocations: 18.73 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/2.708, allocations: 68.09 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.46e-05/2.708, allocations: 330.4 kB / 0.869 GB, free: 288.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/2.709, allocations: 39.23 kB / 0.8691 GB, free: 288.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/2.709, allocations: 151.8 kB / 0.8692 GB, free: 288.5 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/2.709, allocations: 200.9 kB / 0.8694 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/2.709, allocations: 2.109 kB / 0.8694 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003559/2.709, allocations: 220 kB / 0.8696 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/2.709, allocations: 15.34 kB / 0.8696 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/2.709, allocations: 4 kB / 0.8697 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/2.709, allocations: 4 kB / 0.8697 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/2.71, allocations: 116.6 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/2.71, allocations: 11.92 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/2.71, allocations: 40.94 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/2.71, allocations: 15.98 kB / 0.8698 GB, free: 287.9 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.0001074/2.71, allocations: 155.2 kB / 0.87 GB, free: 287.8 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/2.71, allocations: 27.81 kB / 0.87 GB, free: 287.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002551/2.711, allocations: 127.9 kB / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/2.711, allocations: 0 / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/2.711, allocations: 5.312 kB / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/2.711, allocations: 0 / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1935/2.904, allocations: 65.76 MB / 0.9343 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/2.904, allocations: 0 / 0.9343 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.325e-05/2.904, allocations: 11.98 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/2.904, allocations: 7.938 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/2.904, allocations: 0 / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/2.904, allocations: 4.125 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.904, allocations: 4 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/2.904, allocations: 159.4 kB / 0.9345 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.478e-05/2.904, allocations: 45.5 kB / 0.9346 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/2.905, allocations: 4.984 kB / 0.9346 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/2.905, allocations: 7.984 kB / 0.9346 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.983e-05/2.905, allocations: 11.88 kB / 0.9346 GB, free: 222.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/2.905, allocations: 3.984 kB / 0.9346 GB, free: 222.3 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002005/2.905, allocations: 263.2 kB / 0.9348 GB, free: 222.1 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7e-08/2.905, allocations: 4 kB / 0.9349 GB, free: 222.1 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002591/2.907, allocations: 1.453 MB / 0.9363 GB, free: 220.8 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.005298/2.913, allocations: 2.807 MB / 0.939 GB, free: 218.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0003642/2.913, allocations: 111.8 kB / 0.9391 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/2.913, allocations: 0 / 0.9391 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.388e-05/2.913, allocations: 28.64 kB / 0.9391 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/2.914, allocations: 74.5 kB / 0.9392 GB, free: 218.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/2.917, allocations: 3.148 MB / 0.9423 GB, free: 214.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.855e-05/2.917, allocations: 164.8 kB / 0.9424 GB, free: 214.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001305/2.917, allocations: 51.12 kB / 0.9425 GB, free: 214.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.605e-05/2.917, allocations: 99.39 kB / 0.9426 GB, free: 214.5 MB / 0.6856 GB Notification: Performance of SimCode: time 4.5e-07/2.917, allocations: 0 / 0.9426 GB, free: 214.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07359/2.991, allocations: 51.59 MB / 0.993 GB, free: 163.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/16.34, allocations: 3.25 kB / 0.993 GB, free: 163.7 MB / 0.6856 GB " [Timeout remaining time 643] (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: 18.076743454672396] Failed to read output from testmodel.py, exit status != 0: 16.602686875965446 16.612728508 14.385074114 Calling exit ...