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.8967/0.8967, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003964, allocations: 17.19 kB / 237.8 MB, free: 1.793 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06975/0.07016, allocations: 31.35 MB / 269.1 MB, free: 7.051 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.808/1.878, allocations: 295.2 MB / 0.5511 GB, free: 12.92 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5955/2.474, allocations: 187.8 MB / 0.7345 GB, free: 1.82 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004539/2.474, allocations: 12.34 kB / 0.7345 GB, free: 1.82 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.0002673/2.474, allocations: 57 kB / 0.7346 GB, free: 1.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004357/2.475, allocations: 151.5 kB / 0.7347 GB, free: 1.82 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.03899/2.514, allocations: 11.72 MB / 0.7462 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007829/2.515, allocations: 492.7 kB / 0.7466 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/2.515, allocations: 239.8 kB / 0.7469 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/2.515, allocations: 212.8 kB / 0.7471 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/2.516, allocations: 221.7 kB / 0.7473 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.678e-05/2.516, allocations: 41.66 kB / 0.7473 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04108/2.557, allocations: 19.91 MB / 0.7668 GB, free: 0.8945 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002412/2.557, allocations: 97.45 kB / 0.7668 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003967/2.558, allocations: 224.1 kB / 0.7671 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03191/2.589, allocations: 9.906 MB / 0.7767 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/2.589, allocations: 1.031 kB / 0.7767 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.774e-06/2.589, allocations: 0 / 0.7767 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.453e-05/2.59, allocations: 0 / 0.7767 GB, free: 13.39 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.007066/2.597, allocations: 1.931 MB / 0.7786 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/2.597, allocations: 9.406 kB / 0.7786 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/2.597, allocations: 53.88 kB / 0.7787 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006415/2.597, allocations: 348.3 kB / 0.779 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.55e-05/2.598, allocations: 58.48 kB / 0.7791 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.532e-05/2.598, allocations: 37.72 kB / 0.7791 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/2.598, allocations: 404.7 kB / 0.7795 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/2.598, allocations: 4.062 kB / 0.7795 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/2.599, allocations: 14.94 kB / 0.7795 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/2.599, allocations: 14.19 kB / 0.7795 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000595/2.599, allocations: 283.5 kB / 0.7798 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/2.601, allocations: 2.024 MB / 0.7818 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/2.602, allocations: 215.9 kB / 0.782 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/2.602, allocations: 86.12 kB / 0.7821 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2556/2.858, allocations: 123.2 MB / 0.9024 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/2.858, allocations: 149 kB / 0.9025 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=21): time 2.885e-06/2.858, allocations: 0 / 0.9025 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001145/2.86, allocations: 409.6 kB / 0.9029 GB, free: 7.73 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/2.86, allocations: 51.41 kB / 0.903 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/2.86, allocations: 324.4 kB / 0.9033 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/2.86, allocations: 29.7 kB / 0.9033 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/2.86, allocations: 251.8 kB / 0.9036 GB, free: 7.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.788e-05/2.86, allocations: 74.55 kB / 0.9036 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/2.86, allocations: 69.97 kB / 0.9037 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001456/2.861, allocations: 338.8 kB / 0.904 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/2.861, allocations: 84.61 kB / 0.9041 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/2.861, allocations: 182.1 kB / 0.9043 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004274/2.861, allocations: 263.7 kB / 0.9045 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/2.862, allocations: 3.938 kB / 0.9045 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009002/2.862, allocations: 389.4 kB / 0.9049 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/2.862, allocations: 8 kB / 0.9049 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/2.862, allocations: 4 kB / 0.9049 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/2.864, allocations: 165.2 kB / 0.9051 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/2.864, allocations: 62.25 kB / 0.9051 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/2.866, allocations: 2.375 MB / 0.9074 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/2.867, allocations: 47.7 kB / 0.9075 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/2.867, allocations: 20.05 kB / 0.9075 GB, free: 2.785 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.000214/2.867, allocations: 162.4 kB / 0.9077 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.087e-05/2.867, allocations: 35.77 kB / 0.9077 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007921/2.868, allocations: 323.3 kB / 0.908 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/2.868, allocations: 1.203 kB / 0.908 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/2.868, allocations: 0 / 0.908 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/2.868, allocations: 131.3 kB / 0.9081 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/2.868, allocations: 4 kB / 0.9081 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/2.868, allocations: 23.97 kB / 0.9082 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/2.868, allocations: 23.97 kB / 0.9082 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007982/2.869, allocations: 342.8 kB / 0.9085 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006596/2.87, allocations: 480.8 kB / 0.909 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001648/2.87, allocations: 80.02 kB / 0.909 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002512/2.87, allocations: 219.1 kB / 0.9093 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of Backend: time 1.433e-06/2.87, allocations: 4 kB / 0.9093 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0158/2.886, allocations: 3.726 MB / 0.9129 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of SimCode: time 0.001838/2.888, allocations: 1.283 MB / 0.9142 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of Templates: time 0.1084/2.996, allocations: 73.69 MB / 0.9861 GB, free: 2.672 MB / 0.8106 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)