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.8802/0.8802, allocations: 153.8 MB / 172.7 MB, free: 4.863 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.0007251/0.0007251, allocations: 11.98 kB / 249.8 MB, free: 4.371 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.204, allocations: 33.36 MB / 283.2 MB, free: 1.707 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.917/2.121, allocations: 307.6 MB / 0.5769 GB, free: 17.32 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2066/2.328, allocations: 167.1 MB / 0.7401 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004626/2.328, allocations: 13.38 kB / 0.7401 GB, free: 13.99 MB / 0.6075 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.0001717/2.328, allocations: 51.58 kB / 0.7402 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004102/2.329, allocations: 115 kB / 0.7403 GB, free: 13.83 MB / 0.6075 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.03418/2.363, allocations: 12.25 MB / 0.7522 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006913/2.363, allocations: 402.9 kB / 0.7526 GB, free: 1.172 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/2.364, allocations: 176.8 kB / 0.7528 GB, free: 1 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000285/2.364, allocations: 179.4 kB / 0.753 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/2.364, allocations: 159.1 kB / 0.7531 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/2.364, allocations: 36 kB / 0.7531 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03915/2.403, allocations: 19.6 MB / 0.7723 GB, free: 13.01 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002719/2.404, allocations: 95.69 kB / 0.7724 GB, free: 12.91 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/2.404, allocations: 159.2 kB / 0.7725 GB, free: 12.76 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02701/2.431, allocations: 10.41 MB / 0.7827 GB, free: 2.32 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/2.431, allocations: 4 kB / 0.7827 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.454e-06/2.431, allocations: 0 / 0.7827 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.428e-06/2.431, allocations: 0 / 0.7827 GB, free: 2.316 MB / 0.6387 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.004888/2.436, allocations: 1.895 MB / 0.7845 GB, free: 388 kB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/2.436, allocations: 8.031 kB / 0.7845 GB, free: 380 kB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.78e-05/2.436, allocations: 70.53 kB / 0.7846 GB, free: 300 kB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.29e-05/2.436, allocations: 47.72 kB / 0.7847 GB, free: 252 kB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/2.437, allocations: 271.4 kB / 0.7849 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/2.437, allocations: 26.06 kB / 0.7849 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.955e-05/2.437, allocations: 36 kB / 0.785 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/2.437, allocations: 406.1 kB / 0.7854 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/2.437, allocations: 0 / 0.7854 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/2.437, allocations: 16 kB / 0.7854 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/2.437, allocations: 9.5 kB / 0.7854 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004651/2.438, allocations: 246.4 kB / 0.7856 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007905/2.446, allocations: 3.253 MB / 0.7888 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/2.446, allocations: 82.55 kB / 0.7889 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.345e-05/2.446, allocations: 20.86 kB / 0.7889 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.482/2.928, allocations: 88.7 MB / 0.8755 GB, free: 281.4 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/2.928, allocations: 38.38 kB / 0.8756 GB, free: 281.4 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 2.394e-06/2.928, allocations: 0 / 0.8756 GB, free: 281.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.000694/2.929, allocations: 180.4 kB / 0.8757 GB, free: 281.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/2.929, allocations: 86.42 kB / 0.8758 GB, free: 281.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003129/2.929, allocations: 353.8 kB / 0.8761 GB, free: 280.8 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/2.929, allocations: 25.7 kB / 0.8762 GB, free: 280.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/2.929, allocations: 241.4 kB / 0.8764 GB, free: 280.7 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/2.929, allocations: 32.66 kB / 0.8764 GB, free: 280.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.623e-05/2.929, allocations: 65.12 kB / 0.8765 GB, free: 280.6 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.532e-05/2.929, allocations: 334 kB / 0.8768 GB, free: 280.3 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.148e-05/2.929, allocations: 50.48 kB / 0.8769 GB, free: 280.2 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/2.93, allocations: 184.1 kB / 0.877 GB, free: 280 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/2.93, allocations: 211.5 kB / 0.8772 GB, free: 279.8 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/2.93, allocations: 0 / 0.8772 GB, free: 279.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000437/2.93, allocations: 284.4 kB / 0.8775 GB, free: 279.6 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/2.93, allocations: 5.453 kB / 0.8775 GB, free: 279.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/2.93, allocations: 11.75 kB / 0.8775 GB, free: 279.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008483/2.931, allocations: 106.4 kB / 0.8776 GB, free: 279.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/2.931, allocations: 49.48 kB / 0.8777 GB, free: 279.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003174/2.932, allocations: 0.5622 MB / 0.8782 GB, free: 278.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/2.932, allocations: 38.45 kB / 0.8783 GB, free: 278.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/2.932, allocations: 15.31 kB / 0.8783 GB, free: 278.8 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.0001294/2.932, allocations: 161.5 kB / 0.8784 GB, free: 278.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.654e-05/2.932, allocations: 31.81 kB / 0.8785 GB, free: 278.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/2.933, allocations: 173.2 kB / 0.8786 GB, free: 278.5 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/2.933, allocations: 4 kB / 0.8786 GB, free: 278.5 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/2.933, allocations: 0 / 0.8786 GB, free: 278.5 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/2.933, allocations: 0 / 0.8786 GB, free: 278.5 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/2.933, allocations: 282.6 kB / 0.8789 GB, free: 278.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/2.933, allocations: 2.5 kB / 0.8789 GB, free: 278.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/2.933, allocations: 8 kB / 0.8789 GB, free: 278.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004674/2.933, allocations: 76.14 kB / 0.879 GB, free: 278.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/2.933, allocations: 0 / 0.879 GB, free: 278.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002877/2.934, allocations: 0.5642 MB / 0.8795 GB, free: 277.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/2.934, allocations: 2.062 kB / 0.8795 GB, free: 277.6 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/2.934, allocations: 176.6 kB / 0.8797 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/2.934, allocations: 56.53 kB / 0.8798 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/2.934, allocations: 3.938 kB / 0.8798 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.046e-05/2.934, allocations: 0 / 0.8798 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/2.934, allocations: 7.984 kB / 0.8798 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/2.934, allocations: 7.312 kB / 0.8798 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000207/2.934, allocations: 248.8 kB / 0.88 GB, free: 277.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.11e-07/2.934, allocations: 1.094 kB / 0.88 GB, free: 277.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003464/2.938, allocations: 1.626 MB / 0.8816 GB, free: 275.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.00682/2.945, allocations: 3.096 MB / 0.8846 GB, free: 273.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000458/2.945, allocations: 131.4 kB / 0.8847 GB, free: 273.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/2.945, allocations: 0.9375 kB / 0.8847 GB, free: 273.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/2.945, allocations: 39.91 kB / 0.8848 GB, free: 273.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/2.946, allocations: 67.08 kB / 0.8849 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/2.95, allocations: 3.207 MB / 0.888 GB, free: 269.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/2.95, allocations: 172.7 kB / 0.8881 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001359/2.95, allocations: 45.3 kB / 0.8882 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/2.95, allocations: 99.41 kB / 0.8883 GB, free: 269.5 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/2.95, allocations: 0 / 0.8883 GB, free: 269.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08178/3.032, allocations: 55.39 MB / 0.9424 GB, free: 214.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/18.75, allocations: 10.94 kB / 0.9424 GB, free: 214.9 MB / 0.6856 GB " [Timeout remaining time 641] (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: 20.748767443932593] Failed to read output from testmodel.py, exit status != 0: 19.07177383126691 19.081399316 16.647954305 Calling exit ...