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.8176/0.8176, allocations: 150.9 MB / 167.1 MB, free: 14.33 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003253/0.0003253, allocations: 11.98 kB / 205.9 MB, free: 8.945 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1373, allocations: 31.33 MB / 237.3 MB, free: 5.777 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.562/1.699, allocations: 294.7 MB / 0.5195 GB, free: 12.74 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03813/1.737, allocations: 34.85 MB / 0.5535 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003273/1.738, allocations: 4 kB / 0.5535 GB, free: 10 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.0005058/1.738, allocations: 132.2 kB / 0.5536 GB, free: 9.875 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003401/1.739, allocations: 126.9 kB / 0.5538 GB, free: 9.75 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.0227/1.761, allocations: 9.765 MB / 0.5633 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006131/1.762, allocations: 446.6 kB / 0.5637 GB, free: 15.55 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/1.762, allocations: 156.5 kB / 0.5639 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/1.762, allocations: 187.2 kB / 0.564 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/1.763, allocations: 167.2 kB / 0.5642 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/1.763, allocations: 24 kB / 0.5642 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02811/1.791, allocations: 17.9 MB / 0.5817 GB, free: 13.1 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/1.791, allocations: 71.64 kB / 0.5818 GB, free: 13.03 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/1.791, allocations: 179.1 kB / 0.5819 GB, free: 12.86 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/1.808, allocations: 8.503 MB / 0.5902 GB, free: 4.332 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/1.808, allocations: 4 kB / 0.5902 GB, free: 4.328 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.552e-06/1.808, allocations: 3.938 kB / 0.5903 GB, free: 4.324 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/1.808, allocations: 0 / 0.5903 GB, free: 4.324 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.003666/1.812, allocations: 1.54 MB / 0.5918 GB, free: 2.734 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/1.812, allocations: 8.031 kB / 0.5918 GB, free: 2.727 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/1.812, allocations: 43.47 kB / 0.5918 GB, free: 2.684 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/1.812, allocations: 262.3 kB / 0.5921 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.744e-05/1.812, allocations: 46.27 kB / 0.5921 GB, free: 2.336 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.437e-05/1.812, allocations: 23.91 kB / 0.5921 GB, free: 2.312 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000502/1.813, allocations: 354.7 kB / 0.5925 GB, free: 1.938 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/1.813, allocations: 8.875 kB / 0.5925 GB, free: 1.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/1.813, allocations: 12 kB / 0.5925 GB, free: 1.918 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/1.813, allocations: 19.92 kB / 0.5925 GB, free: 1.898 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/1.813, allocations: 225.8 kB / 0.5927 GB, free: 1.676 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.0196/1.833, allocations: 10.03 MB / 0.6025 GB, free: 6.613 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006268/1.833, allocations: 274.9 kB / 0.6028 GB, free: 6.332 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/1.834, allocations: 149.2 kB / 0.6029 GB, free: 6.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1668/2, allocations: 85.98 MB / 0.6869 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/2.001, allocations: 216 kB / 0.6871 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.324e-06/2.001, allocations: 4 kB / 0.6871 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001215/2.002, allocations: 0.5737 MB / 0.6876 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/2.002, allocations: 85.06 kB / 0.6877 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/2.002, allocations: 254.6 kB / 0.688 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/2.002, allocations: 29.7 kB / 0.688 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/2.002, allocations: 164.8 kB / 0.6882 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.639e-05/2.003, allocations: 157.6 kB / 0.6883 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.64e-05/2.003, allocations: 65.95 kB / 0.6884 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001066/2.003, allocations: 342.8 kB / 0.6887 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/2.003, allocations: 108.8 kB / 0.6888 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/2.003, allocations: 160.4 kB / 0.689 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/2.004, allocations: 295.1 kB / 0.6892 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/2.004, allocations: 0 / 0.6892 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007986/2.004, allocations: 442.6 kB / 0.6897 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/2.004, allocations: 4 kB / 0.6897 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/2.004, allocations: 4 kB / 0.6897 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/2.005, allocations: 195.2 kB / 0.6898 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/2.006, allocations: 23.98 kB / 0.6899 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/2.008, allocations: 2.439 MB / 0.6923 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/2.008, allocations: 39.7 kB / 0.6923 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/2.008, allocations: 11.98 kB / 0.6923 GB, free: 0.7109 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.0001475/2.008, allocations: 154.8 kB / 0.6924 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-05/2.008, allocations: 31.53 kB / 0.6925 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1433/2.152, allocations: 0.5606 MB / 0.693 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005829/2.152, allocations: 367.9 kB / 0.6934 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/2.152, allocations: 0 / 0.6934 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/2.152, allocations: 3.75 kB / 0.6934 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/2.154, allocations: 0.9763 MB / 0.6943 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/2.154, allocations: 2.812 kB / 0.6943 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/2.154, allocations: 57.66 kB / 0.6944 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003429/2.154, allocations: 100.1 kB / 0.6945 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/2.154, allocations: 9.844 kB / 0.6945 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003597/2.155, allocations: 0.6349 MB / 0.6951 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/2.155, allocations: 0 / 0.6951 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008393/2.155, allocations: 0.6589 MB / 0.6958 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.493e-05/2.156, allocations: 134 kB / 0.6959 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/2.156, allocations: 6.156 kB / 0.6959 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/2.156, allocations: 20.88 kB / 0.6959 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/2.156, allocations: 37.27 kB / 0.696 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/2.156, allocations: 7.828 kB / 0.696 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001821/2.156, allocations: 220.1 kB / 0.6962 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.11e-07/2.156, allocations: 0 / 0.6962 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002751/2.159, allocations: 1.214 MB / 0.6974 GB, free: 224.8 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.004294/2.163, allocations: 1.738 MB / 0.6991 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008779/2.164, allocations: 490.6 kB / 0.6995 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/2.164, allocations: 1.875 kB / 0.6995 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003854/2.165, allocations: 196.1 kB / 0.6997 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000695/2.165, allocations: 135.3 kB / 0.6998 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/2.167, allocations: 0.8604 MB / 0.7007 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/2.167, allocations: 0.8073 MB / 0.7015 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001227/2.167, allocations: 36.81 kB / 0.7015 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/2.167, allocations: 31.7 kB / 0.7015 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/2.167, allocations: 0.6875 kB / 0.7015 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.0449/2.212, allocations: 44.07 MB / 0.7446 GB, free: 198.9 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)