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.8367/0.8367, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003481, allocations: 23.95 kB / 206 MB, free: 9.062 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1347, allocations: 31.32 MB / 237.3 MB, free: 5.734 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.576/1.711, allocations: 294.8 MB / 0.5196 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03927/1.751, allocations: 34.85 MB / 0.5536 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/1.751, allocations: 0 / 0.5536 GB, free: 10.28 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.0004142/1.751, allocations: 124.8 kB / 0.5537 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/1.751, allocations: 134.9 kB / 0.5539 GB, free: 10.03 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.02354/1.775, allocations: 9.758 MB / 0.5634 GB, free: 268 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000625/1.776, allocations: 454.6 kB / 0.5638 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/1.776, allocations: 140.2 kB / 0.5639 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/1.776, allocations: 195.2 kB / 0.5641 GB, free: 15.49 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/1.776, allocations: 167.2 kB / 0.5643 GB, free: 15.32 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.726e-05/1.776, allocations: 24 kB / 0.5643 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02846/1.805, allocations: 17.9 MB / 0.5818 GB, free: 13.38 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/1.805, allocations: 67.7 kB / 0.5819 GB, free: 13.31 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002479/1.805, allocations: 183 kB / 0.582 GB, free: 13.13 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01717/1.823, allocations: 8.492 MB / 0.5903 GB, free: 4.617 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.375e-06/1.823, allocations: 0 / 0.5903 GB, free: 4.617 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.266e-06/1.823, allocations: 7.938 kB / 0.5903 GB, free: 4.609 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/1.823, allocations: 0 / 0.5903 GB, free: 4.609 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.004209/1.827, allocations: 1.544 MB / 0.5918 GB, free: 3.016 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/1.827, allocations: 8.031 kB / 0.5919 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.445e-05/1.827, allocations: 43.47 kB / 0.5919 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/1.827, allocations: 262.3 kB / 0.5921 GB, free: 2.668 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.659e-05/1.827, allocations: 42.27 kB / 0.5922 GB, free: 2.621 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/1.827, allocations: 31.84 kB / 0.5922 GB, free: 2.59 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005371/1.828, allocations: 354.7 kB / 0.5926 GB, free: 2.215 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/1.828, allocations: 7.938 kB / 0.5926 GB, free: 2.207 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/1.828, allocations: 12 kB / 0.5926 GB, free: 2.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/1.828, allocations: 19.92 kB / 0.5926 GB, free: 2.176 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003851/1.828, allocations: 222.6 kB / 0.5928 GB, free: 1.957 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.01972/1.848, allocations: 10.03 MB / 0.6026 GB, free: 6.895 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000653/1.849, allocations: 279.9 kB / 0.6029 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/1.849, allocations: 141.2 kB / 0.603 GB, free: 6.469 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1703/2.019, allocations: 85.99 MB / 0.687 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/2.02, allocations: 216 kB / 0.6872 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.904e-06/2.02, allocations: 0 / 0.6872 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.00128/2.021, allocations: 0.5768 MB / 0.6877 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/2.021, allocations: 81.06 kB / 0.6878 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/2.021, allocations: 254.6 kB / 0.6881 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/2.021, allocations: 33.73 kB / 0.6881 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/2.022, allocations: 160.8 kB / 0.6882 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/2.022, allocations: 161.6 kB / 0.6884 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.691e-05/2.022, allocations: 61.92 kB / 0.6885 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001307/2.022, allocations: 342.8 kB / 0.6888 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/2.022, allocations: 108.8 kB / 0.6889 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/2.022, allocations: 160.1 kB / 0.689 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/2.023, allocations: 295.1 kB / 0.6893 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/2.023, allocations: 288 / 0.6893 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008696/2.024, allocations: 442.6 kB / 0.6897 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/2.024, allocations: 5.406 kB / 0.6898 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/2.024, allocations: 3.938 kB / 0.6898 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/2.025, allocations: 199.2 kB / 0.6899 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/2.025, allocations: 23.92 kB / 0.69 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/2.027, allocations: 2.43 MB / 0.6923 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/2.028, allocations: 35.7 kB / 0.6924 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/2.028, allocations: 15.97 kB / 0.6924 GB, free: 0.9961 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.0001838/2.028, allocations: 162.8 kB / 0.6925 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/2.028, allocations: 31.53 kB / 0.6926 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008158/2.029, allocations: 0.5561 MB / 0.6931 GB, free: 208 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1528/2.182, allocations: 362.9 kB / 0.6935 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/2.182, allocations: 0 / 0.6935 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/2.182, allocations: 5.625 kB / 0.6935 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/2.183, allocations: 0.9797 MB / 0.6944 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/2.183, allocations: 2.297 kB / 0.6944 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002943/2.183, allocations: 58.17 kB / 0.6945 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000347/2.184, allocations: 101.7 kB / 0.6946 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/2.184, allocations: 5.75 kB / 0.6946 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003943/2.184, allocations: 0.6409 MB / 0.6952 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.184, allocations: 0 / 0.6952 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009037/2.185, allocations: 0.6563 MB / 0.6959 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/2.185, allocations: 133.4 kB / 0.696 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/2.185, allocations: 13.23 kB / 0.696 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/2.185, allocations: 15.86 kB / 0.696 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/2.185, allocations: 36.38 kB / 0.696 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/2.186, allocations: 7.812 kB / 0.6961 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002058/2.186, allocations: 218.2 kB / 0.6963 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/2.186, allocations: 1.562 kB / 0.6963 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003052/2.189, allocations: 1.208 MB / 0.6974 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.005168/2.194, allocations: 1.742 MB / 0.6991 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001016/2.195, allocations: 498.7 kB / 0.6996 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/2.195, allocations: 1.5 kB / 0.6996 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003968/2.195, allocations: 195.5 kB / 0.6998 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.0007525/2.196, allocations: 130.5 kB / 0.6999 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/2.198, allocations: 0.8625 MB / 0.7008 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/2.198, allocations: 0.8066 MB / 0.7016 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001529/2.198, allocations: 38.44 kB / 0.7016 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/2.198, allocations: 32.64 kB / 0.7016 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/2.198, allocations: 0 / 0.7016 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04778/2.246, allocations: 44.06 MB / 0.7447 GB, free: 199 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)