Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.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.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",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.8785/0.8785, allocations: 150.9 MB / 166.5 MB, free: 14.3 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004888/0.0004888, allocations: 18.03 kB / 236.6 MB, free: 2.027 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0615/0.06201, allocations: 31.34 MB / 267.9 MB, free: 7.543 MB / 222.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.TestDynamicCheckValve): time 1.767/1.829, allocations: 295.5 MB / 0.5503 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.044/1.873, allocations: 34.85 MB / 0.5843 GB, free: 9.715 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/1.873, allocations: 4 kB / 0.5843 GB, free: 9.711 MB / 478.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/DynamicCheckValve.mo:61:3-63: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004276/1.873, allocations: 127.2 kB / 0.5844 GB, free: 9.586 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/1.874, allocations: 130.9 kB / 0.5846 GB, free: 9.457 MB / 478.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.02577/1.9, allocations: 9.753 MB / 0.5941 GB, free: 15.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007374/1.9, allocations: 450.6 kB / 0.5945 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/1.901, allocations: 160.6 kB / 0.5947 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/1.901, allocations: 183.2 kB / 0.5949 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002578/1.901, allocations: 163.2 kB / 0.595 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/1.901, allocations: 24 kB / 0.595 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03684/1.938, allocations: 17.9 MB / 0.6125 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000169/1.938, allocations: 63.77 kB / 0.6126 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000276/1.938, allocations: 175.1 kB / 0.6127 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02268/1.961, allocations: 8.52 MB / 0.6211 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/1.961, allocations: 0 / 0.6211 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.874e-06/1.961, allocations: 4 kB / 0.6211 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.679e-06/1.961, allocations: 0 / 0.6211 GB, free: 4.02 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004905/1.966, allocations: 1.595 MB / 0.6226 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.966, allocations: 8.031 kB / 0.6226 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.324e-05/1.966, allocations: 70.53 kB / 0.6227 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/1.967, allocations: 51.64 kB / 0.6227 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/1.967, allocations: 262.4 kB / 0.623 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.725e-05/1.967, allocations: 50.2 kB / 0.623 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/1.967, allocations: 24 kB / 0.6231 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/1.968, allocations: 354.7 kB / 0.6234 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/1.968, allocations: 7.984 kB / 0.6234 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/1.968, allocations: 8 kB / 0.6234 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/1.968, allocations: 15.94 kB / 0.6234 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/1.968, allocations: 229.7 kB / 0.6237 GB, free: 1.23 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.02168/1.99, allocations: 10.05 MB / 0.6335 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007229/1.991, allocations: 268 kB / 0.6337 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/1.991, allocations: 147.1 kB / 0.6339 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3882/2.379, allocations: 85.99 MB / 0.7178 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005579/2.38, allocations: 220.4 kB / 0.718 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.265e-06/2.38, allocations: 0 / 0.718 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001425/2.381, allocations: 0.5744 MB / 0.7186 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/2.381, allocations: 84.36 kB / 0.7187 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/2.381, allocations: 251 kB / 0.7189 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/2.381, allocations: 33.86 kB / 0.719 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/2.382, allocations: 170.2 kB / 0.7191 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/2.382, allocations: 160.1 kB / 0.7193 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/2.382, allocations: 68.14 kB / 0.7193 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001113/2.382, allocations: 342.3 kB / 0.7197 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/2.382, allocations: 112.1 kB / 0.7198 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/2.383, allocations: 166.3 kB / 0.7199 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004277/2.383, allocations: 288.3 kB / 0.7202 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/2.383, allocations: 2.625 kB / 0.7202 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008508/2.384, allocations: 436.2 kB / 0.7206 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/2.384, allocations: 8.281 kB / 0.7206 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/2.384, allocations: 1.438 kB / 0.7206 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009411/2.385, allocations: 192.5 kB / 0.7208 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/2.385, allocations: 30.41 kB / 0.7208 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/2.387, allocations: 2.426 MB / 0.7232 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/2.387, allocations: 42.11 kB / 0.7233 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/2.387, allocations: 17.94 kB / 0.7233 GB, free: 206.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001634/2.387, allocations: 152.5 kB / 0.7234 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.569e-05/2.387, allocations: 32.98 kB / 0.7235 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007235/2.388, allocations: 0.5662 MB / 0.724 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004759/2.388, allocations: 369.9 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/2.389, allocations: 0.5625 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/2.389, allocations: 3.328 kB / 0.7244 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/2.39, allocations: 0.9724 MB / 0.7253 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/2.39, allocations: 7.5 kB / 0.7253 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/2.39, allocations: 58.34 kB / 0.7254 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003262/2.39, allocations: 99.8 kB / 0.7255 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/2.39, allocations: 5.625 kB / 0.7255 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003952/2.391, allocations: 0.6417 MB / 0.7261 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/2.391, allocations: 3.938 kB / 0.7261 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000833/2.392, allocations: 0.6562 MB / 0.7267 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.245e-05/2.392, allocations: 128.4 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/2.392, allocations: 16.23 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/2.392, allocations: 20.33 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.272e-05/2.392, allocations: 36.66 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/2.392, allocations: 8.969 kB / 0.7269 GB, free: 205 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001875/2.392, allocations: 221.2 kB / 0.7272 GB, free: 205 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.392, allocations: 0 / 0.7272 GB, free: 205 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003273/2.396, allocations: 1.227 MB / 0.7284 GB, free: 205 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006005/2.402, allocations: 2.859 MB / 0.7311 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008987/2.402, allocations: 493.7 kB / 0.7316 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/2.402, allocations: 256 / 0.7316 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003859/2.403, allocations: 204.5 kB / 0.7318 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007323/2.404, allocations: 136.9 kB / 0.7319 GB, free: 203.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/2.408, allocations: 3.852 MB / 0.7357 GB, free: 202.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/2.409, allocations: 0.8086 MB / 0.7365 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001456/2.409, allocations: 33.55 kB / 0.7365 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/2.409, allocations: 135.9 kB / 0.7367 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of SimCode: time 5.01e-07/2.409, allocations: 3.094 kB / 0.7367 GB, free: 201.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08072/2.49, allocations: 50.12 MB / 0.7856 GB, free: 162.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.48/16.97, allocations: 0 / 0.7856 GB, free: 162.8 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)