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.7941/0.7941, allocations: 150.9 MB / 167.2 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004382, allocations: 16.19 kB / 237.8 MB, free: 1.715 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06011/0.06057, allocations: 31.35 MB / 269.1 MB, free: 7.086 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.Fluid.Examples.SimpleExamples.TestDynamicCheckValve): time 1.625/1.686, allocations: 295 MB / 0.5509 GB, free: 12.63 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6036/2.289, allocations: 187.8 MB / 0.7344 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004141/2.29, allocations: 12.12 kB / 0.7344 GB, free: 2.086 MB / 0.5919 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.0003035/2.29, allocations: 53.72 kB / 0.7344 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0006055/2.291, allocations: 147.4 kB / 0.7346 GB, free: 2.086 MB / 0.5919 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.03635/2.327, allocations: 11.5 MB / 0.7458 GB, free: 1.852 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008675/2.328, allocations: 490.4 kB / 0.7463 GB, free: 1.852 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004515/2.328, allocations: 243.3 kB / 0.7465 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004508/2.329, allocations: 205.2 kB / 0.7467 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004385/2.329, allocations: 224.1 kB / 0.7469 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001124/2.33, allocations: 39.97 kB / 0.7469 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04095/2.37, allocations: 19.9 MB / 0.7664 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003425/2.371, allocations: 94.23 kB / 0.7665 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004744/2.371, allocations: 225.3 kB / 0.7667 GB, free: 1.125 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02737/2.399, allocations: 9.867 MB / 0.7763 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/2.399, allocations: 4.75 kB / 0.7763 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.575e-06/2.399, allocations: 0 / 0.7763 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.184e-05/2.399, allocations: 0 / 0.7763 GB, free: 13.64 MB / 0.6075 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.005981/2.405, allocations: 1.861 MB / 0.7781 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/2.405, allocations: 11.44 kB / 0.7781 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/2.405, allocations: 54.03 kB / 0.7782 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/2.406, allocations: 339 kB / 0.7785 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.652e-05/2.406, allocations: 55.64 kB / 0.7786 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.229e-05/2.406, allocations: 45.72 kB / 0.7786 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/2.406, allocations: 401.1 kB / 0.779 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/2.406, allocations: 5.562 kB / 0.779 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/2.406, allocations: 14.47 kB / 0.779 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/2.406, allocations: 14.16 kB / 0.779 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/2.407, allocations: 280.1 kB / 0.7793 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/2.409, allocations: 2.023 MB / 0.7813 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005578/2.41, allocations: 217 kB / 0.7815 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/2.41, allocations: 85.69 kB / 0.7816 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2392/2.649, allocations: 123.2 MB / 0.9019 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003585/2.65, allocations: 140.9 kB / 0.902 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.685e-06/2.65, allocations: 4 kB / 0.902 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001097/2.651, allocations: 406.2 kB / 0.9024 GB, free: 8.258 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/2.651, allocations: 59.41 kB / 0.9025 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004368/2.651, allocations: 316.4 kB / 0.9028 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/2.651, allocations: 33.7 kB / 0.9028 GB, free: 7.828 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/2.651, allocations: 236.7 kB / 0.903 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/2.651, allocations: 69.44 kB / 0.9031 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/2.652, allocations: 70.02 kB / 0.9032 GB, free: 7.453 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001281/2.652, allocations: 342.8 kB / 0.9035 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/2.652, allocations: 77.36 kB / 0.9036 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/2.652, allocations: 193.2 kB / 0.9038 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/2.653, allocations: 263.5 kB / 0.904 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/2.653, allocations: 4 kB / 0.904 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008243/2.653, allocations: 389.2 kB / 0.9044 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/2.653, allocations: 11.28 kB / 0.9044 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/2.653, allocations: 4.438 kB / 0.9044 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000953/2.654, allocations: 170.8 kB / 0.9046 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/2.655, allocations: 58.25 kB / 0.9046 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/2.657, allocations: 2.376 MB / 0.9069 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/2.657, allocations: 47.78 kB / 0.907 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/2.657, allocations: 20 kB / 0.907 GB, free: 3.324 MB / 0.7325 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.0001982/2.658, allocations: 165.6 kB / 0.9072 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/2.658, allocations: 31.62 kB / 0.9072 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007172/2.658, allocations: 312.2 kB / 0.9075 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/2.658, allocations: 5.094 kB / 0.9075 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/2.658, allocations: 0 / 0.9075 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/2.658, allocations: 4.734 kB / 0.9075 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004447/2.659, allocations: 390.7 kB / 0.9079 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/2.659, allocations: 0 / 0.9079 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/2.659, allocations: 51 kB / 0.9079 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004082/2.66, allocations: 74.23 kB / 0.908 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/2.66, allocations: 5.203 kB / 0.908 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004211/2.66, allocations: 0.5701 MB / 0.9085 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/2.66, allocations: 0 / 0.9085 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007328/2.661, allocations: 376.8 kB / 0.9089 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/2.661, allocations: 128.6 kB / 0.909 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/2.661, allocations: 4.812 kB / 0.909 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/2.661, allocations: 20.53 kB / 0.9091 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.783e-05/2.661, allocations: 27.91 kB / 0.9091 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/2.661, allocations: 11.98 kB / 0.9091 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002418/2.662, allocations: 231.2 kB / 0.9093 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/2.662, allocations: 1.203 kB / 0.9093 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004252/2.666, allocations: 1.46 MB / 0.9107 GB, free: 15.38 MB / 0.7481 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.007657/2.673, allocations: 2.217 MB / 0.9129 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007533/2.674, allocations: 347.7 kB / 0.9132 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.674, allocations: 3.969 kB / 0.9132 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002658/2.675, allocations: 116.3 kB / 0.9134 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/2.675, allocations: 69.58 kB / 0.9134 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/2.676, allocations: 0.8049 MB / 0.9142 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/2.677, allocations: 0.8039 MB / 0.915 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.796e-05/2.677, allocations: 35.44 kB / 0.915 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/2.677, allocations: 0 / 0.915 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of Templates: time 0.04711/2.724, allocations: 31.01 MB / 0.9453 GB, free: 12.23 MB / 0.7794 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)