Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8009/0.8009, allocations: 150.9 MB / 166.1 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 11.98 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.14, allocations: 31.33 MB / 235.5 MB, free: 5.43 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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.581/1.721, allocations: 293.8 MB / 0.5168 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0364/1.758, allocations: 35.06 MB / 0.5511 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/1.758, allocations: 4 kB / 0.5511 GB, free: 10.56 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004208/1.759, allocations: 111.5 kB / 0.5512 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/1.759, allocations: 119.2 kB / 0.5513 GB, free: 10.34 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02252/1.781, allocations: 8.557 MB / 0.5597 GB, free: 1.777 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007216/1.782, allocations: 450.6 kB / 0.5601 GB, free: 1.336 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/1.782, allocations: 151.2 kB / 0.5602 GB, free: 1.191 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/1.783, allocations: 187.2 kB / 0.5604 GB, free: 1.008 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/1.783, allocations: 163.2 kB / 0.5606 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/1.783, allocations: 31.94 kB / 0.5606 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02573/1.809, allocations: 17.75 MB / 0.5779 GB, free: 15.04 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/1.809, allocations: 75.69 kB / 0.578 GB, free: 14.96 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/1.809, allocations: 175.1 kB / 0.5782 GB, free: 14.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01794/1.827, allocations: 8.527 MB / 0.5865 GB, free: 6.246 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/1.827, allocations: 4 kB / 0.5865 GB, free: 6.242 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.563e-06/1.827, allocations: 0 / 0.5865 GB, free: 6.242 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/1.827, allocations: 0 / 0.5865 GB, free: 6.242 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004871/1.832, allocations: 1.54 MB / 0.588 GB, free: 4.648 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/1.832, allocations: 8.031 kB / 0.588 GB, free: 4.641 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/1.832, allocations: 43.47 kB / 0.5881 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/1.833, allocations: 270.2 kB / 0.5883 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.35e-05/1.833, allocations: 42.27 kB / 0.5884 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.443e-05/1.833, allocations: 27.91 kB / 0.5884 GB, free: 4.219 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/1.833, allocations: 354.7 kB / 0.5887 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/1.833, allocations: 0 / 0.5887 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/1.833, allocations: 12 kB / 0.5887 GB, free: 3.836 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/1.833, allocations: 20.81 kB / 0.5888 GB, free: 3.816 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/1.834, allocations: 225.8 kB / 0.589 GB, free: 3.594 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/1.851, allocations: 9.98 MB / 0.5987 GB, free: 8.578 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006125/1.852, allocations: 271.4 kB / 0.599 GB, free: 8.301 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/1.852, allocations: 145.2 kB / 0.5991 GB, free: 8.156 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1538/2.006, allocations: 85.47 MB / 0.6826 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/2.006, allocations: 227.9 kB / 0.6828 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/2.006, allocations: 0 / 0.6828 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001208/2.008, allocations: 0.5811 MB / 0.6834 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/2.008, allocations: 85.06 kB / 0.6835 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/2.008, allocations: 246.6 kB / 0.6837 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/2.008, allocations: 29.7 kB / 0.6837 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/2.008, allocations: 172.8 kB / 0.6839 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/2.008, allocations: 149.7 kB / 0.684 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/2.008, allocations: 61.92 kB / 0.6841 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001063/2.008, allocations: 350.8 kB / 0.6844 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/2.009, allocations: 108.8 kB / 0.6845 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/2.009, allocations: 164 kB / 0.6847 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/2.009, allocations: 291.2 kB / 0.685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/2.009, allocations: 0 / 0.685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007649/2.01, allocations: 434.6 kB / 0.6854 GB, free: 6.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/2.01, allocations: 8.125 kB / 0.6854 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/2.01, allocations: 7.938 kB / 0.6854 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/2.011, allocations: 201.5 kB / 0.6856 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/2.011, allocations: 27.92 kB / 0.6856 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/2.013, allocations: 2.422 MB / 0.688 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/2.014, allocations: 40.22 kB / 0.688 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/2.014, allocations: 15.98 kB / 0.688 GB, free: 3.184 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001517/2.014, allocations: 149.9 kB / 0.6882 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/2.014, allocations: 31.53 kB / 0.6882 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007545/2.015, allocations: 0.5678 MB / 0.6888 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004829/2.015, allocations: 363.1 kB / 0.6891 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/2.015, allocations: 192 / 0.6891 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/2.015, allocations: 3.938 kB / 0.6891 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/2.016, allocations: 0.9927 MB / 0.6901 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/2.016, allocations: 0 / 0.6901 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/2.017, allocations: 63.91 kB / 0.6901 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/2.017, allocations: 104.8 kB / 0.6902 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/2.017, allocations: 4 kB / 0.6902 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004404/2.018, allocations: 0.6437 MB / 0.6909 GB, free: 132 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/2.018, allocations: 0 / 0.6909 GB, free: 132 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1709/2.188, allocations: 0.6436 MB / 0.6915 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/2.189, allocations: 134.4 kB / 0.6916 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/2.189, allocations: 13.16 kB / 0.6916 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/2.189, allocations: 21.62 kB / 0.6917 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/2.189, allocations: 33.61 kB / 0.6917 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/2.189, allocations: 11.48 kB / 0.6917 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001933/2.189, allocations: 218.2 kB / 0.6919 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.189, allocations: 1.625 kB / 0.6919 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003204/2.192, allocations: 1.209 MB / 0.6931 GB, free: 226.2 MB / 0.5762 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.004997/2.198, allocations: 1.79 MB / 0.6948 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001045/2.199, allocations: 0.505 MB / 0.6953 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/2.199, allocations: 1.656 kB / 0.6953 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003799/2.199, allocations: 193.5 kB / 0.6955 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007632/2.2, allocations: 125.9 kB / 0.6956 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/2.201, allocations: 1.006 MB / 0.6966 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/2.201, allocations: 0.8099 MB / 0.6974 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001532/2.202, allocations: 36.41 kB / 0.6974 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/2.202, allocations: 34.23 kB / 0.6975 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/2.202, allocations: 0.9375 kB / 0.6975 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04741/2.249, allocations: 44.34 MB / 0.7408 GB, free: 200.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)