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.8189/0.8189, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.000313, allocations: 15.97 kB / 205.9 MB, free: 9.047 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1298, allocations: 31.32 MB / 237.3 MB, free: 5.738 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.563/1.693, allocations: 294.8 MB / 0.5196 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03685/1.73, allocations: 34.85 MB / 0.5536 GB, free: 9.977 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/1.73, allocations: 0 / 0.5536 GB, free: 9.977 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.0003882/1.731, allocations: 135.2 kB / 0.5537 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002653/1.731, allocations: 130.9 kB / 0.5538 GB, free: 9.715 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.02207/1.753, allocations: 9.761 MB / 0.5634 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005663/1.754, allocations: 446.7 kB / 0.5638 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/1.754, allocations: 154.8 kB / 0.5639 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/1.754, allocations: 183.2 kB / 0.5641 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/1.754, allocations: 167.2 kB / 0.5643 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.755e-05/1.754, allocations: 24 kB / 0.5643 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02709/1.781, allocations: 17.91 MB / 0.5818 GB, free: 13.06 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/1.782, allocations: 67.7 kB / 0.5819 GB, free: 12.99 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002141/1.782, allocations: 179.1 kB / 0.582 GB, free: 12.82 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0157/1.798, allocations: 8.495 MB / 0.5903 GB, free: 4.301 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.798, allocations: 0 / 0.5903 GB, free: 4.301 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/1.798, allocations: 0 / 0.5903 GB, free: 4.301 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/1.798, allocations: 4 kB / 0.5903 GB, free: 4.297 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.003532/1.801, allocations: 1.548 MB / 0.5918 GB, free: 2.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/1.801, allocations: 8.031 kB / 0.5919 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.026e-05/1.801, allocations: 43.47 kB / 0.5919 GB, free: 2.648 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/1.802, allocations: 254.3 kB / 0.5921 GB, free: 2.359 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.347e-05/1.802, allocations: 50.27 kB / 0.5922 GB, free: 2.305 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/1.802, allocations: 27.91 kB / 0.5922 GB, free: 2.277 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/1.802, allocations: 355.6 kB / 0.5926 GB, free: 1.902 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.802, allocations: 0 / 0.5926 GB, free: 1.902 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/1.802, allocations: 12 kB / 0.5926 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/1.802, allocations: 23.92 kB / 0.5926 GB, free: 1.867 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/1.803, allocations: 217.8 kB / 0.5928 GB, free: 1.652 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.01953/1.822, allocations: 10.04 MB / 0.6026 GB, free: 6.582 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/1.823, allocations: 270.9 kB / 0.6029 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/1.823, allocations: 145.2 kB / 0.603 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1636/1.987, allocations: 85.98 MB / 0.687 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000385/1.987, allocations: 227.9 kB / 0.6872 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/1.987, allocations: 0 / 0.6872 GB, free: 6.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001201/1.988, allocations: 0.5768 MB / 0.6877 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/1.988, allocations: 85.06 kB / 0.6878 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/1.989, allocations: 246.6 kB / 0.6881 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/1.989, allocations: 33.7 kB / 0.6881 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/1.989, allocations: 164.8 kB / 0.6882 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/1.989, allocations: 153.6 kB / 0.6884 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/1.989, allocations: 66.2 kB / 0.6884 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.989, allocations: 346.8 kB / 0.6888 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/1.989, allocations: 116.7 kB / 0.6889 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/1.989, allocations: 160 kB / 0.689 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004025/1.99, allocations: 291.2 kB / 0.6893 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.99, allocations: 0 / 0.6893 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008225/1.991, allocations: 434.6 kB / 0.6897 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.991, allocations: 8 kB / 0.6897 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/1.991, allocations: 4.125 kB / 0.6897 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009781/1.992, allocations: 195.5 kB / 0.6899 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/1.992, allocations: 31.91 kB / 0.69 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/1.994, allocations: 2.432 MB / 0.6923 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/1.994, allocations: 39.83 kB / 0.6924 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.677e-05/1.994, allocations: 15.98 kB / 0.6924 GB, free: 0.6758 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.0001502/1.995, allocations: 149.7 kB / 0.6925 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/1.995, allocations: 39.47 kB / 0.6926 GB, free: 492 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1421/2.137, allocations: 0.5526 MB / 0.6931 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005495/2.137, allocations: 365 kB / 0.6935 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/2.137, allocations: 1.594 kB / 0.6935 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/2.137, allocations: 6.891 kB / 0.6935 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/2.139, allocations: 0.9707 MB / 0.6944 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/2.139, allocations: 2.531 kB / 0.6944 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/2.139, allocations: 59.86 kB / 0.6945 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003608/2.139, allocations: 103 kB / 0.6946 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/2.139, allocations: 7.891 kB / 0.6946 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003856/2.14, allocations: 0.6372 MB / 0.6952 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/2.14, allocations: 2.219 kB / 0.6952 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008632/2.141, allocations: 0.6517 MB / 0.6958 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.799e-05/2.141, allocations: 131.4 kB / 0.696 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/2.141, allocations: 18.77 kB / 0.696 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/2.141, allocations: 15.41 kB / 0.696 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/2.141, allocations: 36.62 kB / 0.696 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/2.141, allocations: 12.02 kB / 0.696 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001955/2.141, allocations: 218.8 kB / 0.6963 GB, free: 225 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.141, allocations: 0 / 0.6963 GB, free: 225 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002706/2.144, allocations: 1.211 MB / 0.6974 GB, free: 225 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.004301/2.148, allocations: 1.733 MB / 0.6991 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009177/2.149, allocations: 0.4899 MB / 0.6996 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/2.149, allocations: 0.5625 kB / 0.6996 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003981/2.15, allocations: 192.6 kB / 0.6998 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000746/2.15, allocations: 140.6 kB / 0.6999 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/2.152, allocations: 0.8639 MB / 0.7008 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/2.152, allocations: 0.8052 MB / 0.7016 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000119/2.152, allocations: 30.62 kB / 0.7016 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/2.152, allocations: 33.84 kB / 0.7016 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of SimCode: time 8.41e-07/2.152, allocations: 0 / 0.7016 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.04484/2.197, allocations: 44.06 MB / 0.7446 GB, free: 198.8 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 gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)