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.8868/0.8868, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006147/0.0006149, allocations: 14.28 kB / 236.6 MB, free: 2.02 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08383, allocations: 31.35 MB / 267.9 MB, free: 7.551 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.776/1.86, allocations: 295.1 MB / 0.5498 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04294/1.903, allocations: 34.85 MB / 0.5839 GB, free: 9.742 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003691/1.904, allocations: 0 / 0.5839 GB, free: 9.742 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.0005232/1.904, allocations: 151.3 kB / 0.584 GB, free: 9.594 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/1.905, allocations: 154.9 kB / 0.5842 GB, free: 9.441 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.02906/1.934, allocations: 9.923 MB / 0.5938 GB, free: 15.51 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000817/1.935, allocations: 454.6 kB / 0.5943 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/1.935, allocations: 152.6 kB / 0.5944 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/1.935, allocations: 195.2 kB / 0.5946 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/1.935, allocations: 167.2 kB / 0.5948 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/1.935, allocations: 24 kB / 0.5948 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03191/1.967, allocations: 17.89 MB / 0.6123 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001688/1.967, allocations: 71.69 kB / 0.6123 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002625/1.968, allocations: 179 kB / 0.6125 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02199/1.99, allocations: 8.513 MB / 0.6208 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.525e-06/1.99, allocations: 0 / 0.6208 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.004e-06/1.99, allocations: 0 / 0.6208 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.579e-05/1.99, allocations: 4 kB / 0.6208 GB, free: 3.836 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.005405/1.995, allocations: 1.604 MB / 0.6224 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/1.995, allocations: 8.031 kB / 0.6224 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.158e-05/1.995, allocations: 70.53 kB / 0.6225 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.516e-05/1.995, allocations: 47.66 kB / 0.6225 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/1.996, allocations: 258.5 kB / 0.6228 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.352e-05/1.996, allocations: 46.27 kB / 0.6228 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/1.996, allocations: 24 kB / 0.6228 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/1.996, allocations: 354.7 kB / 0.6232 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/1.997, allocations: 4 kB / 0.6232 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/1.997, allocations: 8 kB / 0.6232 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/1.997, allocations: 23.86 kB / 0.6232 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003886/1.997, allocations: 225.7 kB / 0.6234 GB, free: 1.051 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.01973/2.017, allocations: 10.05 MB / 0.6332 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/2.017, allocations: 274.9 kB / 0.6335 GB, free: 5.68 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/2.018, allocations: 147.1 kB / 0.6336 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.383/2.401, allocations: 85.99 MB / 0.7176 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004201/2.401, allocations: 216.5 kB / 0.7178 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/2.401, allocations: 2.078 kB / 0.7178 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001176/2.402, allocations: 0.5808 MB / 0.7184 GB, free: 209 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/2.402, allocations: 80.77 kB / 0.7185 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/2.403, allocations: 257.6 kB / 0.7187 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/2.403, allocations: 30.14 kB / 0.7187 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.869e-05/2.403, allocations: 168.7 kB / 0.7189 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.27e-05/2.403, allocations: 159.2 kB / 0.719 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.605e-05/2.403, allocations: 66.77 kB / 0.7191 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.863e-05/2.403, allocations: 348.8 kB / 0.7194 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/2.403, allocations: 105.5 kB / 0.7195 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/2.403, allocations: 163.1 kB / 0.7197 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/2.404, allocations: 287.4 kB / 0.72 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.404, allocations: 0 / 0.72 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007231/2.404, allocations: 437.8 kB / 0.7204 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/2.405, allocations: 12.59 kB / 0.7204 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/2.405, allocations: 0 / 0.7204 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009168/2.405, allocations: 197 kB / 0.7206 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/2.406, allocations: 21.34 kB / 0.7206 GB, free: 208 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/2.408, allocations: 2.437 MB / 0.723 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/2.408, allocations: 42.8 kB / 0.723 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/2.408, allocations: 10.23 kB / 0.723 GB, free: 206 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.0001533/2.408, allocations: 152.4 kB / 0.7232 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.497e-05/2.408, allocations: 32.67 kB / 0.7232 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007199/2.409, allocations: 0.5731 MB / 0.7238 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004687/2.409, allocations: 364.4 kB / 0.7241 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/2.409, allocations: 3 kB / 0.7241 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/2.409, allocations: 0.7031 kB / 0.7241 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/2.411, allocations: 0.9745 MB / 0.7251 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/2.411, allocations: 2.5 kB / 0.7251 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/2.411, allocations: 59.52 kB / 0.7251 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003291/2.411, allocations: 100.5 kB / 0.7252 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/2.411, allocations: 9.938 kB / 0.7252 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003551/2.412, allocations: 0.6374 MB / 0.7259 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/2.412, allocations: 3.938 kB / 0.7259 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008261/2.412, allocations: 0.6563 MB / 0.7265 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/2.413, allocations: 134.4 kB / 0.7266 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/2.413, allocations: 12.66 kB / 0.7266 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/2.413, allocations: 18.06 kB / 0.7267 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.712e-05/2.413, allocations: 32.52 kB / 0.7267 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/2.413, allocations: 15.56 kB / 0.7267 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001902/2.413, allocations: 214.5 kB / 0.7269 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/2.413, allocations: 0.5625 kB / 0.7269 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004664/2.418, allocations: 1.233 MB / 0.7281 GB, free: 204.4 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.006077/2.424, allocations: 2.852 MB / 0.7309 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009757/2.425, allocations: 498.1 kB / 0.7314 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/2.425, allocations: 3.688 kB / 0.7314 GB, free: 203.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003988/2.425, allocations: 201.5 kB / 0.7316 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007891/2.426, allocations: 132.3 kB / 0.7317 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005131/2.431, allocations: 3.86 MB / 0.7355 GB, free: 201.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/2.431, allocations: 0.8076 MB / 0.7363 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001502/2.432, allocations: 34.05 kB / 0.7363 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/2.432, allocations: 135.5 kB / 0.7364 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.102e-06/2.432, allocations: 0 / 0.7364 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07691/2.509, allocations: 50.11 MB / 0.7854 GB, free: 162.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/16.04, allocations: 10.36 kB / 0.7854 GB, free: 162.3 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)