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.8508/0.8508, allocations: 153.8 MB / 172.7 MB, free: 4.879 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.0004994/0.0004994, allocations: 7.984 kB / 249.8 MB, free: 4.414 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1657, allocations: 33.36 MB / 283.2 MB, free: 1.73 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.82/1.986, allocations: 307.6 MB / 0.5769 GB, free: 17.42 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.194/2.18, allocations: 164.8 MB / 0.7378 GB, free: 340 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003669/2.18, allocations: 11.94 kB / 0.7378 GB, free: 328 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.0001663/2.18, allocations: 41.08 kB / 0.7378 GB, free: 288 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003646/2.181, 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.02867/2.209, allocations: 11.46 MB / 0.7491 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006614/2.21, allocations: 386.6 kB / 0.7495 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/2.21, allocations: 169 kB / 0.7497 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002894/2.21, allocations: 175.3 kB / 0.7498 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/2.211, allocations: 151.2 kB / 0.75 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.356e-05/2.211, allocations: 32 kB / 0.75 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03348/2.244, allocations: 18.6 MB / 0.7682 GB, free: 1.184 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/2.244, allocations: 87.69 kB / 0.7683 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0001959/2.244, allocations: 155.3 kB / 0.7684 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01969/2.264, allocations: 9.794 MB / 0.778 GB, free: 7.125 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/2.264, allocations: 0 / 0.778 GB, free: 7.125 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.452e-06/2.264, allocations: 4 kB / 0.778 GB, free: 7.121 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.744e-06/2.264, allocations: 4 kB / 0.778 GB, free: 7.117 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.003918/2.268, allocations: 1.768 MB / 0.7797 GB, free: 5.309 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/2.268, allocations: 13.81 kB / 0.7797 GB, free: 5.297 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.348e-05/2.268, allocations: 74.47 kB / 0.7798 GB, free: 5.215 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/2.268, allocations: 39.77 kB / 0.7798 GB, free: 5.176 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004158/2.269, allocations: 259.5 kB / 0.7801 GB, free: 4.898 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/2.269, allocations: 29 kB / 0.7801 GB, free: 4.867 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/2.269, allocations: 28 kB / 0.7801 GB, free: 4.84 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006146/2.269, allocations: 364.8 kB / 0.7805 GB, free: 4.461 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/2.269, allocations: 0.875 kB / 0.7805 GB, free: 4.461 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/2.269, allocations: 16 kB / 0.7805 GB, free: 4.445 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/2.269, allocations: 8 kB / 0.7805 GB, free: 4.438 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004971/2.27, allocations: 228.3 kB / 0.7807 GB, free: 4.215 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0771/2.347, allocations: 22 MB / 0.8022 GB, free: 14.13 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/2.347, allocations: 72.83 kB / 0.8023 GB, free: 14.05 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.274e-05/2.347, allocations: 24.89 kB / 0.8023 GB, free: 14.02 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3856/2.733, allocations: 67.12 MB / 0.8678 GB, free: 289.7 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/2.733, allocations: 36.56 kB / 0.8679 GB, free: 289.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 2.234e-06/2.733, allocations: 0 / 0.8679 GB, free: 289.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0003962/2.733, allocations: 117.6 kB / 0.868 GB, free: 289.5 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.893e-05/2.733, allocations: 55.41 kB / 0.868 GB, free: 289.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/2.734, allocations: 370.9 kB / 0.8684 GB, free: 289.2 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.796e-06/2.734, allocations: 26.8 kB / 0.8684 GB, free: 289.2 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 9.442e-05/2.734, allocations: 240.7 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/2.734, allocations: 21.97 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/2.734, allocations: 58.8 kB / 0.8687 GB, free: 289 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.217e-05/2.734, allocations: 338.3 kB / 0.8691 GB, free: 288.6 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/2.734, allocations: 41.72 kB / 0.8691 GB, free: 288.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/2.734, allocations: 143.8 kB / 0.8692 GB, free: 288.4 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/2.734, allocations: 190.6 kB / 0.8694 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/2.734, allocations: 0.7656 kB / 0.8694 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003725/2.735, allocations: 234.7 kB / 0.8696 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/2.735, allocations: 8 kB / 0.8696 GB, free: 288.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/2.735, allocations: 4 kB / 0.8696 GB, free: 288 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/2.735, allocations: 4 kB / 0.8697 GB, free: 288 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/2.736, allocations: 116.3 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/2.736, allocations: 11.92 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/2.736, allocations: 42.38 kB / 0.8698 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/2.736, allocations: 15.36 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.0001249/2.736, allocations: 160.8 kB / 0.87 GB, free: 287.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/2.736, allocations: 35.8 kB / 0.87 GB, free: 287.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/2.736, allocations: 117.2 kB / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/2.736, allocations: 0 / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/2.736, allocations: 0 / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/2.736, allocations: 0 / 0.8701 GB, free: 287.6 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1959/2.932, allocations: 65.76 MB / 0.9343 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/2.932, allocations: 4.031 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-05/2.932, allocations: 15.98 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/2.932, allocations: 0 / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/2.932, allocations: 4 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/2.932, allocations: 0 / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.932, allocations: 5.031 kB / 0.9344 GB, free: 222.6 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/2.932, allocations: 159.4 kB / 0.9345 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/2.932, allocations: 50.03 kB / 0.9346 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/2.933, allocations: 4 kB / 0.9346 GB, free: 222.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/2.933, allocations: 10.42 kB / 0.9346 GB, free: 222.3 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.876e-05/2.933, allocations: 7.938 kB / 0.9346 GB, free: 222.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/2.933, allocations: 7.984 kB / 0.9346 GB, free: 222.3 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002073/2.933, allocations: 263.2 kB / 0.9349 GB, free: 222.1 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/2.933, allocations: 0 / 0.9349 GB, free: 222.1 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002952/2.936, allocations: 1.457 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.005794/2.942, allocations: 2.799 MB / 0.939 GB, free: 218.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004099/2.942, allocations: 115.6 kB / 0.9391 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.942, allocations: 0 / 0.9391 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.782e-05/2.942, allocations: 27.92 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.0004271/2.943, allocations: 68.8 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.003685/2.946, allocations: 3.164 MB / 0.9423 GB, free: 214.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/2.946, allocations: 168.8 kB / 0.9425 GB, free: 214.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001387/2.946, allocations: 41.55 kB / 0.9425 GB, free: 214.5 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/2.947, allocations: 107 kB / 0.9426 GB, free: 214.4 MB / 0.6856 GB Notification: Performance of SimCode: time 5.71e-07/2.947, allocations: 0 / 0.9426 GB, free: 214.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07648/3.023, allocations: 51.58 MB / 0.993 GB, free: 163.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/16.67, allocations: 9.531 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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 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.514728090260178] Failed to read output from testmodel.py, exit status != 0: 16.95289588579908 16.963311846 14.696601893 Calling exit ...