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.8467/0.8467, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003852, allocations: 17.03 kB / 237.8 MB, free: 1.762 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07016/0.07057, allocations: 31.35 MB / 269.1 MB, free: 7.043 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.754/1.825, allocations: 295 MB / 0.5509 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5868/2.412, allocations: 187.8 MB / 0.7343 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003306/2.412, allocations: 8.469 kB / 0.7344 GB, free: 1.785 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.0002624/2.412, allocations: 57.39 kB / 0.7344 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003848/2.413, allocations: 153.1 kB / 0.7346 GB, free: 1.785 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.02967/2.442, allocations: 11.5 MB / 0.7458 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006346/2.443, allocations: 0.4904 MB / 0.7463 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/2.443, allocations: 235.5 kB / 0.7465 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/2.444, allocations: 206.5 kB / 0.7467 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/2.444, allocations: 227.2 kB / 0.7469 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/2.444, allocations: 42.08 kB / 0.7469 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0353/2.479, allocations: 19.9 MB / 0.7664 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002294/2.479, allocations: 96.86 kB / 0.7665 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003728/2.48, allocations: 226.9 kB / 0.7667 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02811/2.508, allocations: 9.878 MB / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/2.508, allocations: 0.9062 kB / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.923e-06/2.508, allocations: 0 / 0.7763 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.042e-05/2.508, allocations: 0 / 0.7763 GB, free: 13.42 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.005684/2.514, allocations: 1.863 MB / 0.7781 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/2.514, allocations: 9 kB / 0.7782 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/2.514, allocations: 56.53 kB / 0.7782 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/2.514, allocations: 343.4 kB / 0.7785 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.997e-05/2.514, allocations: 57.73 kB / 0.7786 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.429e-05/2.514, allocations: 36.84 kB / 0.7786 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/2.515, allocations: 411.5 kB / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/2.515, allocations: 0 / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/2.515, allocations: 14.25 kB / 0.779 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/2.515, allocations: 14.09 kB / 0.779 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/2.516, allocations: 282.7 kB / 0.7793 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/2.518, allocations: 2.02 MB / 0.7813 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/2.518, allocations: 216.8 kB / 0.7815 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/2.518, allocations: 87.5 kB / 0.7816 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2548/2.773, allocations: 123.2 MB / 0.9019 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/2.774, allocations: 140.5 kB / 0.9021 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.855e-06/2.774, allocations: 0 / 0.9021 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001155/2.775, allocations: 411 kB / 0.9024 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/2.775, allocations: 51.41 kB / 0.9025 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004572/2.775, allocations: 320.4 kB / 0.9028 GB, free: 7.719 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.267e-05/2.775, allocations: 30.91 kB / 0.9028 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/2.775, allocations: 238.9 kB / 0.9031 GB, free: 7.453 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.3e-05/2.776, allocations: 78.94 kB / 0.9031 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/2.776, allocations: 69.92 kB / 0.9032 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001475/2.776, allocations: 342.8 kB / 0.9035 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/2.776, allocations: 84.61 kB / 0.9036 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002511/2.776, allocations: 177.2 kB / 0.9038 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/2.777, allocations: 267.5 kB / 0.904 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/2.777, allocations: 0 / 0.904 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008597/2.778, allocations: 385.7 kB / 0.9044 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/2.778, allocations: 14.53 kB / 0.9044 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/2.778, allocations: 7.984 kB / 0.9044 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/2.779, allocations: 164.7 kB / 0.9046 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/2.779, allocations: 51.16 kB / 0.9046 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/2.781, allocations: 2.381 MB / 0.907 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/2.782, allocations: 58.81 kB / 0.907 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/2.782, allocations: 16 kB / 0.907 GB, free: 3.172 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.0002271/2.782, allocations: 156.9 kB / 0.9072 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/2.782, allocations: 31.62 kB / 0.9072 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007429/2.783, allocations: 319.6 kB / 0.9075 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/2.783, allocations: 1.203 kB / 0.9075 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/2.783, allocations: 8 kB / 0.9075 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/2.783, allocations: 0 / 0.9075 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004958/2.783, allocations: 387.7 kB / 0.9079 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/2.783, allocations: 0 / 0.9079 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/2.784, allocations: 52.31 kB / 0.9079 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004447/2.784, allocations: 70.62 kB / 0.908 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/2.784, allocations: 7.984 kB / 0.908 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004616/2.785, allocations: 0.572 MB / 0.9086 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/2.785, allocations: 1.75 kB / 0.9086 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007842/2.785, allocations: 378.3 kB / 0.9089 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/2.785, allocations: 120.6 kB / 0.909 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.874e-05/2.786, allocations: 4.797 kB / 0.9091 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/2.786, allocations: 15.98 kB / 0.9091 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/2.786, allocations: 35.83 kB / 0.9091 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/2.786, allocations: 8 kB / 0.9091 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000269/2.786, allocations: 235.2 kB / 0.9093 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.11e-07/2.786, allocations: 1.203 kB / 0.9093 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00472/2.791, allocations: 1.471 MB / 0.9108 GB, free: 15.22 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.008539/2.799, allocations: 2.207 MB / 0.9129 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001004/2.8, allocations: 352.4 kB / 0.9133 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/2.8, allocations: 192 / 0.9133 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002993/2.801, allocations: 115.4 kB / 0.9134 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/2.801, allocations: 78.78 kB / 0.9134 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/2.803, allocations: 0.7875 MB / 0.9142 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/2.803, allocations: 0.807 MB / 0.915 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/2.804, allocations: 35.42 kB / 0.915 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of SimCode: time 4.21e-07/2.804, allocations: 4 kB / 0.915 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of Templates: time 0.05059/2.854, allocations: 30.95 MB / 0.9453 GB, free: 12.14 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)