Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.7789/0.7789, allocations: 111.6 MB / 131 MB, free: 5.082 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 175.7 MB, free: 9.516 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.602e-05, allocations: 5.125 kB / 175.7 MB, free: 9.512 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.642/1.642, allocations: 254.6 MB / 430.3 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05089/1.693, allocations: 30.92 MB / 461.2 MB, free: 1.496 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/1.693, allocations: 0 / 461.2 MB, free: 1.496 MB / 410.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.0005743/1.694, allocations: 119.3 kB / 461.3 MB, free: 1.379 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004991/1.694, allocations: 162.8 kB / 461.5 MB, free: 1.219 MB / 410.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.03143/1.726, allocations: 9.958 MB / 471.5 MB, free: 7.227 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000864/1.727, allocations: 474.5 kB / 471.9 MB, free: 6.762 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/1.727, allocations: 136.8 kB / 472.1 MB, free: 6.629 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006102/1.728, allocations: 279.2 kB / 472.3 MB, free: 6.355 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000317/1.728, allocations: 119.7 kB / 472.4 MB, free: 6.238 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 6.033e-05/1.728, allocations: 28 kB / 472.5 MB, free: 6.211 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03518/1.763, allocations: 16.8 MB / 489.3 MB, free: 5.387 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/1.763, allocations: 75.69 kB / 489.3 MB, free: 5.312 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000265/1.764, allocations: 119.7 kB / 489.5 MB, free: 5.195 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2114/1.975, allocations: 10.9 MB / 0.4886 GB, free: 22.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/1.975, allocations: 1.188 kB / 0.4886 GB, free: 22.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.383e-06/1.975, allocations: 2.734 kB / 0.4886 GB, free: 22.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/1.975, allocations: 0 / 0.4886 GB, free: 22.39 MB / 442.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.006599/1.982, allocations: 1.55 MB / 0.4902 GB, free: 21.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/1.982, allocations: 14.05 kB / 0.4902 GB, free: 21.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/1.982, allocations: 64.89 kB / 0.4902 GB, free: 21.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/1.982, allocations: 207.5 kB / 0.4904 GB, free: 21.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/1.982, allocations: 76.16 kB / 0.4905 GB, free: 21.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.253e-05/1.982, allocations: 24.69 kB / 0.4905 GB, free: 21.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000535/1.983, allocations: 356.8 kB / 0.4909 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/1.983, allocations: 1.531 kB / 0.4909 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/1.983, allocations: 11.03 kB / 0.4909 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/1.983, allocations: 15.86 kB / 0.4909 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003904/1.983, allocations: 230.9 kB / 0.4911 GB, free: 21.18 MB / 442.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.01874/2.002, allocations: 6.047 MB / 0.497 GB, free: 20.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006197/2.003, allocations: 239.6 kB / 0.4972 GB, free: 20.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/2.003, allocations: 127.6 kB / 0.4974 GB, free: 20.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1628/2.166, allocations: 48.48 MB / 0.5447 GB, free: 1.133 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004967/2.166, allocations: 227.2 kB / 0.5449 GB, free: 0.957 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 1.993e-06/2.166, allocations: 0 / 0.5449 GB, free: 0.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=48): time 0.001321/2.167, allocations: 495.1 kB / 0.5454 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/2.168, allocations: 85.09 kB / 0.5455 GB, free: 0.5117 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/2.168, allocations: 223.5 kB / 0.5457 GB, free: 324 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/2.168, allocations: 29.45 kB / 0.5457 GB, free: 292 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/2.168, allocations: 178.1 kB / 0.5459 GB, free: 140 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/2.168, allocations: 152.5 kB / 0.546 GB, free: 4 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/2.168, allocations: 75.69 kB / 0.5461 GB, free: 15.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002131/2.169, allocations: 341.2 kB / 0.5464 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/2.169, allocations: 113.5 kB / 0.5465 GB, free: 15.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/2.169, allocations: 164.4 kB / 0.5467 GB, free: 15.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004955/2.17, allocations: 299.2 kB / 0.547 GB, free: 15.23 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/2.17, allocations: 0 / 0.547 GB, free: 15.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009215/2.17, allocations: 438.6 kB / 0.5474 GB, free: 14.92 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/2.171, allocations: 9.5 kB / 0.5474 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/2.171, allocations: 5.5 kB / 0.5474 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/2.172, allocations: 187.6 kB / 0.5476 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/2.172, allocations: 31.16 kB / 0.5476 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/2.175, allocations: 2.305 MB / 0.5499 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/2.175, allocations: 40.17 kB / 0.5499 GB, free: 12.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/2.175, allocations: 7.984 kB / 0.5499 GB, free: 12.45 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.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.0002047/2.175, allocations: 151.5 kB / 0.5501 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.661e-05/2.175, allocations: 39.19 kB / 0.5501 GB, free: 12.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/2.176, allocations: 0.5595 MB / 0.5506 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006017/2.177, allocations: 369 kB / 0.551 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/2.177, allocations: 0 / 0.551 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.177, allocations: 0 / 0.551 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/2.179, allocations: 0.8629 MB / 0.5518 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/2.179, allocations: 0 / 0.5518 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003112/2.179, allocations: 56.14 kB / 0.5519 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004035/2.179, allocations: 112.7 kB / 0.552 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/2.179, allocations: 12 kB / 0.552 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000667/2.18, allocations: 0.6338 MB / 0.5526 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/2.18, allocations: 3.984 kB / 0.5526 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/2.181, allocations: 0.6575 MB / 0.5533 GB, free: 9.367 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/2.181, allocations: 51.69 kB / 0.5533 GB, free: 9.316 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/2.181, allocations: 20.08 kB / 0.5533 GB, free: 9.297 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/2.182, allocations: 28.09 kB / 0.5534 GB, free: 9.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.57e-05/2.182, allocations: 35.12 kB / 0.5534 GB, free: 9.238 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/2.182, allocations: 8 kB / 0.5534 GB, free: 9.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002345/2.182, allocations: 197.2 kB / 0.5536 GB, free: 9.035 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/2.182, allocations: 3.172 kB / 0.5536 GB, free: 9.035 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005442/2.187, allocations: 1.235 MB / 0.5548 GB, free: 7.797 MB / 474.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.008428/2.196, allocations: 1.905 MB / 0.5567 GB, free: 6.125 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/2.197, allocations: 477.5 kB / 0.5571 GB, free: 5.645 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/2.197, allocations: 4.25 kB / 0.5571 GB, free: 5.641 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/2.198, allocations: 173.4 kB / 0.5573 GB, free: 5.48 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008273/2.198, allocations: 130.8 kB / 0.5574 GB, free: 5.355 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/2.2, allocations: 0.7962 MB / 0.5582 GB, free: 4.555 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/2.2, allocations: 208.3 kB / 0.5584 GB, free: 4.328 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0001275/2.2, allocations: 29.25 kB / 0.5584 GB, free: 4.301 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.611e-05/2.2, allocations: 25.59 kB / 0.5585 GB, free: 4.277 MB / 474.7 MB Notification: Performance of SimCode: time 4.01e-07/2.2, allocations: 3.75 kB / 0.5585 GB, free: 4.277 MB / 474.7 MB Notification: Performance of Templates: time 0.07337/2.274, allocations: 44.11 MB / 0.6015 GB, free: 8.391 MB / 0.5105 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.92234339704737]