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.4866/0.4866, allocations: 111.6 MB / 131.2 MB, free: 4.613 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 2.344e-06/2.344e-06, allocations: 0 / 176.1 MB, free: 9.25 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.888e-05, allocations: 5.922 kB / 176.1 MB, free: 9.246 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.045/1.045, allocations: 257.2 MB / 433.3 MB, free: 196 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02702/1.072, allocations: 33.41 MB / 466.7 MB, free: 14.66 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/1.073, allocations: 0 / 466.7 MB, free: 14.66 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.0003583/1.073, allocations: 135.2 kB / 466.8 MB, free: 14.53 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/1.073, allocations: 154.9 kB / 467 MB, free: 14.38 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.01605/1.089, allocations: 9.959 MB / 477 MB, free: 4.371 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003851/1.09, allocations: 470.5 kB / 477.4 MB, free: 3.91 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/1.09, allocations: 144.7 kB / 477.6 MB, free: 3.766 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/1.09, allocations: 283.2 kB / 477.8 MB, free: 3.488 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/1.09, allocations: 131.6 kB / 478 MB, free: 3.359 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/1.09, allocations: 24 kB / 478 MB, free: 3.336 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1876/1.278, allocations: 16.78 MB / 494.8 MB, free: 8.203 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/1.278, allocations: 74.28 kB / 494.8 MB, free: 8.203 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/1.278, allocations: 112 kB / 494.9 MB, free: 8.203 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/1.29, allocations: 10.81 MB / 0.4939 GB, free: 4.254 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/1.29, allocations: 0 / 0.4939 GB, free: 4.254 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.29, allocations: 0.8125 kB / 0.4939 GB, free: 4.254 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/1.29, allocations: 0 / 0.4939 GB, free: 4.254 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.002782/1.293, allocations: 1.656 MB / 0.4955 GB, free: 3.066 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/1.293, allocations: 15.05 kB / 0.4955 GB, free: 3.062 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/1.293, allocations: 67.47 kB / 0.4956 GB, free: 3.031 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/1.294, allocations: 219.3 kB / 0.4958 GB, free: 2.836 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.647e-05/1.294, allocations: 69.03 kB / 0.4959 GB, free: 2.766 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/1.294, allocations: 28.34 kB / 0.4959 GB, free: 2.758 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/1.294, allocations: 296.9 kB / 0.4962 GB, free: 2.535 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/1.294, allocations: 0 / 0.4962 GB, free: 2.535 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/1.294, allocations: 10.62 kB / 0.4962 GB, free: 2.527 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/1.294, allocations: 17.95 kB / 0.4962 GB, free: 2.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/1.294, allocations: 129.6 kB / 0.4963 GB, free: 2.48 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.009097/1.303, allocations: 6.329 MB / 0.5025 GB, free: 15.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/1.304, allocations: 177.4 kB / 0.5027 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/1.304, allocations: 68.19 kB / 0.5027 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08117/1.385, allocations: 48.63 MB / 0.5502 GB, free: 15.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/1.385, allocations: 183.5 kB / 0.5504 GB, free: 15.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=48): time 1.423e-06/1.385, allocations: 0 / 0.5504 GB, free: 15.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=48): time 0.0006449/1.386, allocations: 344.3 kB / 0.5507 GB, free: 14.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/1.386, allocations: 84.2 kB / 0.5508 GB, free: 14.57 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/1.386, allocations: 280.2 kB / 0.5511 GB, free: 14.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/1.386, allocations: 25.7 kB / 0.5511 GB, free: 14.24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/1.386, allocations: 219.7 kB / 0.5513 GB, free: 14.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/1.386, allocations: 162.9 kB / 0.5515 GB, free: 13.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/1.386, allocations: 75.56 kB / 0.5515 GB, free: 13.78 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/1.387, allocations: 0.5157 MB / 0.552 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.964e-05/1.387, allocations: 56.73 kB / 0.5521 GB, free: 13.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/1.387, allocations: 113.9 kB / 0.5522 GB, free: 13.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/1.387, allocations: 206.1 kB / 0.5524 GB, free: 12.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.387, allocations: 0 / 0.5524 GB, free: 12.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006789/1.388, allocations: 334.7 kB / 0.5527 GB, free: 12.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/1.388, allocations: 7.938 kB / 0.5527 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.388, allocations: 0 / 0.5527 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/1.388, allocations: 167.1 kB / 0.5529 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.661e-05/1.388, allocations: 19.98 kB / 0.5529 GB, free: 12.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/1.39, allocations: 3.034 MB / 0.5559 GB, free: 9.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/1.39, allocations: 32.38 kB / 0.5559 GB, free: 9.129 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/1.39, allocations: 8 kB / 0.5559 GB, free: 9.121 MB / 490.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.0001043/1.39, allocations: 172.1 kB / 0.5561 GB, free: 8.945 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/1.39, allocations: 47.69 kB / 0.5561 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004249/1.39, allocations: 470.2 kB / 0.5566 GB, free: 8.387 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002472/1.391, allocations: 262.6 kB / 0.5568 GB, free: 8.121 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/1.391, allocations: 4.562 kB / 0.5568 GB, free: 8.117 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.391, allocations: 0 / 0.5568 GB, free: 8.117 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007464/1.391, allocations: 0.7873 MB / 0.5576 GB, free: 7.305 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/1.391, allocations: 4.625 kB / 0.5576 GB, free: 7.301 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/1.392, allocations: 55.53 kB / 0.5577 GB, free: 7.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/1.392, allocations: 95.55 kB / 0.5577 GB, free: 7.152 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/1.392, allocations: 4 kB / 0.5577 GB, free: 7.148 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003743/1.392, allocations: 0.8542 MB / 0.5586 GB, free: 6.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.392, allocations: 0 / 0.5586 GB, free: 6.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/1.393, allocations: 0.5341 MB / 0.5591 GB, free: 5.715 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/1.393, allocations: 55.72 kB / 0.5592 GB, free: 5.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/1.393, allocations: 11.94 kB / 0.5592 GB, free: 5.648 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/1.393, allocations: 17.23 kB / 0.5592 GB, free: 5.633 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/1.393, allocations: 32.88 kB / 0.5592 GB, free: 5.602 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/1.393, allocations: 15.94 kB / 0.5592 GB, free: 5.586 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001177/1.393, allocations: 217.1 kB / 0.5594 GB, free: 5.371 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/1.393, allocations: 0 / 0.5594 GB, free: 5.371 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002365/1.396, allocations: 1.235 MB / 0.5606 GB, free: 4.133 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.003085/1.399, allocations: 1.913 MB / 0.5625 GB, free: 2.453 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005551/1.399, allocations: 439.4 kB / 0.5629 GB, free: 2.004 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.399, allocations: 0 / 0.5629 GB, free: 2.004 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/1.399, allocations: 154.8 kB / 0.5631 GB, free: 1.852 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004387/1.4, allocations: 126.6 kB / 0.5632 GB, free: 1.734 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/1.401, allocations: 0.7676 MB / 0.564 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.959e-05/1.401, allocations: 109.8 kB / 0.5641 GB, free: 0.832 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.004e-05/1.401, allocations: 25.34 kB / 0.5641 GB, free: 0.8125 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.27e-05/1.401, allocations: 36.48 kB / 0.5641 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of SimCode: time 5.41e-07/1.401, allocations: 0 / 0.5641 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of Templates: time 0.03922/1.44, allocations: 44.81 MB / 0.6079 GB, free: 4.305 MB / 0.5261 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.106096143834293]