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.5817/0.5817, allocations: 120.4 MB / 140.2 MB, free: 12.98 MB / 138.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/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 3.847e-06/3.847e-06, allocations: 1.219 kB / 217.9 MB, free: 8.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.877e-05/3.262e-05, allocations: 3.5 kB / 217.9 MB, free: 8.645 MB / 202.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.03/1.03, allocations: 254.5 MB / 472.4 MB, free: 8.621 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.357/1.387, allocations: 165.2 MB / 0.6226 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/1.387, allocations: 11.88 kB / 0.6226 GB, free: 10.67 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65: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:47:3-48:67: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:56:3-57:67: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:58:3-59:65: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.0002236/1.387, allocations: 63.38 kB / 0.6227 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003395/1.388, allocations: 162.6 kB / 0.6229 GB, free: 10.45 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:783:9-783: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:850:9-850: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:1088:9-1088: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:69:3-69: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:69:3-69: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:167:3-170:49: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:167:3-170:49: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:63:5-63:84: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.02354/1.411, allocations: 11.76 MB / 0.6343 GB, free: 14.68 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0006293/1.412, allocations: 0.5025 MB / 0.6348 GB, free: 14.18 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/1.412, allocations: 215 kB / 0.635 GB, free: 13.96 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/1.412, allocations: 315.2 kB / 0.6353 GB, free: 13.66 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/1.413, allocations: 167.5 kB / 0.6355 GB, free: 13.49 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/1.413, allocations: 40 kB / 0.6355 GB, free: 13.45 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02472/1.437, allocations: 18.66 MB / 0.6538 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001604/1.437, allocations: 115.6 kB / 0.6539 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001903/1.438, allocations: 155.6 kB / 0.654 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02258/1.46, allocations: 12.44 MB / 0.6662 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/1.46, allocations: 0 / 0.6662 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.324e-06/1.46, allocations: 1.125 kB / 0.6662 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.765e-06/1.46, allocations: 4 kB / 0.6662 GB, free: 14.03 MB / 0.6042 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.003781/1.464, allocations: 1.923 MB / 0.668 GB, free: 12.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/1.464, allocations: 12.03 kB / 0.6681 GB, free: 12.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/1.464, allocations: 63.62 kB / 0.6681 GB, free: 11.99 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/1.465, allocations: 300.8 kB / 0.6684 GB, free: 11.68 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/1.465, allocations: 80.41 kB / 0.6685 GB, free: 11.58 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/1.465, allocations: 40 kB / 0.6685 GB, free: 11.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007358/1.465, allocations: 404.9 kB / 0.6689 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/1.466, allocations: 7.938 kB / 0.6689 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/1.466, allocations: 18.77 kB / 0.6689 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/1.466, allocations: 15.94 kB / 0.6689 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/1.466, allocations: 280.3 kB / 0.6692 GB, free: 10.82 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/1.467, allocations: 1.21 MB / 0.6704 GB, free: 9.559 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/1.467, allocations: 210.6 kB / 0.6706 GB, free: 9.344 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.581e-05/1.467, allocations: 76.81 kB / 0.6707 GB, free: 9.266 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1145/1.582, allocations: 69.09 MB / 0.7381 GB, free: 4.102 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002799/1.582, allocations: 136.7 kB / 0.7383 GB, free: 3.957 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=21): time 2.665e-06/1.582, allocations: 0 / 0.7383 GB, free: 3.957 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21): time 0.0007403/1.583, allocations: 329.3 kB / 0.7386 GB, free: 3.629 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/1.583, allocations: 59.39 kB / 0.7386 GB, free: 3.559 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/1.583, allocations: 353.5 kB / 0.739 GB, free: 3.203 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/1.583, allocations: 29.7 kB / 0.739 GB, free: 3.168 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/1.583, allocations: 252.3 kB / 0.7392 GB, free: 2.914 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/1.584, allocations: 75.36 kB / 0.7393 GB, free: 2.84 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/1.584, allocations: 81.92 kB / 0.7394 GB, free: 2.754 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0002327/1.584, allocations: 343.6 kB / 0.7397 GB, free: 2.41 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/1.584, allocations: 84.61 kB / 0.7398 GB, free: 2.328 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/1.584, allocations: 182.1 kB / 0.74 GB, free: 2.105 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/1.584, allocations: 256.7 kB / 0.7402 GB, free: 1.809 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/1.584, allocations: 7.938 kB / 0.7402 GB, free: 1.801 MB / 0.6667 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005123/1.585, allocations: 385.9 kB / 0.7406 GB, free: 1.414 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/1.585, allocations: 9.875 kB / 0.7406 GB, free: 1.406 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.585, allocations: 4.703 kB / 0.7406 GB, free: 1.402 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005678/1.585, allocations: 171.6 kB / 0.7408 GB, free: 1.23 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/1.586, allocations: 55.91 kB / 0.7408 GB, free: 1.176 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1665/1.752, allocations: 2.233 MB / 0.743 GB, free: 304.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/1.752, allocations: 40.2 kB / 0.743 GB, free: 304.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/1.752, allocations: 17.72 kB / 0.7431 GB, free: 304.1 MB / 0.6667 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.0001932/1.753, allocations: 168.1 kB / 0.7432 GB, free: 304 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/1.753, allocations: 39.34 kB / 0.7433 GB, free: 304 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005448/1.753, allocations: 322.1 kB / 0.7436 GB, free: 303.9 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/1.753, allocations: 3.062 kB / 0.7436 GB, free: 303.9 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/1.753, allocations: 1.547 kB / 0.7436 GB, free: 303.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/1.753, allocations: 1.656 kB / 0.7436 GB, free: 303.9 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/1.753, allocations: 286 kB / 0.7438 GB, free: 303.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.753, allocations: 0 / 0.7438 GB, free: 303.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/1.754, allocations: 47.94 kB / 0.7439 GB, free: 303.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002663/1.754, allocations: 75.44 kB / 0.744 GB, free: 303.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/1.754, allocations: 9.391 kB / 0.744 GB, free: 303.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001983/1.754, allocations: 0.571 MB / 0.7445 GB, free: 303.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.754, allocations: 2.734 kB / 0.7445 GB, free: 303.3 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/1.754, allocations: 379.5 kB / 0.7449 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 9.059e-05/1.755, allocations: 67.03 kB / 0.745 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/1.755, allocations: 3.875 kB / 0.745 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.732e-05/1.755, allocations: 14.14 kB / 0.745 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/1.755, allocations: 35.19 kB / 0.745 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/1.755, allocations: 7.297 kB / 0.745 GB, free: 303.2 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001571/1.755, allocations: 244.8 kB / 0.7453 GB, free: 303.1 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5e-08/1.755, allocations: 0 / 0.7453 GB, free: 303.1 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00284/1.758, allocations: 1.495 MB / 0.7467 GB, free: 303 MB / 0.6667 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.003707/1.761, allocations: 2.421 MB / 0.7491 GB, free: 302.8 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0004781/1.762, allocations: 336.8 kB / 0.7494 GB, free: 302.7 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.762, allocations: 4.438 kB / 0.7494 GB, free: 302.7 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/1.762, allocations: 108.9 kB / 0.7495 GB, free: 302.6 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/1.762, allocations: 82.86 kB / 0.7496 GB, free: 302.6 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009086/1.763, allocations: 0.7782 MB / 0.7503 GB, free: 302.2 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/1.763, allocations: 206.2 kB / 0.7505 GB, free: 302.1 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.949e-05/1.763, allocations: 41.64 kB / 0.7506 GB, free: 302.1 MB / 0.6667 GB Notification: Performance of SimCode: time 4.71e-07/1.763, allocations: 0.9844 kB / 0.7506 GB, free: 302.1 MB / 0.6667 GB Notification: Performance of Templates: time 0.02418/1.788, allocations: 31.36 MB / 0.7812 GB, free: 272.6 MB / 0.6667 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.32328346837312] Failed to read output from testmodel.py, exit status != 0: 2.0451590325683355 1.941761527 0.47924930600000004 Calling exit ...