Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.7958/0.7958, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004893/0.0004893, allocations: 17.88 kB / 236.5 MB, free: 2.023 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07885/0.07937, allocations: 31.34 MB / 267.9 MB, free: 7.633 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.622/1.701, allocations: 294.9 MB / 0.5496 GB, free: 12.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04228/1.743, allocations: 34.85 MB / 0.5837 GB, free: 9.816 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003594/1.744, allocations: 8 kB / 0.5837 GB, free: 9.809 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.0006341/1.744, allocations: 142.1 kB / 0.5838 GB, free: 9.672 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005699/1.745, allocations: 158.9 kB / 0.584 GB, free: 9.516 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.02784/1.773, allocations: 9.923 MB / 0.5936 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007969/1.774, allocations: 450.5 kB / 0.5941 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/1.774, allocations: 156.6 kB / 0.5942 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/1.774, allocations: 191.2 kB / 0.5944 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/1.774, allocations: 163.2 kB / 0.5946 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/1.774, allocations: 28 kB / 0.5946 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02929/1.804, allocations: 17.9 MB / 0.6121 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001622/1.804, allocations: 67.7 kB / 0.6121 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003037/1.804, allocations: 175.1 kB / 0.6123 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02293/1.827, allocations: 8.52 MB / 0.6206 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/1.827, allocations: 4 kB / 0.6206 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.094e-06/1.827, allocations: 0 / 0.6206 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.416e-05/1.827, allocations: 0 / 0.6206 GB, free: 3.91 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.004036/1.831, allocations: 1.595 MB / 0.6222 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.831, allocations: 12.03 kB / 0.6222 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.226e-05/1.831, allocations: 74.53 kB / 0.6223 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.368e-05/1.831, allocations: 47.66 kB / 0.6223 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/1.832, allocations: 266.4 kB / 0.6226 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.501e-05/1.832, allocations: 42.27 kB / 0.6226 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/1.832, allocations: 24 kB / 0.6226 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/1.832, allocations: 354.7 kB / 0.623 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/1.832, allocations: 0 / 0.623 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/1.832, allocations: 12 kB / 0.623 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/1.832, allocations: 19.92 kB / 0.623 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/1.833, allocations: 225.7 kB / 0.6232 GB, free: 1.121 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.01939/1.852, allocations: 10.05 MB / 0.633 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006502/1.853, allocations: 284 kB / 0.6333 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/1.853, allocations: 147.1 kB / 0.6334 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3898/2.243, allocations: 85.98 MB / 0.7174 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005105/2.243, allocations: 218.4 kB / 0.7176 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 3.626e-06/2.243, allocations: 0 / 0.7176 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001363/2.245, allocations: 0.5786 MB / 0.7182 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/2.245, allocations: 79.3 kB / 0.7182 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/2.245, allocations: 250.9 kB / 0.7185 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/2.245, allocations: 29.98 kB / 0.7185 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/2.245, allocations: 170 kB / 0.7187 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/2.246, allocations: 164.5 kB / 0.7188 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/2.246, allocations: 69.56 kB / 0.7189 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001207/2.246, allocations: 343.1 kB / 0.7192 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/2.246, allocations: 108.1 kB / 0.7193 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/2.246, allocations: 164 kB / 0.7195 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/2.247, allocations: 288 kB / 0.7198 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.82e-06/2.247, allocations: 0 / 0.7198 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009469/2.248, allocations: 442.7 kB / 0.7202 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/2.248, allocations: 7.5 kB / 0.7202 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/2.248, allocations: 0 / 0.7202 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/2.249, allocations: 197.7 kB / 0.7204 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/2.249, allocations: 25.72 kB / 0.7204 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/2.251, allocations: 2.432 MB / 0.7228 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/2.252, allocations: 42.8 kB / 0.7228 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/2.252, allocations: 11.59 kB / 0.7228 GB, free: 206.7 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.0001474/2.252, allocations: 154.1 kB / 0.723 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/2.252, allocations: 35.27 kB / 0.723 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/2.253, allocations: 0.5672 MB / 0.7236 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004691/2.253, allocations: 367.2 kB / 0.7239 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/2.253, allocations: 1.219 kB / 0.7239 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/2.253, allocations: 0 / 0.7239 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/2.254, allocations: 0.9788 MB / 0.7249 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/2.254, allocations: 3.781 kB / 0.7249 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/2.255, allocations: 58.94 kB / 0.7249 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003429/2.255, allocations: 104.5 kB / 0.725 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/2.255, allocations: 7.219 kB / 0.725 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003753/2.255, allocations: 0.6327 MB / 0.7257 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/2.255, allocations: 4.719 kB / 0.7257 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008644/2.256, allocations: 0.6531 MB / 0.7263 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/2.256, allocations: 135.4 kB / 0.7264 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/2.256, allocations: 12.97 kB / 0.7264 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/2.257, allocations: 21.47 kB / 0.7265 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.908e-05/2.257, allocations: 34.44 kB / 0.7265 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/2.257, allocations: 17.53 kB / 0.7265 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000189/2.257, allocations: 220.4 kB / 0.7267 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.91e-07/2.257, allocations: 0 / 0.7267 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003292/2.26, allocations: 1.225 MB / 0.7279 GB, free: 205.1 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.007824/2.268, allocations: 2.851 MB / 0.7307 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001088/2.269, allocations: 497.1 kB / 0.7312 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/2.269, allocations: 0 / 0.7312 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004302/2.27, allocations: 202.4 kB / 0.7314 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008508/2.27, allocations: 125.7 kB / 0.7315 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006251/2.277, allocations: 3.865 MB / 0.7353 GB, free: 202.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/2.277, allocations: 0.8035 MB / 0.736 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001827/2.277, allocations: 35.97 kB / 0.7361 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/2.277, allocations: 137.6 kB / 0.7362 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of SimCode: time 6.22e-07/2.277, allocations: 0 / 0.7362 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07556/2.353, allocations: 50.15 MB / 0.7852 GB, free: 162.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/15.76, allocations: 3.859 kB / 0.7852 GB, free: 162.8 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)