Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) 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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8405/0.8405, allocations: 150.9 MB / 167.1 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004017/0.0004019, allocations: 19.97 kB / 205.9 MB, free: 9.027 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1644, allocations: 31.33 MB / 237.3 MB, free: 5.98 MB / 190.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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve): time 1.686/1.85, allocations: 294.8 MB / 0.5196 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1994/2.05, allocations: 187.8 MB / 0.7031 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/2.05, allocations: 8 kB / 0.7031 GB, free: 0.5234 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47: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 4.0.0-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 4.0.0-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.0002269/2.05, allocations: 57.12 kB / 0.7031 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003604/2.051, allocations: 158.7 kB / 0.7033 GB, free: 320 kB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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.3385/2.389, allocations: 11.48 MB / 0.7145 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005492/2.39, allocations: 495.9 kB / 0.715 GB, free: 2.383 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/2.39, allocations: 243.9 kB / 0.7152 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/2.39, allocations: 197.9 kB / 0.7154 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/2.39, allocations: 223.1 kB / 0.7156 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/2.391, allocations: 39.41 kB / 0.7156 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03171/2.422, allocations: 19.9 MB / 0.7351 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002095/2.422, allocations: 102.8 kB / 0.7352 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000323/2.423, allocations: 223.1 kB / 0.7354 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0233/2.446, allocations: 9.823 MB / 0.745 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/2.446, allocations: 0 / 0.745 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.924e-06/2.446, allocations: 0 / 0.745 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.411e-05/2.446, allocations: 1.062 kB / 0.745 GB, free: 15.57 MB / 0.5919 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.006214/2.452, allocations: 1.867 MB / 0.7468 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/2.452, allocations: 10.09 kB / 0.7468 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/2.453, allocations: 54.94 kB / 0.7469 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/2.453, allocations: 342.7 kB / 0.7472 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-05/2.453, allocations: 57.22 kB / 0.7472 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.575e-05/2.453, allocations: 39.67 kB / 0.7473 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006639/2.454, allocations: 408.1 kB / 0.7477 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/2.454, allocations: 0.7188 kB / 0.7477 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/2.454, allocations: 19.28 kB / 0.7477 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/2.454, allocations: 9.625 kB / 0.7477 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005142/2.455, allocations: 283.4 kB / 0.748 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/2.457, allocations: 2.01 MB / 0.7499 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/2.457, allocations: 217.5 kB / 0.7501 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/2.457, allocations: 90.64 kB / 0.7502 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.227/2.684, allocations: 123.2 MB / 0.8706 GB, free: 13.25 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/2.685, allocations: 144.2 kB / 0.8707 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 2.424e-06/2.685, allocations: 0 / 0.8707 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001006/2.686, allocations: 401.9 kB / 0.8711 GB, free: 12.78 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/2.686, allocations: 56.52 kB / 0.8711 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/2.686, allocations: 318.6 kB / 0.8714 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/2.686, allocations: 33.27 kB / 0.8715 GB, free: 12.41 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/2.686, allocations: 241.1 kB / 0.8717 GB, free: 12.22 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/2.686, allocations: 75.97 kB / 0.8718 GB, free: 12.16 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/2.687, allocations: 74.55 kB / 0.8718 GB, free: 12.1 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001097/2.687, allocations: 340.8 kB / 0.8722 GB, free: 11.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/2.687, allocations: 75.61 kB / 0.8722 GB, free: 11.72 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/2.687, allocations: 189.4 kB / 0.8724 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003602/2.687, allocations: 267.9 kB / 0.8727 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.687, allocations: 0 / 0.8727 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008228/2.688, allocations: 386.3 kB / 0.8731 GB, free: 11.02 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/2.688, allocations: 10.66 kB / 0.8731 GB, free: 11.01 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/2.688, allocations: 4 kB / 0.8731 GB, free: 11 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009565/2.689, allocations: 164 kB / 0.8732 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/2.69, allocations: 53.03 kB / 0.8733 GB, free: 10.81 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/2.692, allocations: 2.38 MB / 0.8756 GB, free: 8.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002558/2.692, allocations: 44.27 kB / 0.8756 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/2.692, allocations: 18.42 kB / 0.8757 GB, free: 8.383 MB / 0.7169 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.0002054/2.692, allocations: 163.8 kB / 0.8758 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.682e-05/2.692, allocations: 31.62 kB / 0.8758 GB, free: 8.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007179/2.693, allocations: 319.5 kB / 0.8761 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/2.693, allocations: 1.203 kB / 0.8761 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/2.693, allocations: 0 / 0.8761 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/2.693, allocations: 0 / 0.8761 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/2.694, allocations: 401.1 kB / 0.8765 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/2.694, allocations: 0 / 0.8765 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/2.694, allocations: 47.17 kB / 0.8766 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004024/2.694, allocations: 68.72 kB / 0.8766 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/2.694, allocations: 11.23 kB / 0.8767 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003853/2.695, allocations: 0.56 MB / 0.8772 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/2.695, allocations: 3.094 kB / 0.8772 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007062/2.695, allocations: 385.5 kB / 0.8776 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/2.695, allocations: 123.5 kB / 0.8777 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/2.696, allocations: 11.38 kB / 0.8777 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/2.696, allocations: 19.23 kB / 0.8777 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/2.696, allocations: 27.27 kB / 0.8777 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/2.696, allocations: 11.25 kB / 0.8778 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000219/2.696, allocations: 233.5 kB / 0.878 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.41e-07/2.696, allocations: 0 / 0.878 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004153/2.7, allocations: 1.469 MB / 0.8794 GB, free: 4.883 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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.006036/2.706, allocations: 2.196 MB / 0.8816 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008482/2.707, allocations: 358.1 kB / 0.8819 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.707, allocations: 4 kB / 0.8819 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002639/2.707, allocations: 115.6 kB / 0.882 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/2.708, allocations: 85.55 kB / 0.8821 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/2.709, allocations: 0.7603 MB / 0.8828 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/2.71, allocations: 0.7961 MB / 0.8836 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001865/2.71, allocations: 46.91 kB / 0.8837 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.184e-05/2.71, allocations: 38.48 kB / 0.8837 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of SimCode: time 8.01e-07/2.71, allocations: 4 kB / 0.8837 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of Templates: time 0.06153/2.772, allocations: 47.35 MB / 0.9299 GB, free: 1.672 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)