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.7784/0.7784, allocations: 150.9 MB / 166.4 MB, free: 14.21 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003731, allocations: 19.97 kB / 204.6 MB, free: 9.516 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 31.33 MB / 236 MB, free: 5.539 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.TestDynamicCheckValve): time 1.623/1.778, allocations: 295 MB / 0.5185 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03706/1.815, allocations: 34.85 MB / 0.5525 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000375/1.815, allocations: 7.938 kB / 0.5525 GB, free: 10.32 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/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.0004367/1.815, allocations: 131.9 kB / 0.5527 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003017/1.816, allocations: 126.9 kB / 0.5528 GB, free: 10.06 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.02348/1.839, allocations: 9.749 MB / 0.5623 GB, free: 320 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006654/1.84, allocations: 458.6 kB / 0.5627 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/1.84, allocations: 151.3 kB / 0.5629 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/1.84, allocations: 183.2 kB / 0.5631 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/1.841, allocations: 171.1 kB / 0.5632 GB, free: 15.37 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/1.841, allocations: 28 kB / 0.5632 GB, free: 15.34 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02781/1.869, allocations: 17.67 MB / 0.5805 GB, free: 13.65 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/1.869, allocations: 67.75 kB / 0.5806 GB, free: 13.58 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/1.869, allocations: 179 kB / 0.5807 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01781/1.887, allocations: 8.511 MB / 0.589 GB, free: 4.875 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.887, allocations: 0 / 0.589 GB, free: 4.875 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.583e-06/1.887, allocations: 3.938 kB / 0.5891 GB, free: 4.871 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/1.887, allocations: 0 / 0.5891 GB, free: 4.871 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003747/1.891, allocations: 1.548 MB / 0.5906 GB, free: 3.273 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/1.891, allocations: 16.03 kB / 0.5906 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.073e-05/1.891, allocations: 66.53 kB / 0.5906 GB, free: 3.184 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.226e-05/1.891, allocations: 43.47 kB / 0.5907 GB, free: 3.141 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/1.891, allocations: 258.3 kB / 0.5909 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.066e-05/1.891, allocations: 42.27 kB / 0.591 GB, free: 2.801 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/1.891, allocations: 27.91 kB / 0.591 GB, free: 2.773 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004799/1.892, allocations: 360.2 kB / 0.5913 GB, free: 2.395 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/1.892, allocations: 0 / 0.5913 GB, free: 2.395 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/1.892, allocations: 8 kB / 0.5913 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/1.892, allocations: 19.92 kB / 0.5914 GB, free: 2.367 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000365/1.892, allocations: 225.7 kB / 0.5916 GB, free: 2.145 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.0191/1.911, allocations: 9.985 MB / 0.6013 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006182/1.912, allocations: 275 kB / 0.6016 GB, free: 6.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/1.912, allocations: 141.2 kB / 0.6017 GB, free: 6.703 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.172/2.084, allocations: 85.46 MB / 0.6852 GB, free: 7.617 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004178/2.084, allocations: 224 kB / 0.6854 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 3.547e-06/2.084, allocations: 1.922 kB / 0.6854 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001245/2.086, allocations: 0.5694 MB / 0.686 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/2.086, allocations: 97.03 kB / 0.6861 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/2.086, allocations: 246.9 kB / 0.6863 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/2.086, allocations: 29.7 kB / 0.6863 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/2.086, allocations: 172.8 kB / 0.6865 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/2.086, allocations: 157.6 kB / 0.6866 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.519e-05/2.086, allocations: 61.92 kB / 0.6867 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001418/2.087, allocations: 346.8 kB / 0.687 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/2.087, allocations: 116.8 kB / 0.6871 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/2.087, allocations: 160.1 kB / 0.6873 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000421/2.087, allocations: 295.1 kB / 0.6876 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/2.088, allocations: 0 / 0.6876 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008253/2.088, allocations: 430.6 kB / 0.688 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/2.088, allocations: 4 kB / 0.688 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/2.088, allocations: 4 kB / 0.688 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009942/2.089, allocations: 197.6 kB / 0.6882 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/2.09, allocations: 27.97 kB / 0.6882 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/2.092, allocations: 2.421 MB / 0.6906 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/2.092, allocations: 39.89 kB / 0.6906 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/2.092, allocations: 12 kB / 0.6906 GB, free: 1.746 MB / 0.5762 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.0001774/2.092, allocations: 150.6 kB / 0.6908 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/2.092, allocations: 39.59 kB / 0.6908 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008405/2.093, allocations: 0.56 MB / 0.6913 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005312/2.094, allocations: 366.3 kB / 0.6917 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/2.094, allocations: 11.88 kB / 0.6917 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/2.094, allocations: 0 / 0.6917 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1609/2.255, allocations: 0.983 MB / 0.6927 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/2.255, allocations: 0 / 0.6927 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/2.255, allocations: 60.36 kB / 0.6927 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003656/2.255, allocations: 100.7 kB / 0.6928 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/2.256, allocations: 7.031 kB / 0.6928 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003764/2.256, allocations: 0.6364 MB / 0.6934 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/2.256, allocations: 0 / 0.6934 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00084/2.257, allocations: 0.6534 MB / 0.6941 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/2.257, allocations: 140.8 kB / 0.6942 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/2.257, allocations: 8.156 kB / 0.6942 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/2.257, allocations: 14.36 kB / 0.6942 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/2.257, allocations: 35.53 kB / 0.6943 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/2.257, allocations: 7.344 kB / 0.6943 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001888/2.257, allocations: 221.5 kB / 0.6945 GB, free: 225 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.21e-07/2.257, allocations: 0.8438 kB / 0.6945 GB, free: 225 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003122/2.261, allocations: 1.219 MB / 0.6957 GB, free: 225 MB / 0.5762 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.005595/2.266, allocations: 2.831 MB / 0.6984 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000935/2.267, allocations: 0.5038 MB / 0.6989 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/2.267, allocations: 0 / 0.6989 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003792/2.268, allocations: 201.1 kB / 0.6991 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007383/2.268, allocations: 134.4 kB / 0.6993 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/2.273, allocations: 3.833 MB / 0.703 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/2.273, allocations: 0.8108 MB / 0.7038 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001665/2.273, allocations: 39.31 kB / 0.7038 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/2.274, allocations: 131.8 kB / 0.704 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/2.274, allocations: 0 / 0.704 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07456/2.348, allocations: 50.04 MB / 0.7528 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/14.71, allocations: 5.312 kB / 0.7528 GB, free: 190.1 MB / 0.5762 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)