Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.8211/0.8211, allocations: 153.8 MB / 172.7 MB, free: 4.945 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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0006008/0.0006008, allocations: 11.98 kB / 249.8 MB, free: 4.457 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1881, allocations: 33.37 MB / 283.2 MB, free: 1.824 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.TestInvSingularPressureLoss): time 1.777/1.965, allocations: 307.3 MB / 0.5767 GB, free: 16.07 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03391/1.999, allocations: 34.66 MB / 0.6105 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/1.999, allocations: 3.031 kB / 0.6105 GB, free: 14.57 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28:16: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/InvSingularPressureLoss.mo:29:3-30:83: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.0004197/1.999, allocations: 120.1 kB / 0.6106 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/1.999, allocations: 90.11 kB / 0.6107 GB, free: 14.46 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.02651/2.026, allocations: 9.808 MB / 0.6203 GB, free: 9.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000573/2.026, allocations: 286.6 kB / 0.6206 GB, free: 8.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/2.027, allocations: 81.33 kB / 0.6207 GB, free: 8.656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/2.027, allocations: 125.3 kB / 0.6208 GB, free: 8.535 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/2.027, allocations: 99.5 kB / 0.6209 GB, free: 8.438 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/2.027, allocations: 16 kB / 0.6209 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03731/2.064, allocations: 17.92 MB / 0.6384 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.176e-05/2.065, allocations: 35.86 kB / 0.6384 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000186/2.065, allocations: 115.4 kB / 0.6385 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02203/2.087, allocations: 8.4 MB / 0.6467 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/2.087, allocations: 0 / 0.6467 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.605e-06/2.087, allocations: 0 / 0.6467 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.025e-06/2.087, allocations: 0 / 0.6467 GB, free: 13.92 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.004096/2.091, allocations: 1.372 MB / 0.6481 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/2.091, allocations: 12.97 kB / 0.6481 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.614e-05/2.091, allocations: 62.53 kB / 0.6481 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/2.091, allocations: 27.81 kB / 0.6482 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/2.091, allocations: 166.5 kB / 0.6483 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/2.091, allocations: 12.38 kB / 0.6483 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/2.091, allocations: 20 kB / 0.6484 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004439/2.092, allocations: 264.6 kB / 0.6486 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/2.092, allocations: 3.938 kB / 0.6486 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/2.092, allocations: 7.938 kB / 0.6486 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/2.092, allocations: 17.02 kB / 0.6486 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/2.092, allocations: 141.4 kB / 0.6488 GB, free: 11.74 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.01827/2.11, allocations: 6.091 MB / 0.6547 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/2.111, allocations: 62.56 kB / 0.6548 GB, free: 5.461 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.632e-05/2.111, allocations: 48.88 kB / 0.6548 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1406/2.251, allocations: 43.42 MB / 0.6972 GB, free: 9.953 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/2.251, allocations: 38.56 kB / 0.6973 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.625e-06/2.251, allocations: 0 / 0.6973 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0006165/2.252, allocations: 204.3 kB / 0.6975 GB, free: 9.703 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/2.252, allocations: 55.41 kB / 0.6975 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/2.252, allocations: 224.1 kB / 0.6977 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/2.252, allocations: 33.7 kB / 0.6978 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/2.252, allocations: 149 kB / 0.6979 GB, free: 9.223 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/2.252, allocations: 67.39 kB / 0.698 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/2.253, allocations: 53.62 kB / 0.698 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001594/2.253, allocations: 326.8 kB / 0.6983 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/2.253, allocations: 51.97 kB / 0.6984 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/2.253, allocations: 96.2 kB / 0.6985 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/2.253, allocations: 153 kB / 0.6986 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/2.253, allocations: 1.312 kB / 0.6986 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003569/2.254, allocations: 205.2 kB / 0.6988 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/2.254, allocations: 4 kB / 0.6988 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/2.254, allocations: 4 kB / 0.6988 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/2.254, allocations: 0 / 0.6988 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000656/2.254, allocations: 100 kB / 0.6989 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/2.254, allocations: 0 / 0.6989 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/2.254, allocations: 32.47 kB / 0.6989 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/2.254, allocations: 12 kB / 0.699 GB, free: 8.09 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001318/2.255, allocations: 132.2 kB / 0.6991 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/2.255, allocations: 27.8 kB / 0.6991 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005795/2.255, allocations: 330 kB / 0.6994 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002762/2.255, allocations: 155.9 kB / 0.6996 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/2.255, allocations: 0.7969 kB / 0.6996 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/2.255, allocations: 4 kB / 0.6996 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008784/2.256, allocations: 0.584 MB / 0.7001 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/2.256, allocations: 1.125 kB / 0.7001 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005264/2.257, allocations: 91.88 kB / 0.7002 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/2.257, allocations: 0 / 0.7002 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/2.257, allocations: 8 kB / 0.7002 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/2.257, allocations: 4.031 kB / 0.7002 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/2.257, allocations: 3.938 kB / 0.7003 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004027/2.257, allocations: 285 kB / 0.7005 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/2.257, allocations: 35.78 kB / 0.7006 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/2.257, allocations: 12.69 kB / 0.7006 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/2.258, allocations: 12.73 kB / 0.7006 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/2.258, allocations: 11.92 kB / 0.7006 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/2.258, allocations: 4 kB / 0.7006 GB, free: 6.297 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002029/2.258, allocations: 205.2 kB / 0.7008 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.258, allocations: 0 / 0.7008 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003313/2.261, allocations: 1.189 MB / 0.702 GB, free: 4.902 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006032/2.267, allocations: 2.467 MB / 0.7044 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004803/2.268, allocations: 179.4 kB / 0.7045 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/2.268, allocations: 0 / 0.7045 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001424/2.268, allocations: 64.67 kB / 0.7046 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/2.268, allocations: 98.39 kB / 0.7047 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004551/2.273, allocations: 2.838 MB / 0.7075 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/2.273, allocations: 0.7595 MB / 0.7082 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001099/2.274, allocations: 24.41 kB / 0.7082 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/2.274, allocations: 83.41 kB / 0.7083 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/2.274, allocations: 0 / 0.7083 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09557/2.369, allocations: 46.54 MB / 0.7537 GB, free: 356 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/15.05, allocations: 7.438 kB / 0.7538 GB, free: 352 kB / 0.6075 GB " [Timeout remaining time 644] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.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_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.10076488499999] Failed to read output from testmodel.py, exit status != 0: 15.568965216999914 15.587032883 13.496633154 Calling exit ...