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.5276/0.5276, allocations: 120.4 MB / 139.5 MB, free: 12.99 MB / 138.7 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 2.995e-06/2.995e-06, allocations: 1.125 kB / 216.7 MB, free: 8.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.649e-05/1.949e-05, allocations: 2.281 kB / 216.7 MB, free: 8.613 MB / 202.7 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 0.9159/0.916, allocations: 254.3 MB / 471 MB, free: 8.816 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3022/1.218, allocations: 164.8 MB / 0.6209 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/1.218, allocations: 11.94 kB / 0.6209 GB, free: 11.14 MB / 0.5573 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.0001034/1.218, allocations: 35.59 kB / 0.621 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002428/1.219, allocations: 126.8 kB / 0.6211 GB, free: 10.98 MB / 0.5573 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.01851/1.237, allocations: 11.56 MB / 0.6324 GB, free: 15.41 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0003724/1.238, allocations: 410.2 kB / 0.6328 GB, free: 15.02 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/1.238, allocations: 157.1 kB / 0.6329 GB, free: 14.87 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/1.238, allocations: 255.4 kB / 0.6332 GB, free: 14.62 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/1.238, allocations: 123.6 kB / 0.6333 GB, free: 14.5 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/1.238, allocations: 40 kB / 0.6333 GB, free: 14.46 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02092/1.259, allocations: 18.65 MB / 0.6515 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/1.259, allocations: 87.67 kB / 0.6516 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001299/1.259, allocations: 127.7 kB / 0.6517 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.01658/1.276, allocations: 12.34 MB / 0.6638 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/1.276, allocations: 0 / 0.6638 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.794e-06/1.276, allocations: 0 / 0.6638 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.771e-06/1.276, allocations: 0 / 0.6638 GB, free: 15.21 MB / 0.6042 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.002531/1.278, allocations: 1.772 MB / 0.6655 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/1.278, allocations: 11.97 kB / 0.6655 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/1.278, allocations: 71.28 kB / 0.6656 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/1.279, allocations: 48.28 kB / 0.6656 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/1.279, allocations: 251.9 kB / 0.6659 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/1.279, allocations: 29 kB / 0.6659 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.553e-05/1.279, allocations: 32 kB / 0.6659 GB, free: 12.92 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003954/1.279, allocations: 364.8 kB / 0.6663 GB, free: 12.55 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/1.279, allocations: 0 / 0.6663 GB, free: 12.55 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/1.279, allocations: 16.5 kB / 0.6663 GB, free: 12.53 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/1.279, allocations: 16.34 kB / 0.6663 GB, free: 12.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/1.28, allocations: 230.4 kB / 0.6665 GB, free: 12.29 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03454/1.314, allocations: 21.99 MB / 0.688 GB, free: 6.223 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/1.314, allocations: 66.53 kB / 0.6881 GB, free: 6.148 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.194e-05/1.314, allocations: 20.89 kB / 0.6881 GB, free: 6.125 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2506/1.565, allocations: 67.12 MB / 0.7536 GB, free: 300 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/1.565, allocations: 35.92 kB / 0.7537 GB, free: 299.9 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=5): time 1.784e-06/1.565, allocations: 0 / 0.7537 GB, free: 299.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=5): time 0.0003022/1.565, allocations: 118.4 kB / 0.7538 GB, free: 299.8 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/1.565, allocations: 51.41 kB / 0.7538 GB, free: 299.7 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/1.566, allocations: 374.8 kB / 0.7542 GB, free: 299.4 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 6.211e-06/1.566, allocations: 29.11 kB / 0.7542 GB, free: 299.4 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/1.566, allocations: 230.6 kB / 0.7544 GB, free: 299.2 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 9.728e-06/1.566, allocations: 21.5 kB / 0.7545 GB, free: 299.2 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/1.566, allocations: 65.61 kB / 0.7545 GB, free: 299.1 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 3.28e-05/1.566, allocations: 335.6 kB / 0.7548 GB, free: 298.7 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.87e-05/1.566, allocations: 43.97 kB / 0.7549 GB, free: 298.7 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.737e-05/1.566, allocations: 142.5 kB / 0.755 GB, free: 298.5 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/1.566, allocations: 190.4 kB / 0.7552 GB, free: 298.3 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/1.566, allocations: 7.469 kB / 0.7552 GB, free: 298.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002231/1.566, allocations: 225.8 kB / 0.7554 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/1.566, allocations: 4 kB / 0.7554 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.566, allocations: 4 kB / 0.7554 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/1.566, allocations: 12.3 kB / 0.7555 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/1.567, allocations: 124.8 kB / 0.7556 GB, free: 297.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/1.567, allocations: 7.938 kB / 0.7556 GB, free: 297.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/1.567, allocations: 36.33 kB / 0.7556 GB, free: 297.9 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/1.567, allocations: 16.56 kB / 0.7556 GB, free: 297.9 MB / 0.6667 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 9.672e-05/1.567, allocations: 155.7 kB / 0.7558 GB, free: 297.7 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/1.567, allocations: 29.75 kB / 0.7558 GB, free: 297.7 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/1.567, allocations: 119.3 kB / 0.7559 GB, free: 297.6 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/1.567, allocations: 0 / 0.7559 GB, free: 297.6 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/1.567, allocations: 0.9375 kB / 0.7559 GB, free: 297.6 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/1.567, allocations: 0 / 0.7559 GB, free: 297.6 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09403/1.661, allocations: 65.76 MB / 0.8201 GB, free: 231.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/1.661, allocations: 4 kB / 0.8201 GB, free: 231.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.335e-05/1.661, allocations: 11.98 kB / 0.8202 GB, free: 231.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/1.661, allocations: 0 / 0.8202 GB, free: 231.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/1.661, allocations: 9.219 kB / 0.8202 GB, free: 231.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/1.661, allocations: 5.875 kB / 0.8202 GB, free: 231.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.661, allocations: 4 kB / 0.8202 GB, free: 231.8 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/1.661, allocations: 143.4 kB / 0.8203 GB, free: 231.7 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/1.661, allocations: 47.78 kB / 0.8204 GB, free: 231.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/1.661, allocations: 12.78 kB / 0.8204 GB, free: 231.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.325e-05/1.661, allocations: 7.984 kB / 0.8204 GB, free: 231.6 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/1.661, allocations: 4.594 kB / 0.8204 GB, free: 231.6 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/1.661, allocations: 5.203 kB / 0.8204 GB, free: 231.6 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001517/1.662, allocations: 263.2 kB / 0.8206 GB, free: 231.3 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5e-08/1.662, allocations: 0 / 0.8206 GB, free: 231.3 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002163/1.664, allocations: 1.465 MB / 0.8221 GB, free: 230.1 MB / 0.6667 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.003901/1.668, allocations: 2.992 MB / 0.825 GB, free: 227.4 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000239/1.668, allocations: 116.3 kB / 0.8251 GB, free: 227.3 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/1.668, allocations: 3.938 kB / 0.8251 GB, free: 227.3 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 4.736e-05/1.668, allocations: 23.98 kB / 0.8251 GB, free: 227.3 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/1.668, allocations: 69.61 kB / 0.8252 GB, free: 227.3 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/1.671, allocations: 3.161 MB / 0.8283 GB, free: 223.9 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.754e-05/1.671, allocations: 168.8 kB / 0.8284 GB, free: 223.7 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 9.565e-05/1.671, allocations: 48.28 kB / 0.8285 GB, free: 223.7 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/1.671, allocations: 100.5 kB / 0.8286 GB, free: 223.6 MB / 0.6667 GB Notification: Performance of SimCode: time 6.81e-07/1.671, allocations: 0 / 0.8286 GB, free: 223.6 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06104/1.732, allocations: 51.96 MB / 0.8793 GB, free: 172 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.383/10.11, allocations: 0 / 0.8793 GB, free: 172 MB / 0.6667 GB " [Timeout remaining time 650] (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: 11.505700038746] Failed to read output from testmodel.py, exit status != 0: 10.41114794742316 10.339877898 9.062677598 Calling exit ...