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.829/0.829, allocations: 153.8 MB / 170.2 MB, free: 13.75 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.0004976/0.0004976, allocations: 16.05 kB / 246.3 MB, free: 14.88 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05594/0.05644, allocations: 33.35 MB / 279.7 MB, free: 15.12 MB / 238.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.673/1.729, allocations: 307.4 MB / 0.5733 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4744/2.204, allocations: 190.9 MB / 0.7597 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000262/2.204, allocations: 16.09 kB / 0.7597 GB, free: 13.36 MB / 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.0001429/2.204, allocations: 38.5 kB / 0.7597 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003062/2.205, allocations: 125 kB / 0.7598 GB, free: 13.28 MB / 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.02949/2.234, allocations: 11.53 MB / 0.7711 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005002/2.235, allocations: 390.9 kB / 0.7715 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/2.235, allocations: 161.2 kB / 0.7716 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/2.235, allocations: 174.4 kB / 0.7718 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/2.235, allocations: 167.6 kB / 0.7719 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/2.235, allocations: 32.53 kB / 0.772 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.035/2.27, allocations: 19.97 MB / 0.7915 GB, free: 184 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/2.27, allocations: 80.42 kB / 0.7915 GB, free: 136 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000231/2.271, allocations: 195.8 kB / 0.7917 GB, free: 64 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02426/2.295, allocations: 9.79 MB / 0.8013 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/2.295, allocations: 0 / 0.8013 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.509e-06/2.295, allocations: 4 kB / 0.8013 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.046e-05/2.295, allocations: 0 / 0.8013 GB, free: 8.625 MB / 0.6075 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.005295/2.3, allocations: 1.866 MB / 0.8031 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/2.3, allocations: 12.03 kB / 0.8031 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.108e-05/2.3, allocations: 66.53 kB / 0.8032 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.251e-05/2.3, allocations: 44.33 kB / 0.8032 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/2.301, allocations: 314.6 kB / 0.8035 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/2.301, allocations: 28.94 kB / 0.8036 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/2.301, allocations: 36 kB / 0.8036 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006064/2.301, allocations: 356.7 kB / 0.8039 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/2.302, allocations: 5.125 kB / 0.8039 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/2.302, allocations: 12 kB / 0.804 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/2.302, allocations: 12 kB / 0.804 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/2.302, allocations: 230.1 kB / 0.8042 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08117/2.383, allocations: 34.72 MB / 0.8381 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/2.383, allocations: 78.52 kB / 0.8382 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.401e-05/2.384, allocations: 16.89 kB / 0.8382 GB, free: 15.51 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.262/2.645, allocations: 126.7 MB / 0.9619 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/2.646, allocations: 30.56 kB / 0.9619 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.813e-06/2.646, allocations: 0 / 0.9619 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004653/2.646, allocations: 130.2 kB / 0.9621 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/2.646, allocations: 51.41 kB / 0.9621 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004748/2.647, allocations: 361.6 kB / 0.9625 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/2.647, allocations: 25.7 kB / 0.9625 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/2.647, allocations: 234.8 kB / 0.9627 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/2.647, allocations: 19.83 kB / 0.9627 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/2.647, allocations: 61.61 kB / 0.9628 GB, free: 1.066 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001469/2.647, allocations: 338.8 kB / 0.9631 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/2.647, allocations: 43.97 kB / 0.9631 GB, free: 0.6836 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/2.647, allocations: 141.7 kB / 0.9633 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/2.648, allocations: 198.2 kB / 0.9635 GB, free: 260 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/2.648, allocations: 0 / 0.9635 GB, free: 260 kB / 0.7794 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004747/2.648, allocations: 226.2 kB / 0.9637 GB, free: 28 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/2.648, allocations: 12.03 kB / 0.9637 GB, free: 16 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/2.648, allocations: 4 kB / 0.9637 GB, free: 12 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/2.648, allocations: 4 kB / 0.9637 GB, free: 8 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006898/2.649, allocations: 111.9 kB / 0.9638 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/2.649, allocations: 13.08 kB / 0.9638 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/2.649, allocations: 44.55 kB / 0.9639 GB, free: 15.84 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/2.649, allocations: 15.98 kB / 0.9639 GB, free: 15.83 MB / 0.795 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.0001678/2.649, allocations: 159 kB / 0.964 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/2.649, allocations: 35.8 kB / 0.9641 GB, free: 15.63 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/2.65, allocations: 117.8 kB / 0.9642 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/2.65, allocations: 0 / 0.9642 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/2.65, allocations: 3.938 kB / 0.9642 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/2.65, allocations: 0 / 0.9642 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4027/3.052, allocations: 122.9 MB / 1.084 GB, free: 380.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/3.052, allocations: 0 / 1.084 GB, free: 380.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.389e-05/3.052, allocations: 12.55 kB / 1.084 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/3.052, allocations: 4 kB / 1.084 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/3.052, allocations: 0 / 1.084 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/3.052, allocations: 3.984 kB / 1.084 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/3.052, allocations: 6.594 kB / 1.084 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/3.053, allocations: 156.2 kB / 1.084 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.901e-05/3.053, allocations: 126.8 kB / 1.085 GB, free: 380.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/3.053, allocations: 0 / 1.085 GB, free: 380.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/3.053, allocations: 11.98 kB / 1.085 GB, free: 380.6 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.251e-05/3.053, allocations: 7.75 kB / 1.085 GB, free: 380.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/3.053, allocations: 7.734 kB / 1.085 GB, free: 380.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002216/3.053, allocations: 260.6 kB / 1.085 GB, free: 380.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/3.053, allocations: 0 / 1.085 GB, free: 380.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003231/3.056, allocations: 1.457 MB / 1.086 GB, free: 379.2 MB / 0.8262 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.006583/3.063, allocations: 2.811 MB / 1.089 GB, free: 376.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004102/3.063, allocations: 113.1 kB / 1.089 GB, free: 376.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/3.063, allocations: 0 / 1.089 GB, free: 376.8 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.079e-05/3.064, allocations: 30.53 kB / 1.089 GB, free: 376.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/3.064, allocations: 74.73 kB / 1.089 GB, free: 376.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/3.068, allocations: 3.158 MB / 1.092 GB, free: 373.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/3.069, allocations: 0.7751 MB / 1.093 GB, free: 372.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001433/3.069, allocations: 47.12 kB / 1.093 GB, free: 372.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/3.069, allocations: 94.89 kB / 1.093 GB, free: 372.9 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/3.069, allocations: 0 / 1.093 GB, free: 372.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07536/3.144, allocations: 50.78 MB / 1.143 GB, free: 322.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/13.91, allocations: 18.06 kB / 1.143 GB, free: 322.8 MB / 0.8262 GB " [Timeout remaining time 646] (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: 15.758176250994438] Failed to read output from testmodel.py, exit status != 0: 14.16767470400373 14.177287722 11.880271771 Calling exit ...