Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8672/0.8672, allocations: 152.6 MB / 169.6 MB, free: 14.93 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005315/0.0005315, allocations: 21.39 kB / 245.6 MB, free: 15.58 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06918/0.06971, allocations: 33.05 MB / 278.7 MB, free: 0.5938 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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve): time 1.848/1.918, allocations: 301.5 MB / 0.5666 GB, free: 2.258 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6107/2.529, allocations: 188.4 MB / 0.7506 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/2.529, allocations: 7.469 kB / 0.7506 GB, free: 15.29 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:56:3-57:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:58:3-59:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002428/2.53, allocations: 67.31 kB / 0.7506 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003891/2.53, allocations: 151.7 kB / 0.7508 GB, free: 15.27 MB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03323/2.563, allocations: 11.72 MB / 0.7622 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007203/2.564, allocations: 491.8 kB / 0.7627 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/2.564, allocations: 208.7 kB / 0.7629 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/2.564, allocations: 203.3 kB / 0.7631 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/2.565, allocations: 221.7 kB / 0.7633 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/2.565, allocations: 47.47 kB / 0.7634 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04011/2.605, allocations: 19.94 MB / 0.7828 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002662/2.605, allocations: 96.45 kB / 0.7829 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003272/2.605, allocations: 218.9 kB / 0.7831 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02874/2.634, allocations: 9.847 MB / 0.7927 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/2.634, allocations: 0 / 0.7927 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.723e-06/2.634, allocations: 0 / 0.7927 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.039e-05/2.634, allocations: 3.938 kB / 0.7927 GB, free: 1.434 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.006009/2.64, allocations: 1.937 MB / 0.7946 GB, free: 56 kB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/2.64, allocations: 10.47 kB / 0.7946 GB, free: 56 kB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/2.64, allocations: 49 kB / 0.7947 GB, free: 32 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/2.641, allocations: 353.8 kB / 0.795 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.294e-05/2.641, allocations: 62.62 kB / 0.7951 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.481e-05/2.641, allocations: 36 kB / 0.7951 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007065/2.642, allocations: 404.9 kB / 0.7955 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/2.642, allocations: 4 kB / 0.7955 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/2.642, allocations: 16 kB / 0.7955 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/2.642, allocations: 11.94 kB / 0.7955 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006034/2.642, allocations: 278.4 kB / 0.7958 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/2.645, allocations: 2.011 MB / 0.7978 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000649/2.645, allocations: 218.5 kB / 0.798 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/2.645, allocations: 77.89 kB / 0.7981 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2751/2.92, allocations: 123.2 MB / 0.9184 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004064/2.921, allocations: 143.2 kB / 0.9185 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.825e-06/2.921, allocations: 0 / 0.9185 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.00119/2.922, allocations: 403.4 kB / 0.9189 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/2.922, allocations: 63.28 kB / 0.919 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/2.923, allocations: 320.4 kB / 0.9193 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/2.923, allocations: 25.7 kB / 0.9193 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/2.923, allocations: 247.7 kB / 0.9196 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.066e-05/2.923, allocations: 78.47 kB / 0.9196 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/2.923, allocations: 73.97 kB / 0.9197 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00018/2.923, allocations: 342.8 kB / 0.92 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/2.923, allocations: 76.62 kB / 0.9201 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/2.924, allocations: 178.1 kB / 0.9203 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/2.924, allocations: 261.8 kB / 0.9205 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/2.924, allocations: 4 kB / 0.9205 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009606/2.925, allocations: 394.1 kB / 0.9209 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/2.925, allocations: 12.09 kB / 0.9209 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/2.925, allocations: 4 kB / 0.9209 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/2.926, allocations: 161.5 kB / 0.9211 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/2.926, allocations: 59.84 kB / 0.9211 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/2.929, allocations: 2.38 MB / 0.9234 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/2.929, allocations: 43.72 kB / 0.9235 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/2.929, allocations: 19.98 kB / 0.9235 GB, free: 13.69 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002255/2.93, allocations: 161.6 kB / 0.9237 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/2.93, allocations: 35.75 kB / 0.9237 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007861/2.931, allocations: 317.9 kB / 0.924 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/2.931, allocations: 0 / 0.924 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/2.931, allocations: 7.938 kB / 0.924 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/2.931, allocations: 0 / 0.924 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004908/2.931, allocations: 396.1 kB / 0.9244 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/2.931, allocations: 3.938 kB / 0.9244 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/2.931, allocations: 51.91 kB / 0.9244 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/2.932, allocations: 64.8 kB / 0.9245 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/2.932, allocations: 12.8 kB / 0.9245 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005011/2.932, allocations: 0.5601 MB / 0.9251 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/2.932, allocations: 0 / 0.9251 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008529/2.933, allocations: 388.4 kB / 0.9254 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/2.933, allocations: 124.9 kB / 0.9255 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/2.933, allocations: 7.953 kB / 0.9256 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/2.934, allocations: 11.98 kB / 0.9256 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.836e-05/2.934, allocations: 31.95 kB / 0.9256 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/2.934, allocations: 8 kB / 0.9256 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002886/2.934, allocations: 235.2 kB / 0.9258 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of sort global known variables: time 9.1e-08/2.934, allocations: 0 / 0.9258 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004604/2.938, allocations: 1.488 MB / 0.9273 GB, free: 9.691 MB / 0.7481 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.008301/2.947, allocations: 2.234 MB / 0.9295 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001036/2.948, allocations: 347 kB / 0.9298 GB, free: 7.355 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/2.948, allocations: 4.25 kB / 0.9298 GB, free: 7.352 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003187/2.948, allocations: 99.88 kB / 0.9299 GB, free: 7.254 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/2.949, allocations: 76.72 kB / 0.93 GB, free: 7.184 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/2.95, allocations: 0.8052 MB / 0.9308 GB, free: 6.355 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/2.951, allocations: 0.8029 MB / 0.9315 GB, free: 5.523 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/2.951, allocations: 39.42 kB / 0.9316 GB, free: 5.484 MB / 0.7481 GB Notification: Performance of SimCode: time 4.51e-07/2.951, allocations: 0 / 0.9316 GB, free: 5.484 MB / 0.7481 GB Notification: Performance of Templates: time 0.05911/3.01, allocations: 30.98 MB / 0.9618 GB, free: 6.52 MB / 0.7794 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 14.531598054105416] Failed to read output from testmodel.py, exit status != 0: 3.403843387030065 3.413128673 0.7768509440000001 Calling exit ...