Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.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.8063/0.8063, allocations: 153.9 MB / 172.7 MB, free: 4.934 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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004977/0.0004977, allocations: 11.98 kB / 249.8 MB, free: 4.43 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1542, allocations: 33.37 MB / 283.2 MB, free: 1.77 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.TestDiaphragm): time 1.812/1.966, allocations: 307.5 MB / 0.5769 GB, free: 16 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2181/2.184, allocations: 193.7 MB / 0.766 GB, free: 3.367 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004815/2.185, allocations: 11.88 kB / 0.7661 GB, free: 3.355 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60: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/Diaphragm.mo:34:3-35: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/Diaphragm.mo:36:3-37: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.0001774/2.185, allocations: 43.58 kB / 0.7661 GB, free: 3.312 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0003825/2.185, allocations: 119 kB / 0.7662 GB, free: 3.195 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.0337/2.219, allocations: 12.45 MB / 0.7784 GB, free: 6.742 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0007777/2.22, allocations: 402.8 kB / 0.7788 GB, free: 6.344 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002872/2.22, allocations: 178.8 kB / 0.7789 GB, free: 6.168 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003341/2.22, allocations: 179.4 kB / 0.7791 GB, free: 5.992 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/2.221, allocations: 183.2 kB / 0.7793 GB, free: 5.812 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/2.221, allocations: 36 kB / 0.7793 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03972/2.26, allocations: 21.13 MB / 0.7999 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000173/2.261, allocations: 87.7 kB / 0.8 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002561/2.261, allocations: 202.9 kB / 0.8002 GB, free: 340 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02663/2.288, allocations: 10.42 MB / 0.8104 GB, free: 5.891 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 9.719e-06/2.288, allocations: 0 / 0.8104 GB, free: 5.891 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.924e-06/2.288, allocations: 5.594 kB / 0.8104 GB, free: 5.887 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.978e-05/2.288, allocations: 0 / 0.8104 GB, free: 5.887 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.007429/2.295, allocations: 1.915 MB / 0.8123 GB, free: 3.93 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.981e-05/2.295, allocations: 12.03 kB / 0.8123 GB, free: 3.918 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.766e-05/2.295, allocations: 70.53 kB / 0.8123 GB, free: 3.84 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/2.295, allocations: 51.72 kB / 0.8124 GB, free: 3.789 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004614/2.296, allocations: 251.5 kB / 0.8126 GB, free: 3.52 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/2.296, allocations: 29 kB / 0.8127 GB, free: 3.492 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/2.296, allocations: 37.56 kB / 0.8127 GB, free: 3.457 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000631/2.296, allocations: 378.6 kB / 0.8131 GB, free: 3.059 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/2.296, allocations: 0 / 0.8131 GB, free: 3.059 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/2.296, allocations: 16 kB / 0.8131 GB, free: 3.043 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/2.296, allocations: 8 kB / 0.8131 GB, free: 3.035 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/2.297, allocations: 256.7 kB / 0.8133 GB, free: 2.789 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007825/2.305, allocations: 3.841 MB / 0.8171 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/2.305, allocations: 66.59 kB / 0.8171 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.664e-05/2.305, allocations: 32.89 kB / 0.8172 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4506/2.756, allocations: 88.37 MB / 0.9035 GB, free: 252 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/2.756, allocations: 34.31 kB / 0.9035 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 2.995e-06/2.756, allocations: 2.672 kB / 0.9035 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.000736/2.756, allocations: 174.6 kB / 0.9037 GB, free: 251.8 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/2.756, allocations: 79.55 kB / 0.9037 GB, free: 251.7 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/2.757, allocations: 345.7 kB / 0.9041 GB, free: 251.3 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/2.757, allocations: 33.17 kB / 0.9041 GB, free: 251.3 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/2.757, allocations: 235.2 kB / 0.9043 GB, free: 251.1 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/2.757, allocations: 30.06 kB / 0.9044 GB, free: 251.1 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/2.757, allocations: 69.84 kB / 0.9044 GB, free: 251 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.364e-05/2.757, allocations: 330.8 kB / 0.9047 GB, free: 250.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-05/2.757, allocations: 48.45 kB / 0.9048 GB, free: 250.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/2.757, allocations: 170.9 kB / 0.905 GB, free: 250.4 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/2.757, allocations: 196.8 kB / 0.9051 GB, free: 250.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.757, allocations: 0 / 0.9051 GB, free: 250.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004342/2.758, allocations: 295.7 kB / 0.9054 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/2.758, allocations: 8 kB / 0.9054 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/2.758, allocations: 4 kB / 0.9054 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008514/2.759, allocations: 107.3 kB / 0.9055 GB, free: 249.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/2.759, allocations: 51.16 kB / 0.9056 GB, free: 249.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003218/2.759, allocations: 0.5669 MB / 0.9061 GB, free: 249.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/2.759, allocations: 35.52 kB / 0.9062 GB, free: 249.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/2.759, allocations: 16 kB / 0.9062 GB, free: 249.1 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 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001278/2.76, allocations: 158.2 kB / 0.9063 GB, free: 249 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/2.76, allocations: 27.81 kB / 0.9064 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005218/2.76, allocations: 182.5 kB / 0.9065 GB, free: 248.8 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/2.76, allocations: 3.938 kB / 0.9065 GB, free: 248.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/2.76, allocations: 0 / 0.9065 GB, free: 248.8 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/2.76, allocations: 4 kB / 0.9065 GB, free: 248.8 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/2.76, allocations: 289.8 kB / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/2.76, allocations: 0 / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.314e-05/2.76, allocations: 4 kB / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004432/2.761, allocations: 76.62 kB / 0.9069 GB, free: 248.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.699e-06/2.761, allocations: 6.75 kB / 0.9069 GB, free: 248.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002702/2.761, allocations: 0.575 MB / 0.9075 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/2.761, allocations: 0 / 0.9075 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/2.762, allocations: 166.3 kB / 0.9076 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 9.53e-05/2.762, allocations: 52.86 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/2.762, allocations: 8 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.036e-05/2.762, allocations: 3.984 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/2.762, allocations: 9.719 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/2.762, allocations: 4 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001884/2.762, allocations: 251.2 kB / 0.9079 GB, free: 247.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/2.762, allocations: 0 / 0.9079 GB, free: 247.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00349/2.765, allocations: 1.633 MB / 0.9095 GB, free: 245.9 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00758/2.773, allocations: 3.094 MB / 0.9126 GB, free: 243.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000506/2.774, allocations: 132.9 kB / 0.9127 GB, free: 243 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/2.774, allocations: 3.938 kB / 0.9127 GB, free: 243 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/2.774, allocations: 39.97 kB / 0.9127 GB, free: 243 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004486/2.774, allocations: 67.41 kB / 0.9128 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004761/2.779, allocations: 3.196 MB / 0.9159 GB, free: 239.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/2.779, allocations: 0.7753 MB / 0.9167 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001442/2.779, allocations: 46.05 kB / 0.9167 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/2.779, allocations: 99.41 kB / 0.9168 GB, free: 238.6 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/2.779, allocations: 0 / 0.9168 GB, free: 238.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08804/2.867, allocations: 54.84 MB / 0.9704 GB, free: 184.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/17.09, allocations: 13.3 kB / 0.9704 GB, free: 184.6 MB / 0.6856 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm_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_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.640396624000005] Failed to read output from testmodel.py, exit status != 0: 17.401937164999936 17.413023022 15.122963453 Calling exit ...