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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8864/0.8864, allocations: 153.8 MB / 170.2 MB, free: 13.78 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005081/0.0005081, allocations: 18.83 kB / 246.3 MB, free: 14.88 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06169/0.0622, allocations: 33.34 MB / 279.7 MB, free: 15.12 MB / 238.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve): time 1.681/1.743, allocations: 307.6 MB / 0.5735 GB, free: 9.812 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04411/1.787, allocations: 35.05 MB / 0.6077 GB, free: 6.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/1.788, allocations: 4 kB / 0.6077 GB, free: 6.621 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0005426/1.788, allocations: 155.8 kB / 0.6078 GB, free: 6.473 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004901/1.789, allocations: 150.9 kB / 0.608 GB, free: 6.324 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02574/1.814, allocations: 9.928 MB / 0.6177 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007251/1.815, allocations: 450.6 kB / 0.6181 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/1.815, allocations: 132.5 kB / 0.6182 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/1.816, allocations: 199.2 kB / 0.6184 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/1.816, allocations: 167.2 kB / 0.6186 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.136e-05/1.816, allocations: 28 kB / 0.6186 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02976/1.846, allocations: 17.92 MB / 0.6361 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001612/1.846, allocations: 67.7 kB / 0.6362 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002462/1.846, allocations: 183 kB / 0.6363 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01899/1.865, allocations: 8.532 MB / 0.6447 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/1.865, allocations: 4 kB / 0.6447 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.063e-06/1.865, allocations: 0 / 0.6447 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.927e-06/1.865, allocations: 0 / 0.6447 GB, free: 0.6797 MB / 0.5137 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.004729/1.87, allocations: 1.599 MB / 0.6462 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/1.87, allocations: 8.031 kB / 0.6463 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.521e-05/1.87, allocations: 70.53 kB / 0.6463 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/1.87, allocations: 51.69 kB / 0.6464 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/1.87, allocations: 274.3 kB / 0.6466 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.226e-05/1.87, allocations: 46.27 kB / 0.6467 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/1.87, allocations: 27.98 kB / 0.6467 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/1.871, allocations: 350.7 kB / 0.647 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/1.871, allocations: 0 / 0.647 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/1.871, allocations: 15.98 kB / 0.6471 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/1.871, allocations: 19.92 kB / 0.6471 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/1.871, allocations: 221.7 kB / 0.6473 GB, free: 13.88 MB / 0.5294 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.02058/1.892, allocations: 10.04 MB / 0.6571 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/1.893, allocations: 250.9 kB / 0.6573 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/1.893, allocations: 117.2 kB / 0.6574 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3579/2.251, allocations: 91.12 MB / 0.7464 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/2.251, allocations: 212.7 kB / 0.7466 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.834e-06/2.251, allocations: 0 / 0.7466 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001075/2.252, allocations: 0.5767 MB / 0.7472 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/2.252, allocations: 85.91 kB / 0.7473 GB, free: 194 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/2.253, allocations: 255.8 kB / 0.7475 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/2.253, allocations: 29.45 kB / 0.7475 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/2.253, allocations: 169 kB / 0.7477 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.328e-05/2.253, allocations: 164.4 kB / 0.7479 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/2.253, allocations: 67.22 kB / 0.7479 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.161e-05/2.253, allocations: 348.5 kB / 0.7483 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/2.253, allocations: 105.6 kB / 0.7484 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/2.253, allocations: 162.2 kB / 0.7485 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/2.253, allocations: 291 kB / 0.7488 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/2.253, allocations: 0 / 0.7488 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006691/2.254, allocations: 438.9 kB / 0.7492 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/2.254, allocations: 3.906 kB / 0.7492 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/2.254, allocations: 3.938 kB / 0.7492 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009003/2.255, allocations: 191.4 kB / 0.7494 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/2.255, allocations: 20.86 kB / 0.7494 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/2.257, allocations: 2.427 MB / 0.7518 GB, free: 190.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/2.257, allocations: 40.41 kB / 0.7518 GB, free: 190.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/2.257, allocations: 11.53 kB / 0.7518 GB, free: 190.8 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.0001237/2.257, allocations: 161.3 kB / 0.752 GB, free: 190.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/2.257, allocations: 35.61 kB / 0.752 GB, free: 190.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006401/2.258, allocations: 0.5471 MB / 0.7526 GB, free: 190.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004325/2.258, allocations: 357.2 kB / 0.7529 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/2.258, allocations: 3.984 kB / 0.7529 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/2.258, allocations: 7.938 kB / 0.7529 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/2.259, allocations: 0.9662 MB / 0.7539 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/2.259, allocations: 0 / 0.7539 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/2.26, allocations: 57.19 kB / 0.7539 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/2.26, allocations: 113.9 kB / 0.754 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/2.26, allocations: 10.36 kB / 0.754 GB, free: 189.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003607/2.26, allocations: 0.6287 MB / 0.7546 GB, free: 189.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/2.26, allocations: 2.906 kB / 0.7546 GB, free: 189.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008123/2.261, allocations: 0.6515 MB / 0.7553 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.106e-05/2.261, allocations: 134.5 kB / 0.7554 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/2.261, allocations: 12 kB / 0.7554 GB, free: 189 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001866/2.262, allocations: 21.25 kB / 0.7554 GB, free: 188.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/2.262, allocations: 36.05 kB / 0.7555 GB, free: 188.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/2.262, allocations: 10.06 kB / 0.7555 GB, free: 188.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001918/2.262, allocations: 221.6 kB / 0.7557 GB, free: 188.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.262, allocations: 0 / 0.7557 GB, free: 188.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002909/2.265, allocations: 1.226 MB / 0.7569 GB, free: 187.8 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.006043/2.271, allocations: 2.845 MB / 0.7597 GB, free: 185.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008496/2.272, allocations: 473 kB / 0.7601 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/2.272, allocations: 0 / 0.7601 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/2.272, allocations: 166.3 kB / 0.7603 GB, free: 184.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007207/2.273, allocations: 135.7 kB / 0.7604 GB, free: 184.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/2.278, allocations: 3.859 MB / 0.7642 GB, free: 180.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/2.278, allocations: 0.8046 MB / 0.765 GB, free: 179.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001345/2.278, allocations: 33.53 kB / 0.765 GB, free: 179.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/2.278, allocations: 135.4 kB / 0.7651 GB, free: 179.6 MB / 0.5919 GB Notification: Performance of SimCode: time 4.21e-07/2.278, allocations: 0 / 0.7651 GB, free: 179.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08174/2.36, allocations: 50.24 MB / 0.8142 GB, free: 130.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/16.59, allocations: 4.578 kB / 0.8142 GB, free: 130.1 MB / 0.5919 GB " [Timeout remaining time 643] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.625537240004633] Failed to read output from testmodel.py, exit status != 0: 16.87448685101117 16.883919126 15.0166726 Calling exit ...