Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8067/0.8067, allocations: 150.9 MB / 166.4 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 19.97 kB / 204.5 MB, free: 9.762 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1371, 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.Examples.SimpleExamples.TestDynamicCheckValve): time 1.56/1.697, allocations: 295 MB / 0.5184 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03835/1.735, allocations: 34.86 MB / 0.5524 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002541/1.736, allocations: 4 kB / 0.5524 GB, free: 10.36 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.0004164/1.736, allocations: 123.3 kB / 0.5525 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/1.736, allocations: 130.9 kB / 0.5527 GB, free: 10.11 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.02368/1.76, allocations: 9.758 MB / 0.5622 GB, free: 352 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/1.761, allocations: 450.6 kB / 0.5626 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/1.761, allocations: 150.4 kB / 0.5628 GB, free: 15.75 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/1.761, allocations: 179.2 kB / 0.5629 GB, free: 15.58 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/1.761, allocations: 175.2 kB / 0.5631 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/1.762, allocations: 24 kB / 0.5631 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02823/1.79, allocations: 17.68 MB / 0.5804 GB, free: 13.68 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001609/1.79, allocations: 71.69 kB / 0.5805 GB, free: 13.61 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/1.79, allocations: 171.1 kB / 0.5806 GB, free: 13.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01768/1.808, allocations: 8.515 MB / 0.5889 GB, free: 4.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/1.808, allocations: 0 / 0.5889 GB, free: 4.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.808, allocations: 0 / 0.5889 GB, free: 4.91 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/1.808, allocations: 0 / 0.5889 GB, free: 4.91 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.003954/1.812, allocations: 1.544 MB / 0.5904 GB, free: 3.316 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/1.812, allocations: 12.03 kB / 0.5905 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/1.812, allocations: 39.47 kB / 0.5905 GB, free: 3.266 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/1.812, allocations: 266.3 kB / 0.5908 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/1.812, allocations: 50.25 kB / 0.5908 GB, free: 2.91 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.753e-05/1.812, allocations: 31.91 kB / 0.5908 GB, free: 2.879 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/1.813, allocations: 346.7 kB / 0.5912 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/1.813, allocations: 0.5156 kB / 0.5912 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/1.813, allocations: 11.94 kB / 0.5912 GB, free: 2.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/1.813, allocations: 19.92 kB / 0.5912 GB, free: 2.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003807/1.813, allocations: 229.7 kB / 0.5914 GB, free: 2.254 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.01999/1.833, allocations: 9.978 MB / 0.6012 GB, free: 7.242 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/1.834, allocations: 271 kB / 0.6014 GB, free: 6.965 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/1.834, allocations: 145.2 kB / 0.6016 GB, free: 6.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1722/2.007, allocations: 85.47 MB / 0.685 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003953/2.007, allocations: 216 kB / 0.6852 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.335e-06/2.007, allocations: 0 / 0.6852 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001247/2.008, allocations: 0.5816 MB / 0.6858 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/2.008, allocations: 81.06 kB / 0.6859 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/2.009, allocations: 258.6 kB / 0.6861 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/2.009, allocations: 29.7 kB / 0.6861 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.984e-05/2.009, allocations: 160.9 kB / 0.6863 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/2.009, allocations: 165.6 kB / 0.6865 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.737e-05/2.009, allocations: 61.92 kB / 0.6865 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001197/2.009, allocations: 342.8 kB / 0.6868 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/2.009, allocations: 108.8 kB / 0.6869 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/2.009, allocations: 156.1 kB / 0.6871 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/2.01, allocations: 291.2 kB / 0.6874 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.01, allocations: 0 / 0.6874 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008417/2.011, allocations: 438.7 kB / 0.6878 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/2.011, allocations: 6 kB / 0.6878 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/2.011, allocations: 3.938 kB / 0.6878 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/2.012, allocations: 209.4 kB / 0.688 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/2.012, allocations: 23.92 kB / 0.688 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/2.014, allocations: 2.428 MB / 0.6904 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/2.014, allocations: 39.64 kB / 0.6904 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/2.014, allocations: 12.11 kB / 0.6904 GB, free: 1.859 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.000162/2.015, allocations: 157.7 kB / 0.6906 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/2.015, allocations: 31.53 kB / 0.6906 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008247/2.015, allocations: 0.5639 MB / 0.6912 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005243/2.016, allocations: 366.3 kB / 0.6915 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/2.016, allocations: 0 / 0.6915 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/2.016, allocations: 3.938 kB / 0.6915 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1487/2.165, allocations: 0.991 MB / 0.6925 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/2.165, allocations: 0 / 0.6925 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/2.165, allocations: 61.62 kB / 0.6926 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003958/2.166, allocations: 99.2 kB / 0.6927 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/2.166, allocations: 6.984 kB / 0.6927 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004226/2.166, allocations: 0.6366 MB / 0.6933 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/2.166, allocations: 0 / 0.6933 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009299/2.167, allocations: 0.6593 MB / 0.6939 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/2.167, allocations: 128.9 kB / 0.694 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.285e-05/2.167, allocations: 12.31 kB / 0.6941 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/2.167, allocations: 17.97 kB / 0.6941 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/2.167, allocations: 33.84 kB / 0.6941 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.809e-05/2.167, allocations: 13.7 kB / 0.6941 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002137/2.168, allocations: 218 kB / 0.6943 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/2.168, allocations: 1.969 kB / 0.6943 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003051/2.171, allocations: 1.209 MB / 0.6955 GB, free: 225.1 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.005054/2.176, allocations: 1.735 MB / 0.6972 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001039/2.177, allocations: 0.5025 MB / 0.6977 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2.177, allocations: 3 kB / 0.6977 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004118/2.177, allocations: 200.1 kB / 0.6979 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008121/2.178, allocations: 126.9 kB / 0.698 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/2.18, allocations: 0.8725 MB / 0.6989 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/2.18, allocations: 0.807 MB / 0.6997 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001481/2.18, allocations: 38.98 kB / 0.6997 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.927e-05/2.18, allocations: 31.72 kB / 0.6997 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/2.18, allocations: 2.5 kB / 0.6997 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04644/2.227, allocations: 44.16 MB / 0.7428 GB, free: 199.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)