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.906/0.906, allocations: 153.8 MB / 172.7 MB, free: 4.953 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.0005338/0.0005338, allocations: 15.97 kB / 249.8 MB, free: 4.461 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2387, allocations: 33.36 MB / 283.2 MB, free: 1.82 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 2.072/2.311, allocations: 307.5 MB / 0.5769 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2758/2.587, allocations: 191 MB / 0.7634 GB, free: 6.129 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006131/2.587, allocations: 7.938 kB / 0.7634 GB, free: 6.121 MB / 0.6231 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.0003046/2.588, allocations: 45.2 kB / 0.7635 GB, free: 6.078 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.000765/2.588, allocations: 107 kB / 0.7636 GB, free: 5.973 MB / 0.6231 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.04536/2.634, allocations: 11.65 MB / 0.7749 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0008784/2.635, allocations: 386.7 kB / 0.7753 GB, free: 9.941 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003343/2.635, allocations: 157.1 kB / 0.7755 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/2.635, allocations: 179.3 kB / 0.7756 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002565/2.636, allocations: 172.2 kB / 0.7758 GB, free: 9.441 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 5.375e-05/2.636, allocations: 36 kB / 0.7758 GB, free: 9.406 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04647/2.682, allocations: 19.98 MB / 0.7953 GB, free: 5.406 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002089/2.682, allocations: 83.7 kB / 0.7954 GB, free: 5.324 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003211/2.683, allocations: 199 kB / 0.7956 GB, free: 5.129 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.03296/2.716, allocations: 9.798 MB / 0.8052 GB, free: 11.3 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/2.716, allocations: 0 / 0.8052 GB, free: 11.3 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.185e-06/2.716, allocations: 0 / 0.8052 GB, free: 11.3 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.024e-05/2.716, allocations: 0 / 0.8052 GB, free: 11.3 MB / 0.67 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.006584/2.722, allocations: 1.776 MB / 0.8069 GB, free: 9.488 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/2.722, allocations: 11.97 kB / 0.8069 GB, free: 9.477 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.903e-05/2.722, allocations: 74.53 kB / 0.807 GB, free: 9.395 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.779e-05/2.722, allocations: 47.33 kB / 0.807 GB, free: 9.352 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/2.723, allocations: 243.5 kB / 0.8073 GB, free: 9.09 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.314e-05/2.723, allocations: 33 kB / 0.8073 GB, free: 9.059 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.913e-05/2.723, allocations: 32 kB / 0.8073 GB, free: 9.027 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006491/2.724, allocations: 364.8 kB / 0.8077 GB, free: 8.645 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/2.724, allocations: 0 / 0.8077 GB, free: 8.645 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/2.724, allocations: 18.14 kB / 0.8077 GB, free: 8.629 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/2.724, allocations: 12 kB / 0.8077 GB, free: 8.617 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000487/2.724, allocations: 230.4 kB / 0.8079 GB, free: 8.395 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07048/2.795, allocations: 22.31 MB / 0.8297 GB, free: 1.918 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/2.795, allocations: 68.42 kB / 0.8298 GB, free: 1.844 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.458e-05/2.795, allocations: 24.92 kB / 0.8298 GB, free: 1.816 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4669/3.262, allocations: 66.86 MB / 0.8951 GB, free: 261.2 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/3.262, allocations: 32.88 kB / 0.8951 GB, free: 261.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 4.228e-06/3.262, allocations: 3.469 kB / 0.8951 GB, free: 261.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0005441/3.263, allocations: 113 kB / 0.8952 GB, free: 261 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/3.263, allocations: 64.03 kB / 0.8953 GB, free: 261 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005242/3.263, allocations: 363.2 kB / 0.8956 GB, free: 260.7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/3.263, allocations: 25.7 kB / 0.8957 GB, free: 260.7 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/3.263, allocations: 230.3 kB / 0.8959 GB, free: 260.5 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/3.263, allocations: 29.03 kB / 0.8959 GB, free: 260.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/3.263, allocations: 56.84 kB / 0.896 GB, free: 260.4 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001154/3.264, allocations: 333.5 kB / 0.8963 GB, free: 260.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/3.264, allocations: 45.56 kB / 0.8963 GB, free: 260.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/3.264, allocations: 147 kB / 0.8965 GB, free: 259.9 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/3.264, allocations: 193.1 kB / 0.8967 GB, free: 259.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/3.264, allocations: 4 kB / 0.8967 GB, free: 259.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000442/3.265, allocations: 231.7 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/3.265, allocations: 15.69 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/3.265, allocations: 4 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/3.265, allocations: 15.92 kB / 0.8969 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006481/3.265, allocations: 115.6 kB / 0.897 GB, free: 259.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/3.265, allocations: 4 kB / 0.897 GB, free: 259.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/3.266, allocations: 35.62 kB / 0.8971 GB, free: 259.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/3.266, allocations: 12 kB / 0.8971 GB, free: 259.3 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.000178/3.266, allocations: 157.8 kB / 0.8972 GB, free: 259.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.843e-05/3.266, allocations: 35.81 kB / 0.8973 GB, free: 259.1 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003084/3.266, allocations: 126.7 kB / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/3.266, allocations: 4 kB / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/3.266, allocations: 0 / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/3.266, allocations: 0 / 0.8974 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1854/3.452, allocations: 65.51 MB / 0.9614 GB, free: 193.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/3.452, allocations: 4 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.468e-05/3.452, allocations: 15.11 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/3.452, allocations: 7.938 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/3.452, allocations: 4 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/3.452, allocations: 0 / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/3.452, allocations: 4 kB / 0.9614 GB, free: 193.4 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/3.452, allocations: 154.3 kB / 0.9615 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.698e-05/3.452, allocations: 53.31 kB / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.165e-05/3.452, allocations: 3.984 kB / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/3.452, allocations: 7.875 kB / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.037e-05/3.452, allocations: 7.984 kB / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/3.452, allocations: 0 / 0.9616 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002083/3.452, allocations: 263.2 kB / 0.9619 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7e-08/3.452, allocations: 4 kB / 0.9619 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002765/3.455, allocations: 1.462 MB / 0.9633 GB, free: 191.7 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.00577/3.461, allocations: 2.804 MB / 0.966 GB, free: 189.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0003432/3.461, allocations: 112.6 kB / 0.9661 GB, free: 189 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/3.461, allocations: 0 / 0.9661 GB, free: 189 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.297e-05/3.461, allocations: 26.61 kB / 0.9662 GB, free: 189 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/3.462, allocations: 68.36 kB / 0.9662 GB, free: 188.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/3.465, allocations: 3.16 MB / 0.9693 GB, free: 185.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/3.466, allocations: 0.7814 MB / 0.9701 GB, free: 184.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001268/3.466, allocations: 49.66 kB / 0.9701 GB, free: 184.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/3.466, allocations: 91.41 kB / 0.9702 GB, free: 184.7 MB / 0.6856 GB Notification: Performance of SimCode: time 3.3e-07/3.466, allocations: 8 kB / 0.9702 GB, free: 184.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07604/3.542, allocations: 50.96 MB / 1.02 GB, free: 134.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/16.27, allocations: 1.719 kB / 1.02 GB, free: 134.5 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.210458291999885] Failed to read output from testmodel.py, exit status != 0: 16.54135843300014 16.550967111 13.832944348 Calling exit ...