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.5764/0.5764, allocations: 120.4 MB / 139.5 MB, free: 12.99 MB / 138.7 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 3.086e-06/3.086e-06, allocations: 0 / 216.7 MB, free: 8.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.595e-05, allocations: 2.281 kB / 216.7 MB, free: 8.609 MB / 202.7 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.036/1.036, allocations: 254.5 MB / 471.2 MB, free: 9.445 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0281/1.064, allocations: 30.88 MB / 0.4903 GB, free: 10.44 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003258/1.065, allocations: 7.938 kB / 0.4904 GB, free: 10.43 MB / 458.7 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.0005316/1.065, allocations: 123.2 kB / 0.4905 GB, free: 10.31 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003333/1.066, allocations: 158.8 kB / 0.4906 GB, free: 10.15 MB / 458.7 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.02184/1.087, allocations: 9.959 MB / 0.5003 GB, free: 156 kB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006885/1.088, allocations: 466.5 kB / 0.5008 GB, free: 15.7 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002185/1.088, allocations: 128.7 kB / 0.5009 GB, free: 15.57 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004446/1.089, allocations: 287.1 kB / 0.5012 GB, free: 15.29 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/1.089, allocations: 127.6 kB / 0.5013 GB, free: 15.17 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/1.089, allocations: 28 kB / 0.5013 GB, free: 15.14 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2842/1.373, allocations: 16.79 MB / 0.5177 GB, free: 15.22 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/1.373, allocations: 71.78 kB / 0.5178 GB, free: 15.22 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/1.374, allocations: 114.8 kB / 0.5179 GB, free: 15.22 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02292/1.397, allocations: 10.9 MB / 0.5286 GB, free: 15.12 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.397, allocations: 0 / 0.5286 GB, free: 15.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.384e-06/1.397, allocations: 1.844 kB / 0.5286 GB, free: 15.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/1.397, allocations: 0 / 0.5286 GB, free: 15.12 MB / 474.7 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.006247/1.403, allocations: 1.552 MB / 0.5301 GB, free: 14.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.403, allocations: 13.91 kB / 0.5301 GB, free: 14.25 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.42e-05/1.403, allocations: 70.27 kB / 0.5302 GB, free: 14.21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/1.403, allocations: 53.34 kB / 0.5302 GB, free: 14.18 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/1.403, allocations: 203.2 kB / 0.5304 GB, free: 14.03 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-05/1.403, allocations: 69.06 kB / 0.5305 GB, free: 13.96 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/1.403, allocations: 25.59 kB / 0.5305 GB, free: 13.96 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/1.404, allocations: 354.9 kB / 0.5308 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/1.404, allocations: 9.016 kB / 0.5308 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/1.404, allocations: 11.45 kB / 0.5308 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/1.404, allocations: 12.12 kB / 0.5309 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/1.404, allocations: 229.3 kB / 0.5311 GB, free: 13.88 MB / 474.7 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.01123/1.415, allocations: 6.087 MB / 0.537 GB, free: 13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/1.416, allocations: 252 kB / 0.5373 GB, free: 12.96 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/1.416, allocations: 122.5 kB / 0.5374 GB, free: 12.95 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08146/1.497, allocations: 48.41 MB / 0.5847 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/1.498, allocations: 227.8 kB / 0.5849 GB, free: 5.055 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 2.645e-06/1.498, allocations: 4.75 kB / 0.5849 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of matching and sorting (n=48): time 0.0008502/1.499, allocations: 489.2 kB / 0.5853 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/1.499, allocations: 92.27 kB / 0.5854 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/1.499, allocations: 253.8 kB / 0.5857 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/1.499, allocations: 29.69 kB / 0.5857 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.919e-05/1.499, allocations: 169.1 kB / 0.5859 GB, free: 4.004 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/1.499, allocations: 160.5 kB / 0.586 GB, free: 3.852 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/1.499, allocations: 61.92 kB / 0.5861 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.351e-05/1.5, allocations: 350.8 kB / 0.5864 GB, free: 3.434 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/1.5, allocations: 112.7 kB / 0.5865 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/1.5, allocations: 161.1 kB / 0.5867 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/1.5, allocations: 295.3 kB / 0.587 GB, free: 2.855 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/1.5, allocations: 4 kB / 0.587 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000511/1.501, allocations: 440.4 kB / 0.5874 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/1.501, allocations: 8 kB / 0.5874 GB, free: 2.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.501, allocations: 0 / 0.5874 GB, free: 2.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005633/1.501, allocations: 185.7 kB / 0.5876 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.384e-05/1.501, allocations: 30.78 kB / 0.5876 GB, free: 2.195 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/1.503, allocations: 2.314 MB / 0.5898 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/1.503, allocations: 47.16 kB / 0.5899 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/1.503, allocations: 11.98 kB / 0.5899 GB, free: 15.71 MB / 0.5105 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.0001488/1.503, allocations: 155 kB / 0.5901 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/1.503, allocations: 31.77 kB / 0.5901 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005361/1.504, allocations: 0.5689 MB / 0.5906 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003202/1.504, allocations: 355.4 kB / 0.591 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/1.504, allocations: 7.656 kB / 0.591 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/1.504, allocations: 0 / 0.591 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008888/1.505, allocations: 0.9225 MB / 0.5919 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/1.505, allocations: 0.6875 kB / 0.5919 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/1.505, allocations: 57.33 kB / 0.5919 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/1.505, allocations: 108.3 kB / 0.592 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/1.505, allocations: 4 kB / 0.592 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003229/1.506, allocations: 0.6475 MB / 0.5927 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.506, allocations: 3.938 kB / 0.5927 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006997/1.506, allocations: 0.6446 MB / 0.5933 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/1.506, allocations: 55.69 kB / 0.5934 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/1.506, allocations: 11.94 kB / 0.5934 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.417e-05/1.507, allocations: 20.05 kB / 0.5934 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.349e-05/1.507, allocations: 39.94 kB / 0.5934 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/1.507, allocations: 4 kB / 0.5934 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001549/1.507, allocations: 223.1 kB / 0.5937 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8e-08/1.507, allocations: 0 / 0.5937 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004562/1.511, allocations: 1.228 MB / 0.5949 GB, free: 10.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * 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.007207/1.519, allocations: 3.018 MB / 0.5978 GB, free: 7.719 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008632/1.519, allocations: 475.5 kB / 0.5983 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.519, allocations: 0 / 0.5983 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002472/1.52, allocations: 172.8 kB / 0.5984 GB, free: 7.078 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005426/1.52, allocations: 136.9 kB / 0.5985 GB, free: 6.953 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/1.526, allocations: 3.813 MB / 0.6023 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/1.526, allocations: 204.3 kB / 0.6025 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001355/1.526, allocations: 36.61 kB / 0.6025 GB, free: 2.812 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/1.526, allocations: 136.5 kB / 0.6026 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/1.526, allocations: 0 / 0.6026 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07626/1.602, allocations: 51.2 MB / 0.6526 GB, free: 15.86 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/13.15, allocations: 15.06 kB / 0.6526 GB, free: 15.85 MB / 0.573 GB " [Timeout remaining time 646] (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 os._exit(0), Time elapsed: 15.292039657011628] Failed to read output from testmodel.py, exit status != 0: 13.541167431510985 13.447713922 12.048086082 Calling exit ...