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.482/0.482, allocations: 111.6 MB / 131.4 MB, free: 4.434 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.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 176.5 MB, free: 8.941 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.89e-05/2.135e-05, allocations: 9.047 kB / 176.5 MB, free: 8.934 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.Examples.SimpleExamples.TestDynamicCheckValve): time 1.002/1.002, allocations: 257.3 MB / 433.8 MB, free: 8 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02668/1.029, allocations: 32.8 MB / 466.6 MB, free: 15.09 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/1.029, allocations: 4 kB / 466.6 MB, free: 15.08 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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:19:3-20:80: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:36:3-37:80: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:38:3-39:78: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.0003607/1.029, allocations: 127.2 kB / 466.8 MB, free: 14.96 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002579/1.029, allocations: 150.8 kB / 466.9 MB, free: 14.81 MB / 426.7 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.01781/1.047, allocations: 9.974 MB / 476.9 MB, free: 4.789 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006605/1.048, allocations: 466.5 kB / 477.3 MB, free: 4.332 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/1.048, allocations: 140.8 kB / 477.5 MB, free: 4.191 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003368/1.048, allocations: 287.1 kB / 477.8 MB, free: 3.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/1.049, allocations: 127.6 kB / 477.9 MB, free: 3.785 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/1.049, allocations: 24 kB / 477.9 MB, free: 3.762 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1896/1.238, allocations: 16.78 MB / 494.7 MB, free: 8.734 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/1.238, allocations: 67.77 kB / 494.8 MB, free: 8.734 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/1.238, allocations: 112.7 kB / 494.9 MB, free: 8.734 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01663/1.255, allocations: 10.81 MB / 0.4938 GB, free: 5.105 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/1.255, allocations: 0 / 0.4938 GB, free: 5.105 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.353e-06/1.255, allocations: 0 / 0.4938 GB, free: 5.105 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/1.255, allocations: 1.219 kB / 0.4938 GB, free: 5.105 MB / 426.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.003513/1.259, allocations: 1.643 MB / 0.4954 GB, free: 3.953 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/1.259, allocations: 18.64 kB / 0.4954 GB, free: 3.945 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/1.259, allocations: 61.56 kB / 0.4955 GB, free: 3.918 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/1.259, allocations: 223.4 kB / 0.4957 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/1.259, allocations: 70.12 kB / 0.4958 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.113e-05/1.259, allocations: 26.22 kB / 0.4958 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/1.259, allocations: 282.3 kB / 0.4961 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.259, allocations: 2.719 kB / 0.4961 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/1.259, allocations: 10.94 kB / 0.4961 GB, free: 3.434 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/1.259, allocations: 11.91 kB / 0.4961 GB, free: 3.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/1.259, allocations: 100.1 kB / 0.4962 GB, free: 3.406 MB / 426.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.0079/1.267, allocations: 5.588 MB / 0.5017 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/1.268, allocations: 136.3 kB / 0.5018 GB, free: 0.8008 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.969e-05/1.268, allocations: 55.42 kB / 0.5018 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06961/1.337, allocations: 42.33 MB / 0.5432 GB, free: 6.898 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/1.338, allocations: 169 kB / 0.5433 GB, free: 6.73 MB / 474.7 MB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/1.338, allocations: 0 / 0.5433 GB, free: 6.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=48): time 0.0005642/1.338, allocations: 319.1 kB / 0.5436 GB, free: 6.414 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/1.338, allocations: 81.11 kB / 0.5437 GB, free: 6.316 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/1.338, allocations: 271.7 kB / 0.544 GB, free: 6.059 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/1.338, allocations: 29.7 kB / 0.544 GB, free: 6.023 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/1.338, allocations: 220.7 kB / 0.5442 GB, free: 5.809 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.411e-05/1.338, allocations: 169.3 kB / 0.5444 GB, free: 5.652 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.071e-05/1.339, allocations: 74.52 kB / 0.5444 GB, free: 5.582 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/1.339, allocations: 0.5213 MB / 0.545 GB, free: 5.066 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.681e-05/1.339, allocations: 40.7 kB / 0.545 GB, free: 5.027 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.031e-05/1.339, allocations: 114.3 kB / 0.5451 GB, free: 4.902 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/1.339, allocations: 180.4 kB / 0.5453 GB, free: 4.719 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/1.339, allocations: 0.625 kB / 0.5453 GB, free: 4.719 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0003808/1.339, allocations: 324 kB / 0.5456 GB, free: 4.406 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/1.339, allocations: 4.125 kB / 0.5456 GB, free: 4.402 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/1.339, allocations: 11.94 kB / 0.5456 GB, free: 4.391 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/1.34, allocations: 131.2 kB / 0.5457 GB, free: 4.258 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.797e-05/1.34, allocations: 36.27 kB / 0.5458 GB, free: 4.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/1.341, allocations: 2.95 MB / 0.5486 GB, free: 1.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/1.341, allocations: 32.23 kB / 0.5487 GB, free: 1.129 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/1.341, allocations: 4 kB / 0.5487 GB, free: 1.125 MB / 474.7 MB 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.libre,$whenCondition1,$whenCondition2,sourceP1.C.b,puitsP1.C.a,checkValve.C1.a,checkValve.C2.b) * 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 9.695e-05/1.342, allocations: 176.6 kB / 0.5488 GB, free: 0.9414 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/1.342, allocations: 36.61 kB / 0.5489 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003722/1.342, allocations: 454.6 kB / 0.5493 GB, free: 440 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001865/1.342, allocations: 233.8 kB / 0.5495 GB, free: 196 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/1.342, allocations: 0 / 0.5495 GB, free: 196 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/1.342, allocations: 1.688 kB / 0.5495 GB, free: 196 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006799/1.343, allocations: 0.7306 MB / 0.5502 GB, free: 15.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.343, allocations: 0 / 0.5502 GB, free: 15.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/1.343, allocations: 55.36 kB / 0.5503 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/1.343, allocations: 70.67 kB / 0.5504 GB, free: 15.35 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/1.343, allocations: 16 kB / 0.5504 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002937/1.343, allocations: 0.8503 MB / 0.5512 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/1.343, allocations: 0 / 0.5512 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000399/1.344, allocations: 0.4941 MB / 0.5517 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/1.344, allocations: 51.66 kB / 0.5517 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/1.344, allocations: 11.95 kB / 0.5518 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.527e-05/1.344, allocations: 20.05 kB / 0.5518 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/1.344, allocations: 33.44 kB / 0.5518 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/1.344, allocations: 8 kB / 0.5518 GB, free: 13.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 8.904e-05/1.344, allocations: 207.1 kB / 0.552 GB, free: 13.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/1.344, allocations: 3.188 kB / 0.552 GB, free: 13.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002547/1.347, allocations: 1.231 MB / 0.5532 GB, free: 12.41 MB / 490.7 MB 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.003592/1.35, allocations: 1.991 MB / 0.5552 GB, free: 10.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005349/1.351, allocations: 419.8 kB / 0.5556 GB, free: 10.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.351, allocations: 0 / 0.5556 GB, free: 10.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/1.351, allocations: 142 kB / 0.5557 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/1.352, allocations: 130.4 kB / 0.5558 GB, free: 9.957 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/1.353, allocations: 0.7471 MB / 0.5566 GB, free: 9.207 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.88e-05/1.353, allocations: 113.7 kB / 0.5567 GB, free: 9.074 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001066/1.353, allocations: 30.52 kB / 0.5567 GB, free: 9.051 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/1.353, allocations: 154.1 kB / 0.5568 GB, free: 8.898 MB / 490.7 MB Notification: Performance of SimCode: time 1.263e-06/1.353, allocations: 4 kB / 0.5568 GB, free: 8.895 MB / 490.7 MB Notification: Performance of Templates: time 0.04946/1.403, allocations: 51.58 MB / 0.6072 GB, free: 5.574 MB / 0.5261 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.654296287335455]