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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.7621/0.7621, allocations: 111.6 MB / 131 MB, free: 5.098 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 1.923e-06/1.923e-06, allocations: 0 / 175.7 MB, free: 9.453 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.6e-05, allocations: 5.047 kB / 175.7 MB, free: 9.449 MB / 170.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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve): time 1.62/1.62, allocations: 254.8 MB / 430.5 MB, free: 320 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.4028/2.023, allocations: 165.2 MB / 0.5818 GB, free: 7.891 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/2.023, allocations: 15.88 kB / 0.5818 GB, free: 7.875 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:39:3-40:78: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 master/Fluid/BoundaryConditions/SinkP.mo:32:3-33:80: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 master/Fluid/PressureLosses/DynamicCheckValve.mo:46:3-47:80: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 master/Fluid/PressureLosses/DynamicCheckValve.mo:48:3-49:78: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.0002446/2.023, allocations: 55.45 kB / 0.5819 GB, free: 7.82 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006641/2.024, allocations: 162.7 kB / 0.582 GB, free: 7.66 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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 master/Properties/Fluid/derDensity_derP_derh.mo:56:5-56:88: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.03128/2.055, allocations: 11.76 MB / 0.5935 GB, free: 11.87 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0007499/2.056, allocations: 0.5025 MB / 0.594 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/2.056, allocations: 225.1 kB / 0.5942 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00049/2.057, allocations: 315.3 kB / 0.5945 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/2.057, allocations: 171.5 kB / 0.5947 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 6.831e-05/2.057, allocations: 40 kB / 0.5947 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03619/2.093, allocations: 18.65 MB / 0.6129 GB, free: 7.949 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002128/2.094, allocations: 123.6 kB / 0.613 GB, free: 7.828 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.000262/2.094, allocations: 151.6 kB / 0.6132 GB, free: 7.68 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.02542/2.119, allocations: 12.45 MB / 0.6253 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/2.119, allocations: 0 / 0.6253 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.703e-06/2.119, allocations: 0 / 0.6253 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.905e-06/2.119, allocations: 4 kB / 0.6254 GB, free: 11.2 MB / 0.5417 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.005045/2.124, allocations: 1.916 MB / 0.6272 GB, free: 9.234 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/2.124, allocations: 15.98 kB / 0.6272 GB, free: 9.219 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003071/2.125, allocations: 104.1 kB / 0.6273 GB, free: 9.117 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/2.125, allocations: 300.8 kB / 0.6276 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/2.125, allocations: 96.39 kB / 0.6277 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/2.125, allocations: 36 kB / 0.6277 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007859/2.126, allocations: 408.9 kB / 0.6281 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/2.126, allocations: 0.625 kB / 0.6281 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.217e-05/2.126, allocations: 16 kB / 0.6282 GB, free: 8.215 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/2.126, allocations: 11.94 kB / 0.6282 GB, free: 8.203 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006394/2.127, allocations: 286.4 kB / 0.6284 GB, free: 7.926 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/2.129, allocations: 1.222 MB / 0.6296 GB, free: 6.652 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006754/2.129, allocations: 217.8 kB / 0.6298 GB, free: 6.434 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/2.13, allocations: 72.83 kB / 0.6299 GB, free: 6.359 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2487/2.378, allocations: 69.18 MB / 0.6975 GB, free: 1.102 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/2.379, allocations: 139.2 kB / 0.6976 GB, free: 0.9531 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=21): time 6.483e-06/2.379, allocations: 4 kB / 0.6976 GB, free: 0.9492 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21): time 0.001134/2.38, allocations: 343.3 kB / 0.6979 GB, free: 0.6055 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/2.38, allocations: 51.41 kB / 0.698 GB, free: 0.543 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004947/2.38, allocations: 353.5 kB / 0.6983 GB, free: 192 kB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/2.38, allocations: 33.7 kB / 0.6983 GB, free: 152 kB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/2.381, allocations: 248.6 kB / 0.6986 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.139e-05/2.381, allocations: 75.33 kB / 0.6987 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001362/2.381, allocations: 85.91 kB / 0.6987 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002013/2.381, allocations: 338.8 kB / 0.6991 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/2.381, allocations: 80.61 kB / 0.6991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/2.382, allocations: 182.1 kB / 0.6993 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004935/2.382, allocations: 262 kB / 0.6996 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/2.382, allocations: 4 kB / 0.6996 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009916/2.383, allocations: 394.4 kB / 0.6999 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/2.383, allocations: 8 kB / 0.6999 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/2.383, allocations: 4 kB / 0.7 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/2.384, allocations: 171.4 kB / 0.7001 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/2.384, allocations: 51.91 kB / 0.7002 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003051/2.387, allocations: 2.262 MB / 0.7024 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/2.388, allocations: 47.69 kB / 0.7024 GB, free: 11.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/2.388, allocations: 16 kB / 0.7024 GB, free: 11.71 MB / 0.6198 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.0002236/2.388, allocations: 169.8 kB / 0.7026 GB, free: 11.53 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/2.388, allocations: 47.86 kB / 0.7026 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008591/2.389, allocations: 314.7 kB / 0.7029 GB, free: 11.17 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/2.389, allocations: 4 kB / 0.7029 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/2.389, allocations: 0 / 0.7029 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/2.389, allocations: 0 / 0.7029 GB, free: 11.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/2.389, allocations: 281 kB / 0.7032 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/2.389, allocations: 4 kB / 0.7032 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/2.39, allocations: 47.97 kB / 0.7033 GB, free: 10.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004646/2.39, allocations: 80.58 kB / 0.7033 GB, free: 10.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/2.39, allocations: 8 kB / 0.7033 GB, free: 10.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005695/2.391, allocations: 0.564 MB / 0.7039 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/2.391, allocations: 4.031 kB / 0.7039 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009374/2.392, allocations: 398 kB / 0.7043 GB, free: 9.719 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/2.392, allocations: 55.8 kB / 0.7043 GB, free: 9.664 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.87e-05/2.392, allocations: 11.89 kB / 0.7043 GB, free: 9.652 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/2.392, allocations: 15.98 kB / 0.7044 GB, free: 9.637 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.413e-05/2.392, allocations: 27.95 kB / 0.7044 GB, free: 9.609 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/2.392, allocations: 11.92 kB / 0.7044 GB, free: 9.598 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003109/2.392, allocations: 243.2 kB / 0.7046 GB, free: 9.363 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/2.392, allocations: 0 / 0.7046 GB, free: 9.363 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003695/2.396, allocations: 1.492 MB / 0.7061 GB, free: 7.867 MB / 0.6198 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 (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.006234/2.402, allocations: 2.422 MB / 0.7085 GB, free: 5.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008656/2.403, allocations: 338.4 kB / 0.7088 GB, free: 5.086 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/2.403, allocations: 4 kB / 0.7088 GB, free: 5.082 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003087/2.404, allocations: 99.88 kB / 0.7089 GB, free: 4.984 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/2.404, allocations: 76.31 kB / 0.7089 GB, free: 4.914 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/2.406, allocations: 0.7584 MB / 0.7097 GB, free: 4.121 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/2.406, allocations: 215.1 kB / 0.7099 GB, free: 3.891 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001716/2.406, allocations: 46.89 kB / 0.7099 GB, free: 3.848 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.862e-05/2.406, allocations: 36.5 kB / 0.71 GB, free: 3.812 MB / 0.6198 GB Notification: Performance of SimCode: time 4.21e-07/2.406, allocations: 0 / 0.71 GB, free: 3.812 MB / 0.6198 GB Notification: Performance of Templates: time 0.1906/2.597, allocations: 47.7 MB / 0.7566 GB, free: 289.5 MB / 0.6355 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.052559194969945]