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.9325/0.9325, allocations: 120.4 MB / 140.1 MB, free: 60 kB / 126.1 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 0.0007399/0.0007399, allocations: 9.234 kB / 217.7 MB, free: 13.57 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07007/0.07081, allocations: 33.38 MB / 251.1 MB, free: 13.36 MB / 238.1 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.821/1.892, allocations: 254.2 MB / 0.4934 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2197/2.112, allocations: 165.1 MB / 0.6547 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003924/2.112, allocations: 15.88 kB / 0.6547 GB, free: 15.18 MB / 0.6075 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.0002694/2.112, allocations: 59.42 kB / 0.6548 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004792/2.113, allocations: 158.7 kB / 0.6549 GB, free: 14.97 MB / 0.6075 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.03346/2.146, allocations: 11.64 MB / 0.6663 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008522/2.147, allocations: 0.491 MB / 0.6668 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/2.147, allocations: 210.8 kB / 0.667 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003926/2.148, allocations: 223.1 kB / 0.6672 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/2.148, allocations: 195.1 kB / 0.6674 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.383e-05/2.148, allocations: 40 kB / 0.6674 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0379/2.186, allocations: 18.62 MB / 0.6856 GB, free: 15.53 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002249/2.186, allocations: 111.6 kB / 0.6857 GB, free: 15.42 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002791/2.187, allocations: 191.1 kB / 0.6859 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02395/2.211, allocations: 9.895 MB / 0.6955 GB, free: 5.312 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/2.211, allocations: 0 / 0.6955 GB, free: 5.312 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.753e-06/2.211, allocations: 0 / 0.6955 GB, free: 5.312 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.888e-06/2.211, allocations: 0 / 0.6955 GB, free: 5.312 MB / 0.6387 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.005162/2.216, allocations: 1.928 MB / 0.6974 GB, free: 3.336 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/2.216, allocations: 15.97 kB / 0.6974 GB, free: 3.32 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/2.216, allocations: 63.62 kB / 0.6975 GB, free: 3.258 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005156/2.217, allocations: 292.8 kB / 0.6978 GB, free: 2.949 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.562e-05/2.217, allocations: 88.41 kB / 0.6979 GB, free: 2.852 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.251e-05/2.217, allocations: 40 kB / 0.6979 GB, free: 2.812 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007206/2.217, allocations: 408.8 kB / 0.6983 GB, free: 2.383 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/2.217, allocations: 8 kB / 0.6983 GB, free: 2.375 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/2.218, allocations: 12 kB / 0.6983 GB, free: 2.363 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/2.218, allocations: 8 kB / 0.6983 GB, free: 2.355 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005953/2.218, allocations: 282.3 kB / 0.6986 GB, free: 2.082 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/2.22, allocations: 1.219 MB / 0.6998 GB, free: 0.8125 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006854/2.221, allocations: 209 kB / 0.7 GB, free: 0.6016 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/2.221, allocations: 76.81 kB / 0.7001 GB, free: 0.5234 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4252/2.646, allocations: 69.09 MB / 0.7675 GB, free: 309.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/2.646, allocations: 140.2 kB / 0.7677 GB, free: 309.8 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=21): time 3.116e-06/2.646, allocations: 1.078 kB / 0.7677 GB, free: 309.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=21): time 0.0009356/2.647, allocations: 325.9 kB / 0.768 GB, free: 309.5 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/2.647, allocations: 58.59 kB / 0.768 GB, free: 309.4 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/2.648, allocations: 358.1 kB / 0.7684 GB, free: 309.1 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/2.648, allocations: 29.7 kB / 0.7684 GB, free: 309 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/2.648, allocations: 247.1 kB / 0.7686 GB, free: 308.8 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 5.025e-05/2.648, allocations: 82.45 kB / 0.7687 GB, free: 308.8 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.746e-05/2.648, allocations: 73.97 kB / 0.7688 GB, free: 308.7 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.512e-05/2.648, allocations: 340.1 kB / 0.7691 GB, free: 308.3 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/2.648, allocations: 76.61 kB / 0.7692 GB, free: 308.3 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/2.648, allocations: 191.7 kB / 0.7694 GB, free: 308 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/2.649, allocations: 262.2 kB / 0.7696 GB, free: 307.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/2.649, allocations: 3.938 kB / 0.7696 GB, free: 307.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007477/2.65, allocations: 382.9 kB / 0.77 GB, free: 307.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/2.65, allocations: 8 kB / 0.77 GB, free: 307.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/2.65, allocations: 7.75 kB / 0.77 GB, free: 307.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009715/2.651, allocations: 171 kB / 0.7702 GB, free: 307.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002016/2.651, allocations: 56.39 kB / 0.7702 GB, free: 307.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/2.653, allocations: 2.261 MB / 0.7724 GB, free: 304.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/2.653, allocations: 43.56 kB / 0.7725 GB, free: 304.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/2.653, allocations: 15.98 kB / 0.7725 GB, free: 304.7 MB / 0.6856 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.0001559/2.653, allocations: 168.6 kB / 0.7726 GB, free: 304.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/2.653, allocations: 36.64 kB / 0.7727 GB, free: 304.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006527/2.654, allocations: 312.4 kB / 0.773 GB, free: 304.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/2.654, allocations: 4 kB / 0.773 GB, free: 304.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/2.654, allocations: 3.984 kB / 0.773 GB, free: 304.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/2.654, allocations: 0 / 0.773 GB, free: 304.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/2.654, allocations: 286.1 kB / 0.7733 GB, free: 303.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/2.654, allocations: 0 / 0.7733 GB, free: 303.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/2.654, allocations: 39.98 kB / 0.7733 GB, free: 303.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/2.655, allocations: 80.66 kB / 0.7734 GB, free: 303.7 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/2.655, allocations: 8 kB / 0.7734 GB, free: 303.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002919/2.655, allocations: 0.5679 MB / 0.7739 GB, free: 303.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/2.655, allocations: 0.6562 kB / 0.7739 GB, free: 303.1 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000665/2.656, allocations: 386.8 kB / 0.7743 GB, free: 302.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/2.656, allocations: 54.48 kB / 0.7744 GB, free: 302.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/2.656, allocations: 19.64 kB / 0.7744 GB, free: 302.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/2.656, allocations: 19.97 kB / 0.7744 GB, free: 302.7 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/2.656, allocations: 24.61 kB / 0.7744 GB, free: 302.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/2.656, allocations: 8 kB / 0.7744 GB, free: 302.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000187/2.656, allocations: 243.2 kB / 0.7747 GB, free: 302.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/2.656, allocations: 0 / 0.7747 GB, free: 302.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003024/2.659, allocations: 1.494 MB / 0.7761 GB, free: 301.1 MB / 0.6856 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.005219/2.664, allocations: 2.224 MB / 0.7783 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0007968/2.665, allocations: 350.7 kB / 0.7786 GB, free: 299 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.665, allocations: 4 kB / 0.7786 GB, free: 299 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0002488/2.665, allocations: 96.44 kB / 0.7787 GB, free: 298.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/2.666, allocations: 73.16 kB / 0.7788 GB, free: 298.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/2.667, allocations: 0.8375 MB / 0.7796 GB, free: 298 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/2.667, allocations: 215 kB / 0.7798 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001456/2.667, allocations: 42.72 kB / 0.7798 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.108e-05/2.668, allocations: 40.48 kB / 0.7799 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of SimCode: time 5.31e-07/2.668, allocations: 0 / 0.7799 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of Templates: time 0.04941/2.717, allocations: 47.17 MB / 0.826 GB, free: 251 MB / 0.6856 GB " [Timeout remaining time 657] 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 -s ida -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 14.786301046959125] Failed to read output from testmodel.py, exit status != 0: 2.85354820091743 2.860790626 0.647838562 Calling exit ...