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.8246/0.8246, allocations: 150.9 MB / 166.4 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003112, allocations: 15.97 kB / 204.5 MB, free: 9.75 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.152, allocations: 31.33 MB / 235.9 MB, free: 5.391 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.646/1.798, allocations: 295 MB / 0.5185 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2025/2, allocations: 187.8 MB / 0.7019 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004342/2.001, allocations: 4 kB / 0.7019 GB, free: 0.7578 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.0003257/2.001, allocations: 68.56 kB / 0.702 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006608/2.002, allocations: 150.7 kB / 0.7021 GB, free: 0.543 MB / 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.3566/2.358, allocations: 11.49 MB / 0.7133 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005289/2.359, allocations: 488.3 kB / 0.7138 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002749/2.359, allocations: 247.4 kB / 0.714 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/2.36, allocations: 197.3 kB / 0.7142 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/2.36, allocations: 226.8 kB / 0.7144 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/2.36, allocations: 39.66 kB / 0.7145 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03862/2.399, allocations: 19.65 MB / 0.7337 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002852/2.399, allocations: 98.5 kB / 0.7338 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004555/2.399, allocations: 221.2 kB / 0.734 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02785/2.427, allocations: 9.849 MB / 0.7436 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/2.427, allocations: 2.125 kB / 0.7436 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.294e-06/2.427, allocations: 0 / 0.7436 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.572e-05/2.427, allocations: 2.375 kB / 0.7436 GB, free: 15.71 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.006264/2.434, allocations: 1.85 MB / 0.7454 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/2.434, allocations: 14.77 kB / 0.7454 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/2.434, allocations: 51.97 kB / 0.7455 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/2.434, allocations: 328.7 kB / 0.7458 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.127e-05/2.434, allocations: 58.36 kB / 0.7458 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.978e-05/2.434, allocations: 34.62 kB / 0.7459 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006262/2.435, allocations: 408.7 kB / 0.7463 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/2.435, allocations: 3.188 kB / 0.7463 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/2.435, allocations: 21.12 kB / 0.7463 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/2.435, allocations: 11 kB / 0.7463 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004825/2.436, allocations: 284.7 kB / 0.7466 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/2.437, allocations: 2.02 MB / 0.7485 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/2.438, allocations: 225.9 kB / 0.7487 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/2.438, allocations: 87.72 kB / 0.7488 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2484/2.687, allocations: 122.5 MB / 0.8685 GB, free: 14.19 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/2.687, allocations: 143 kB / 0.8686 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 4.088e-06/2.687, allocations: 0 / 0.8686 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001095/2.688, allocations: 412.1 kB / 0.869 GB, free: 13.71 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/2.688, allocations: 55.41 kB / 0.8691 GB, free: 13.65 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004133/2.689, allocations: 315.6 kB / 0.8694 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/2.689, allocations: 33.08 kB / 0.8694 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/2.689, allocations: 240.4 kB / 0.8696 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.163e-05/2.689, allocations: 76.88 kB / 0.8697 GB, free: 13.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/2.689, allocations: 70.8 kB / 0.8698 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001345/2.689, allocations: 340.8 kB / 0.8701 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/2.689, allocations: 81.39 kB / 0.8702 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/2.69, allocations: 185.5 kB / 0.8703 GB, free: 12.47 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/2.69, allocations: 267.1 kB / 0.8706 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/2.69, allocations: 4 kB / 0.8706 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008638/2.691, allocations: 386.6 kB / 0.871 GB, free: 11.95 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/2.691, allocations: 9.719 kB / 0.871 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/2.691, allocations: 0 / 0.871 GB, free: 11.94 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009859/2.692, allocations: 167.9 kB / 0.8711 GB, free: 11.79 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/2.692, allocations: 52.66 kB / 0.8712 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/2.695, allocations: 2.387 MB / 0.8735 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/2.695, allocations: 41.75 kB / 0.8736 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/2.695, allocations: 22.42 kB / 0.8736 GB, free: 9.312 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.0002067/2.695, allocations: 158.8 kB / 0.8737 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/2.695, allocations: 29.59 kB / 0.8738 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000732/2.696, allocations: 322.9 kB / 0.8741 GB, free: 8.898 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/2.696, allocations: 4 kB / 0.8741 GB, free: 8.895 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/2.696, allocations: 0 / 0.8741 GB, free: 8.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/2.696, allocations: 4 kB / 0.8741 GB, free: 8.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/2.696, allocations: 396.2 kB / 0.8745 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/2.696, allocations: 0 / 0.8745 GB, free: 8.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/2.697, allocations: 43.17 kB / 0.8745 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000425/2.697, allocations: 71.28 kB / 0.8746 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/2.697, allocations: 15.25 kB / 0.8746 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004043/2.698, allocations: 0.5621 MB / 0.8751 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/2.698, allocations: 0 / 0.8751 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000749/2.698, allocations: 387.1 kB / 0.8755 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/2.698, allocations: 123.4 kB / 0.8756 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/2.698, allocations: 3.312 kB / 0.8756 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/2.699, allocations: 20.5 kB / 0.8756 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/2.699, allocations: 27.39 kB / 0.8757 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/2.699, allocations: 11.19 kB / 0.8757 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002611/2.699, allocations: 235 kB / 0.8759 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.01e-07/2.699, allocations: 0 / 0.8759 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004681/2.704, allocations: 1.467 MB / 0.8773 GB, free: 5.816 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.008619/2.712, allocations: 2.211 MB / 0.8795 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009229/2.713, allocations: 363.4 kB / 0.8798 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/2.713, allocations: 4.875 kB / 0.8798 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002831/2.714, allocations: 109 kB / 0.8799 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/2.714, allocations: 79.67 kB / 0.88 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/2.716, allocations: 0.778 MB / 0.8808 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/2.716, allocations: 0.7951 MB / 0.8816 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002082/2.716, allocations: 50.89 kB / 0.8816 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.639e-05/2.716, allocations: 32.38 kB / 0.8816 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of SimCode: time 4.21e-07/2.716, allocations: 0 / 0.8816 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of Templates: time 0.06532/2.782, allocations: 47.36 MB / 0.9279 GB, free: 2.586 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)