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.8039/0.8039, allocations: 150.9 MB / 166.7 MB, free: 14.91 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003181, allocations: 15.98 kB / 204.8 MB, free: 10.19 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1855, allocations: 31.33 MB / 236.1 MB, free: 5.402 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.612/1.798, allocations: 293.8 MB / 0.5175 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0386/1.837, allocations: 35.07 MB / 0.5518 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002511/1.837, allocations: 0 / 0.5518 GB, free: 10.52 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.000434/1.837, allocations: 104.2 kB / 0.5519 GB, free: 10.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/1.838, allocations: 115.1 kB / 0.552 GB, free: 10.3 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.02245/1.86, allocations: 8.566 MB / 0.5604 GB, free: 1.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006021/1.861, allocations: 450.6 kB / 0.5608 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/1.861, allocations: 150.9 kB / 0.5609 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/1.861, allocations: 187.2 kB / 0.5611 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/1.861, allocations: 167.2 kB / 0.5613 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.29e-05/1.861, allocations: 24 kB / 0.5613 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02609/1.888, allocations: 17.76 MB / 0.5786 GB, free: 14.99 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/1.888, allocations: 71.7 kB / 0.5787 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002114/1.888, allocations: 179 kB / 0.5789 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009862/1.898, allocations: 5.762 MB / 0.5845 GB, free: 8.969 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/1.898, allocations: 0 / 0.5845 GB, free: 8.969 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/1.898, allocations: 3.938 kB / 0.5845 GB, free: 8.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/1.898, allocations: 0 / 0.5845 GB, free: 8.965 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.004315/1.902, allocations: 1.544 MB / 0.586 GB, free: 7.367 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/1.902, allocations: 8.031 kB / 0.586 GB, free: 7.359 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.431e-05/1.902, allocations: 47.47 kB / 0.5861 GB, free: 7.312 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/1.903, allocations: 266.3 kB / 0.5863 GB, free: 7.012 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.834e-05/1.903, allocations: 46.27 kB / 0.5864 GB, free: 6.961 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/1.903, allocations: 29.08 kB / 0.5864 GB, free: 6.934 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/1.903, allocations: 350.7 kB / 0.5867 GB, free: 6.566 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/1.903, allocations: 0 / 0.5867 GB, free: 6.566 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/1.903, allocations: 15.98 kB / 0.5868 GB, free: 6.551 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/1.903, allocations: 19.88 kB / 0.5868 GB, free: 6.531 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/1.904, allocations: 221.8 kB / 0.587 GB, free: 6.312 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.01759/1.921, allocations: 9.985 MB / 0.5967 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/1.922, allocations: 274.9 kB / 0.597 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/1.922, allocations: 145.2 kB / 0.5971 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1525/2.075, allocations: 85.48 MB / 0.6806 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004215/2.075, allocations: 220 kB / 0.6808 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/2.075, allocations: 4 kB / 0.6808 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001224/2.076, allocations: 0.5733 MB / 0.6814 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/2.076, allocations: 89.09 kB / 0.6815 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/2.077, allocations: 254.6 kB / 0.6817 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/2.077, allocations: 29.7 kB / 0.6817 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/2.077, allocations: 168.8 kB / 0.6819 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/2.077, allocations: 153.7 kB / 0.682 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.411e-05/2.077, allocations: 65.91 kB / 0.6821 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001371/2.077, allocations: 338.8 kB / 0.6824 GB, free: 9.805 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/2.077, allocations: 112.8 kB / 0.6825 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/2.078, allocations: 164.1 kB / 0.6827 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/2.078, allocations: 283.2 kB / 0.683 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/2.078, allocations: 7.938 kB / 0.683 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008286/2.079, allocations: 434.6 kB / 0.6834 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/2.079, allocations: 5.094 kB / 0.6834 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/2.079, allocations: 4.125 kB / 0.6834 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009878/2.08, allocations: 193.5 kB / 0.6836 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/2.08, allocations: 23.98 kB / 0.6836 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/2.082, allocations: 2.434 MB / 0.686 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/2.083, allocations: 43.64 kB / 0.686 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/2.083, allocations: 13.77 kB / 0.686 GB, free: 5.898 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.000167/2.083, allocations: 154.3 kB / 0.6862 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.647e-05/2.083, allocations: 31.53 kB / 0.6862 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008174/2.084, allocations: 0.5639 MB / 0.6868 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004928/2.084, allocations: 366.3 kB / 0.6871 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/2.084, allocations: 0 / 0.6871 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/2.084, allocations: 11.92 kB / 0.6871 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/2.086, allocations: 0.9755 MB / 0.6881 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/2.086, allocations: 0 / 0.6881 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/2.086, allocations: 59.91 kB / 0.6881 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/2.086, allocations: 104.8 kB / 0.6882 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/2.086, allocations: 13.31 kB / 0.6882 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004687/2.087, allocations: 0.6317 MB / 0.6889 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/2.087, allocations: 4.031 kB / 0.6889 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009743/2.088, allocations: 0.6467 MB / 0.6895 GB, free: 2.188 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/2.088, allocations: 140.5 kB / 0.6896 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.186e-05/2.088, allocations: 8 kB / 0.6896 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/2.088, allocations: 23.98 kB / 0.6897 GB, free: 2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/2.088, allocations: 27.95 kB / 0.6897 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/2.088, allocations: 20.05 kB / 0.6897 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001871/2.088, allocations: 214 kB / 0.6899 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.088, allocations: 0 / 0.6899 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003314/2.092, allocations: 1.21 MB / 0.6911 GB, free: 0.5352 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.1553/2.247, allocations: 1.798 MB / 0.6929 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00113/2.248, allocations: 0.4981 MB / 0.6933 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/2.248, allocations: 0.5938 kB / 0.6933 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003986/2.249, allocations: 194.1 kB / 0.6935 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007799/2.249, allocations: 127.8 kB / 0.6936 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/2.251, allocations: 1.041 MB / 0.6947 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/2.251, allocations: 0.8096 MB / 0.6955 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.658e-05/2.251, allocations: 34.83 kB / 0.6955 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/2.251, allocations: 0 / 0.6955 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.03367/2.285, allocations: 26.89 MB / 0.7217 GB, free: 217.5 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)