Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8572/0.8572, allocations: 152.6 MB / 171.4 MB, free: 6.02 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005412/0.0005412, allocations: 11.98 kB / 248.5 MB, free: 5.652 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1593, allocations: 33.05 MB / 281.6 MB, free: 3.578 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve): time 1.575/1.734, allocations: 301.4 MB / 0.5693 GB, free: 5.012 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2503/1.984, allocations: 35.04 MB / 0.6035 GB, free: 5.551 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/1.985, allocations: 2.406 kB / 0.6035 GB, free: 5.551 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004099/1.985, allocations: 151.1 kB / 0.6036 GB, free: 5.477 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/1.985, allocations: 155.8 kB / 0.6038 GB, free: 5.375 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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. Notification: Performance of NFTyping.typeClassSections: time 0.02356/2.009, allocations: 10 MB / 0.6136 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005336/2.009, allocations: 451.5 kB / 0.614 GB, free: 380 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/2.01, allocations: 126.5 kB / 0.6141 GB, free: 296 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/2.01, allocations: 198.6 kB / 0.6143 GB, free: 176 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/2.01, allocations: 169.9 kB / 0.6145 GB, free: 64 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/2.01, allocations: 24.72 kB / 0.6145 GB, free: 64 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03467/2.045, allocations: 17.92 MB / 0.632 GB, free: 208 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/2.045, allocations: 68.83 kB / 0.6321 GB, free: 140 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003019/2.045, allocations: 180 kB / 0.6322 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01969/2.065, allocations: 8.52 MB / 0.6406 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/2.065, allocations: 1.312 kB / 0.6406 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.283e-06/2.065, allocations: 0 / 0.6406 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.374e-06/2.065, allocations: 0 / 0.6406 GB, free: 7.414 MB / 0.4981 GB 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.004438/2.069, allocations: 1.553 MB / 0.6421 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/2.069, allocations: 8.031 kB / 0.6421 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/2.07, allocations: 47.72 kB / 0.6421 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/2.07, allocations: 210 kB / 0.6423 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.468e-05/2.07, allocations: 46.14 kB / 0.6424 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/2.07, allocations: 27.95 kB / 0.6424 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006096/2.071, allocations: 361.8 kB / 0.6427 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/2.071, allocations: 8.969 kB / 0.6427 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/2.071, allocations: 8 kB / 0.6428 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/2.071, allocations: 12 kB / 0.6428 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/2.071, allocations: 233.2 kB / 0.643 GB, free: 4.832 MB / 0.4981 GB 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.02126/2.092, allocations: 6.566 MB / 0.6494 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007262/2.093, allocations: 251.4 kB / 0.6496 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/2.093, allocations: 121.2 kB / 0.6498 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1772/2.271, allocations: 47.28 MB / 0.6959 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004719/2.271, allocations: 233.2 kB / 0.6962 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.914e-06/2.271, allocations: 0 / 0.6962 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.00121/2.272, allocations: 497.3 kB / 0.6966 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/2.272, allocations: 81.14 kB / 0.6967 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/2.273, allocations: 253.9 kB / 0.6969 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/2.273, allocations: 29.7 kB / 0.697 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/2.273, allocations: 170.1 kB / 0.6971 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/2.273, allocations: 158.6 kB / 0.6973 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/2.273, allocations: 69.86 kB / 0.6974 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000179/2.273, allocations: 346.8 kB / 0.6977 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/2.273, allocations: 109.6 kB / 0.6978 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/2.274, allocations: 167.7 kB / 0.698 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/2.274, allocations: 299 kB / 0.6982 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/2.274, allocations: 0 / 0.6982 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009462/2.275, allocations: 426.8 kB / 0.6986 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/2.275, allocations: 8 kB / 0.6987 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/2.275, allocations: 0 / 0.6987 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/2.276, allocations: 198.1 kB / 0.6988 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/2.276, allocations: 31.92 kB / 0.6989 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/2.279, allocations: 2.32 MB / 0.7011 GB, free: 8.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/2.279, allocations: 40.78 kB / 0.7012 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.73e-05/2.279, allocations: 16.11 kB / 0.7012 GB, free: 8.754 MB / 0.5606 GB 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.0001742/2.28, allocations: 149.7 kB / 0.7013 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/2.28, allocations: 39.7 kB / 0.7014 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009307/2.281, allocations: 0.5577 MB / 0.7019 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006268/2.281, allocations: 362.3 kB / 0.7023 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/2.281, allocations: 2.312 kB / 0.7023 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/2.281, allocations: 0 / 0.7023 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/2.283, allocations: 0.9517 MB / 0.7032 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/2.283, allocations: 0 / 0.7032 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/2.283, allocations: 63.91 kB / 0.7033 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003931/2.283, allocations: 110.3 kB / 0.7034 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/2.283, allocations: 9.422 kB / 0.7034 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000606/2.284, allocations: 0.6343 MB / 0.704 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/2.284, allocations: 0 / 0.704 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/2.285, allocations: 0.6559 MB / 0.7046 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/2.285, allocations: 59.69 kB / 0.7047 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/2.285, allocations: 12.08 kB / 0.7047 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/2.286, allocations: 19.92 kB / 0.7047 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.434e-05/2.286, allocations: 39.92 kB / 0.7048 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/2.286, allocations: 8 kB / 0.7048 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002574/2.286, allocations: 223.1 kB / 0.705 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/2.286, allocations: 4.969 kB / 0.705 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003201/2.289, allocations: 1.22 MB / 0.7062 GB, free: 3.504 MB / 0.5606 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 (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.005706/2.295, allocations: 1.748 MB / 0.7079 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001088/2.296, allocations: 472.3 kB / 0.7083 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/2.296, allocations: 4 kB / 0.7083 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004669/2.296, allocations: 168.3 kB / 0.7085 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008299/2.297, allocations: 135.3 kB / 0.7086 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/2.299, allocations: 0.87 MB / 0.7095 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/2.299, allocations: 0.8156 MB / 0.7103 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001413/2.3, allocations: 33.42 kB / 0.7103 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/2.3, allocations: 31.44 kB / 0.7103 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of SimCode: time 4.4e-07/2.3, allocations: 0 / 0.7103 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of Templates: time 0.06927/2.369, allocations: 44.54 MB / 0.7538 GB, free: 3.129 MB / 0.6075 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 14.388847545720637] Failed to read output from testmodel.py, exit status != 0: 2.722304525785148 2.739584927 0.671030683 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f24230dd7b0>