Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.812/0.812, allocations: 150.9 MB / 166.4 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 19.97 kB / 204.6 MB, free: 9.648 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1474, allocations: 31.33 MB / 236 MB, free: 5.371 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm): time 1.571/1.719, allocations: 294.7 MB / 0.5182 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03659/1.756, allocations: 34.67 MB / 0.5521 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003699/1.756, allocations: 4 kB / 0.5521 GB, free: 10.75 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:30:3-32:42: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 4.0.0-master/WaterSteam/PressureLosses/Diaphragm.mo:33:3-35:37: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.0004591/1.756, allocations: 112.5 kB / 0.5522 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/1.757, allocations: 91.23 kB / 0.5523 GB, free: 10.55 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02298/1.78, allocations: 9.637 MB / 0.5617 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004827/1.78, allocations: 354.8 kB / 0.562 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/1.78, allocations: 120.5 kB / 0.5622 GB, free: 456 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/1.781, allocations: 139.3 kB / 0.5623 GB, free: 316 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/1.781, allocations: 119.4 kB / 0.5624 GB, free: 196 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/1.781, allocations: 20 kB / 0.5624 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03057/1.811, allocations: 17.74 MB / 0.5797 GB, free: 14.41 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/1.811, allocations: 43.84 kB / 0.5798 GB, free: 14.37 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001937/1.812, allocations: 139.3 kB / 0.5799 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01838/1.83, allocations: 8.48 MB / 0.5882 GB, free: 5.734 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/1.83, allocations: 4 kB / 0.5882 GB, free: 5.73 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.83, allocations: 0 / 0.5882 GB, free: 5.73 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/1.83, allocations: 0 / 0.5882 GB, free: 5.73 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003834/1.834, allocations: 1.454 MB / 0.5896 GB, free: 4.227 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/1.834, allocations: 8.031 kB / 0.5896 GB, free: 4.219 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.039e-05/1.834, allocations: 66.47 kB / 0.5897 GB, free: 4.145 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/1.834, allocations: 31.62 kB / 0.5897 GB, free: 4.113 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/1.834, allocations: 232.7 kB / 0.59 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/1.834, allocations: 13.19 kB / 0.59 GB, free: 3.832 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/1.834, allocations: 24 kB / 0.59 GB, free: 3.809 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004482/1.835, allocations: 317 kB / 0.5903 GB, free: 3.465 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/1.835, allocations: 3.938 kB / 0.5903 GB, free: 3.461 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/1.835, allocations: 12 kB / 0.5903 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/1.835, allocations: 11.98 kB / 0.5903 GB, free: 3.438 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/1.835, allocations: 178.1 kB / 0.5905 GB, free: 3.266 MB / 478.1 MB 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.03667/1.872, allocations: 18.06 MB / 0.6081 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/1.872, allocations: 148.1 kB / 0.6083 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/1.873, allocations: 84.84 kB / 0.6083 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1538/2.026, allocations: 77.46 MB / 0.684 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/2.026, allocations: 34.56 kB / 0.684 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.354e-06/2.026, allocations: 0 / 0.684 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009812/2.027, allocations: 423.4 kB / 0.6844 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/2.027, allocations: 81.09 kB / 0.6845 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/2.028, allocations: 219.1 kB / 0.6847 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/2.028, allocations: 33.7 kB / 0.6847 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/2.028, allocations: 148.4 kB / 0.6849 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/2.028, allocations: 114.3 kB / 0.685 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/2.028, allocations: 49.64 kB / 0.685 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001228/2.028, allocations: 342.8 kB / 0.6854 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/2.028, allocations: 75.97 kB / 0.6854 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/2.028, allocations: 133.9 kB / 0.6856 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/2.029, allocations: 225.3 kB / 0.6858 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/2.029, allocations: 0 / 0.6858 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004668/2.029, allocations: 305.9 kB / 0.6861 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/2.029, allocations: 9.719 kB / 0.6861 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/2.029, allocations: 4.156 kB / 0.6861 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009503/2.03, allocations: 139.4 kB / 0.6862 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.1e-05/2.03, allocations: 21.36 kB / 0.6862 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005468/2.031, allocations: 0.6108 MB / 0.6868 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/2.031, allocations: 35.61 kB / 0.6869 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/2.031, allocations: 4 kB / 0.6869 GB, free: 5.715 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001445/2.031, allocations: 137.8 kB / 0.687 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/2.031, allocations: 27.78 kB / 0.687 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009349/2.032, allocations: 0.6034 MB / 0.6876 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005562/2.033, allocations: 230.4 kB / 0.6878 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/2.033, allocations: 7.875 kB / 0.6878 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/2.033, allocations: 0 / 0.6878 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/2.034, allocations: 0.7373 MB / 0.6886 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.034, allocations: 0 / 0.6886 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.08e-05/2.034, allocations: 27.92 kB / 0.6886 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003545/2.034, allocations: 110.3 kB / 0.6887 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/2.034, allocations: 4 kB / 0.6887 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004806/2.035, allocations: 0.6303 MB / 0.6893 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/2.035, allocations: 0 / 0.6893 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000603/2.036, allocations: 349 kB / 0.6897 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/2.036, allocations: 116.8 kB / 0.6898 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/2.036, allocations: 11.84 kB / 0.6898 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/2.036, allocations: 4 kB / 0.6898 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/2.036, allocations: 11.03 kB / 0.6898 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/2.036, allocations: 4 kB / 0.6898 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002373/2.036, allocations: 237.9 kB / 0.69 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/2.036, allocations: 0 / 0.69 GB, free: 2.285 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003264/2.039, allocations: 1.222 MB / 0.6912 GB, free: 1.062 MB / 0.5762 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 (13): * Single equations (assignments): 12 * 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.1989/2.238, allocations: 2.528 MB / 0.6937 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007263/2.239, allocations: 253.7 kB / 0.6939 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/2.239, allocations: 1.812 kB / 0.6939 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/2.239, allocations: 102.3 kB / 0.694 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007594/2.24, allocations: 128.6 kB / 0.6941 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/2.244, allocations: 3.061 MB / 0.6971 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/2.245, allocations: 0.7676 MB / 0.6979 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001398/2.245, allocations: 27.75 kB / 0.6979 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.714e-05/2.245, allocations: 93.64 kB / 0.698 GB, free: 224 MB / 0.5762 GB Notification: Performance of SimCode: time 2.8e-07/2.245, allocations: 5.312 kB / 0.698 GB, free: 224 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07178/2.317, allocations: 48.17 MB / 0.7451 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/14.95, allocations: 18.22 kB / 0.7451 GB, free: 197.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.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_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)