Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.4846/0.4846, allocations: 111.6 MB / 131.7 MB, free: 5.074 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 176.5 MB, free: 9.48 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.283e-05, allocations: 2.312 kB / 176.5 MB, free: 9.477 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.04/1.04, allocations: 257.2 MB / 433.7 MB, free: 15.81 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.3395/1.38, allocations: 181.6 MB / 0.6009 GB, free: 9.645 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/1.38, allocations: 15.88 kB / 0.6009 GB, free: 9.629 MB / 0.5105 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.0002155/1.38, allocations: 55.44 kB / 0.6009 GB, free: 9.574 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0003574/1.381, allocations: 162.6 kB / 0.6011 GB, free: 9.414 MB / 0.5105 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.02119/1.402, allocations: 11.77 MB / 0.6126 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005334/1.402, allocations: 0.5064 MB / 0.6131 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/1.403, allocations: 217.2 kB / 0.6133 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/1.403, allocations: 315.2 kB / 0.6136 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/1.403, allocations: 163.5 kB / 0.6137 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/1.403, allocations: 43.94 kB / 0.6138 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02389/1.427, allocations: 18.66 MB / 0.632 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/1.427, allocations: 115.6 kB / 0.6321 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001864/1.427, allocations: 159.6 kB / 0.6323 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02114/1.448, allocations: 12.28 MB / 0.6442 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/1.448, allocations: 0 / 0.6442 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.683e-06/1.448, allocations: 0 / 0.6442 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.955e-06/1.448, allocations: 0 / 0.6442 GB, free: 13.11 MB / 0.5573 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.004244/1.453, allocations: 2.015 MB / 0.6462 GB, free: 11.04 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/1.453, allocations: 15.98 kB / 0.6462 GB, free: 11.03 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/1.453, allocations: 99.66 kB / 0.6463 GB, free: 10.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/1.453, allocations: 303.6 kB / 0.6466 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-05/1.453, allocations: 88.41 kB / 0.6467 GB, free: 10.51 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/1.453, allocations: 39.94 kB / 0.6467 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/1.454, allocations: 354.6 kB / 0.6471 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/1.454, allocations: 0 / 0.6471 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/1.454, allocations: 16 kB / 0.6471 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/1.454, allocations: 15.94 kB / 0.6471 GB, free: 10.05 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/1.454, allocations: 172.3 kB / 0.6473 GB, free: 9.891 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/1.455, allocations: 1.485 MB / 0.6487 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/1.456, allocations: 167.6 kB / 0.6489 GB, free: 8.168 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.744e-05/1.456, allocations: 60.84 kB / 0.6489 GB, free: 8.105 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1162/1.572, allocations: 69.3 MB / 0.7166 GB, free: 2.727 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/1.572, allocations: 113 kB / 0.7167 GB, free: 2.602 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=21): time 2.114e-06/1.572, allocations: 0 / 0.7167 GB, free: 2.602 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21): time 0.0006802/1.573, allocations: 267.3 kB / 0.717 GB, free: 2.332 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/1.573, allocations: 55.41 kB / 0.717 GB, free: 2.266 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/1.573, allocations: 386.6 kB / 0.7174 GB, free: 1.875 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/1.573, allocations: 29.7 kB / 0.7174 GB, free: 1.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/1.573, allocations: 299.1 kB / 0.7177 GB, free: 1.543 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.633e-05/1.573, allocations: 79.38 kB / 0.7178 GB, free: 1.465 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.318e-05/1.574, allocations: 83.58 kB / 0.7179 GB, free: 1.375 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001246/1.574, allocations: 0.5195 MB / 0.7184 GB, free: 0.8438 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.742e-05/1.574, allocations: 40.62 kB / 0.7184 GB, free: 0.8047 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/1.574, allocations: 192.6 kB / 0.7186 GB, free: 0.5547 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002173/1.574, allocations: 248 kB / 0.7188 GB, free: 256 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.574, allocations: 0 / 0.7188 GB, free: 256 kB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.1371/1.711, allocations: 330.3 kB / 0.7191 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/1.711, allocations: 7.219 kB / 0.7192 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/1.711, allocations: 4.531 kB / 0.7192 GB, free: 296.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005585/1.712, allocations: 141.9 kB / 0.7193 GB, free: 296.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/1.712, allocations: 50.61 kB / 0.7193 GB, free: 296.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/1.713, allocations: 2.985 MB / 0.7223 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/1.713, allocations: 43.56 kB / 0.7223 GB, free: 293.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/1.713, allocations: 16.16 kB / 0.7223 GB, free: 293.7 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.0001188/1.714, allocations: 180 kB / 0.7225 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/1.714, allocations: 45.86 kB / 0.7225 GB, free: 293.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003701/1.714, allocations: 273.6 kB / 0.7228 GB, free: 293.4 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/1.714, allocations: 3.969 kB / 0.7228 GB, free: 293.4 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/1.714, allocations: 1.781 kB / 0.7228 GB, free: 293.4 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.714, allocations: 0 / 0.7228 GB, free: 293.4 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/1.714, allocations: 289.8 kB / 0.7231 GB, free: 293.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/1.714, allocations: 0 / 0.7231 GB, free: 293.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/1.714, allocations: 43.47 kB / 0.7231 GB, free: 293.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/1.715, allocations: 68.23 kB / 0.7232 GB, free: 293.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/1.715, allocations: 3.688 kB / 0.7232 GB, free: 293.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001844/1.715, allocations: 0.8183 MB / 0.724 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.715, allocations: 3.969 kB / 0.724 GB, free: 292.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/1.715, allocations: 316.2 kB / 0.7243 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/1.715, allocations: 60.77 kB / 0.7243 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/1.715, allocations: 5.312 kB / 0.7243 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.091e-05/1.715, allocations: 18.83 kB / 0.7244 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/1.715, allocations: 33.95 kB / 0.7244 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/1.715, allocations: 7.625 kB / 0.7244 GB, free: 292.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001166/1.715, allocations: 250.5 kB / 0.7246 GB, free: 292.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/1.715, allocations: 0 / 0.7246 GB, free: 292.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002581/1.718, allocations: 1.502 MB / 0.7261 GB, free: 292.1 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.003539/1.722, allocations: 2.41 MB / 0.7285 GB, free: 292 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004024/1.722, allocations: 351.9 kB / 0.7288 GB, free: 291.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.722, allocations: 2.188 kB / 0.7288 GB, free: 291.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/1.722, allocations: 97.84 kB / 0.7289 GB, free: 291.7 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/1.722, allocations: 89.52 kB / 0.729 GB, free: 291.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/1.723, allocations: 0.7377 MB / 0.7297 GB, free: 291.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.131e-05/1.724, allocations: 120.7 kB / 0.7298 GB, free: 291.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.665e-05/1.724, allocations: 46.16 kB / 0.7299 GB, free: 291.2 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/1.724, allocations: 30.75 kB / 0.7299 GB, free: 291.2 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/1.724, allocations: 0 / 0.7299 GB, free: 291.2 MB / 0.6198 GB Notification: Performance of Templates: time 0.0333/1.757, allocations: 48.45 MB / 0.7772 GB, free: 243.7 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.107756901998073]