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.8231/0.8231, 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.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.0006216/0.0006216, allocations: 11.98 kB / 249.8 MB, free: 4.352 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.186, allocations: 33.36 MB / 283.2 MB, free: 1.711 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.815/2.001, allocations: 307.4 MB / 0.5767 GB, free: 17.36 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0345/2.035, allocations: 30.48 MB / 0.6065 GB, free: 2.969 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003026/2.036, allocations: 1.438 kB / 0.6065 GB, free: 2.969 MB / 478.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.0004509/2.036, allocations: 96.86 kB / 0.6066 GB, free: 2.93 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/2.036, allocations: 93.3 kB / 0.6067 GB, free: 2.863 MB / 478.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.02742/2.064, allocations: 9.675 MB / 0.6161 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005822/2.064, allocations: 282.7 kB / 0.6164 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/2.064, allocations: 88.48 kB / 0.6165 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/2.065, allocations: 127.4 kB / 0.6166 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/2.065, allocations: 83.56 kB / 0.6167 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/2.065, allocations: 24.97 kB / 0.6167 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03481/2.1, allocations: 16.76 MB / 0.633 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.921e-05/2.1, allocations: 39.86 kB / 0.6331 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001577/2.1, allocations: 87.61 kB / 0.6332 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02157/2.121, allocations: 8.405 MB / 0.6414 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/2.121, allocations: 0 / 0.6414 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.154e-06/2.121, allocations: 3.938 kB / 0.6414 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.517e-06/2.121, allocations: 4 kB / 0.6414 GB, free: 3.348 MB / 0.4981 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.004164/2.126, allocations: 1.368 MB / 0.6427 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/2.126, allocations: 12.03 kB / 0.6427 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.705e-05/2.126, allocations: 55.39 kB / 0.6428 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/2.126, allocations: 23.86 kB / 0.6428 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/2.126, allocations: 166.8 kB / 0.643 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/2.126, allocations: 16.38 kB / 0.643 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/2.126, allocations: 16 kB / 0.643 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/2.127, allocations: 269.2 kB / 0.6433 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/2.127, allocations: 0 / 0.6433 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/2.127, allocations: 12.84 kB / 0.6433 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/2.127, allocations: 8 kB / 0.6433 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/2.127, allocations: 147.1 kB / 0.6434 GB, free: 1.176 MB / 0.4981 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.01902/2.146, allocations: 5.849 MB / 0.6491 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/2.146, allocations: 70.48 kB / 0.6492 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/2.146, allocations: 50.02 kB / 0.6492 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.15/2.296, allocations: 43.57 MB / 0.6918 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/2.296, allocations: 30.56 kB / 0.6918 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.334e-06/2.296, allocations: 0 / 0.6918 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005435/2.297, allocations: 212.8 kB / 0.692 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/2.297, allocations: 51.41 kB / 0.6921 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/2.297, allocations: 232 kB / 0.6923 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/2.297, allocations: 25.7 kB / 0.6923 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/2.297, allocations: 148.5 kB / 0.6925 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/2.297, allocations: 75.38 kB / 0.6925 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.777e-05/2.297, allocations: 45.66 kB / 0.6926 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001601/2.298, allocations: 334.8 kB / 0.6929 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/2.298, allocations: 48.73 kB / 0.6929 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/2.298, allocations: 88.92 kB / 0.693 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002544/2.298, allocations: 156.1 kB / 0.6932 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/2.298, allocations: 4.75 kB / 0.6932 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003524/2.298, allocations: 198.2 kB / 0.6934 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/2.298, allocations: 8 kB / 0.6934 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/2.298, allocations: 0.5156 kB / 0.6934 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/2.298, allocations: 4 kB / 0.6934 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/2.299, allocations: 100.8 kB / 0.6935 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/2.299, allocations: 7.938 kB / 0.6935 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/2.299, allocations: 24.91 kB / 0.6935 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/2.299, allocations: 4 kB / 0.6935 GB, free: 13.67 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.0001316/2.299, allocations: 133.8 kB / 0.6936 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/2.299, allocations: 23.8 kB / 0.6937 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004871/2.3, allocations: 341.8 kB / 0.694 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002507/2.3, allocations: 157.6 kB / 0.6941 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/2.3, allocations: 0 / 0.6941 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/2.3, allocations: 4.734 kB / 0.6941 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008603/2.301, allocations: 0.5558 MB / 0.6947 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.301, allocations: 0 / 0.6947 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/2.302, allocations: 95.91 kB / 0.6948 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/2.302, allocations: 1.125 kB / 0.6948 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/2.302, allocations: 8 kB / 0.6948 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/2.302, allocations: 0.875 kB / 0.6948 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/2.302, allocations: 7.875 kB / 0.6948 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/2.302, allocations: 289 kB / 0.6951 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/2.302, allocations: 31.78 kB / 0.6951 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/2.302, allocations: 4 kB / 0.6951 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/2.302, allocations: 4 kB / 0.6951 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.934e-05/2.302, allocations: 15.97 kB / 0.6951 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/2.302, allocations: 4.5 kB / 0.6951 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002129/2.302, allocations: 201.2 kB / 0.6953 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.1e-08/2.302, allocations: 0 / 0.6953 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002993/2.305, allocations: 1.193 MB / 0.6965 GB, free: 10.5 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.006075/2.312, allocations: 2.473 MB / 0.6989 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005116/2.312, allocations: 173.6 kB / 0.6991 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/2.312, allocations: 0 / 0.6991 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/2.312, allocations: 67.89 kB / 0.6991 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/2.313, allocations: 96.08 kB / 0.6992 GB, free: 7.715 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/2.318, allocations: 2.841 MB / 0.702 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/2.318, allocations: 146.9 kB / 0.7021 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001269/2.318, allocations: 30.7 kB / 0.7022 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/2.318, allocations: 83.41 kB / 0.7022 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of SimCode: time 7.42e-07/2.318, allocations: 0 / 0.7022 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09028/2.408, allocations: 47.19 MB / 0.7483 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/15.96, allocations: 4.062 kB / 0.7483 GB, free: 5.949 MB / 0.6075 GB " [Timeout remaining time 643] (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: 18.09917894611135] Failed to read output from testmodel.py, exit status != 0: 16.51824706699699 16.52871852 14.404719894 Calling exit ...