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.8002/0.8002, allocations: 150.9 MB / 166.4 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 19.97 kB / 204.5 MB, free: 9.762 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1475, allocations: 31.32 MB / 235.9 MB, free: 5.414 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.53/1.677, allocations: 294.9 MB / 0.5183 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03774/1.715, allocations: 34.86 MB / 0.5523 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/1.715, allocations: 0 / 0.5523 GB, free: 10.38 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.0004204/1.716, allocations: 123.3 kB / 0.5524 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/1.716, allocations: 130.9 kB / 0.5526 GB, free: 10.13 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.02226/1.738, allocations: 9.756 MB / 0.5621 GB, free: 380 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006861/1.739, allocations: 458.6 kB / 0.5625 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000276/1.739, allocations: 147.8 kB / 0.5627 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/1.74, allocations: 187.2 kB / 0.5629 GB, free: 15.59 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/1.74, allocations: 159.3 kB / 0.563 GB, free: 15.44 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.531e-05/1.74, allocations: 24 kB / 0.563 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02819/1.768, allocations: 17.69 MB / 0.5803 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/1.768, allocations: 71.58 kB / 0.5804 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/1.769, allocations: 179 kB / 0.5805 GB, free: 13.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01841/1.787, allocations: 8.507 MB / 0.5888 GB, free: 4.934 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/1.787, allocations: 0 / 0.5888 GB, free: 4.934 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.404e-06/1.787, allocations: 4 kB / 0.5889 GB, free: 4.93 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.435e-06/1.787, allocations: 0 / 0.5889 GB, free: 4.93 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.004059/1.791, allocations: 1.545 MB / 0.5904 GB, free: 3.336 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/1.791, allocations: 12.03 kB / 0.5904 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.063e-05/1.791, allocations: 43.47 kB / 0.5904 GB, free: 3.281 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002741/1.792, allocations: 266.3 kB / 0.5907 GB, free: 2.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.425e-05/1.792, allocations: 46.27 kB / 0.5907 GB, free: 2.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/1.792, allocations: 27.91 kB / 0.5907 GB, free: 2.902 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/1.792, allocations: 354.7 kB / 0.5911 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/1.792, allocations: 1.453 kB / 0.5911 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/1.792, allocations: 12 kB / 0.5911 GB, free: 2.516 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/1.792, allocations: 19.92 kB / 0.5911 GB, free: 2.496 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003789/1.793, allocations: 225.7 kB / 0.5913 GB, free: 2.273 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.01986/1.812, allocations: 9.978 MB / 0.6011 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/1.813, allocations: 275 kB / 0.6013 GB, free: 6.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/1.813, allocations: 141.2 kB / 0.6015 GB, free: 6.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1723/1.986, allocations: 85.47 MB / 0.6849 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004247/1.986, allocations: 224 kB / 0.6851 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.254e-06/1.986, allocations: 0 / 0.6851 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001271/1.987, allocations: 0.5697 MB / 0.6857 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/1.987, allocations: 93.03 kB / 0.6858 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/1.988, allocations: 254.6 kB / 0.686 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/1.988, allocations: 33.64 kB / 0.6861 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/1.988, allocations: 160.9 kB / 0.6862 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/1.988, allocations: 165.6 kB / 0.6864 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/1.988, allocations: 61.92 kB / 0.6864 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.988, allocations: 342.8 kB / 0.6868 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/1.989, allocations: 108.8 kB / 0.6869 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/1.989, allocations: 164.1 kB / 0.687 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/1.989, allocations: 291.2 kB / 0.6873 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.989, allocations: 0 / 0.6873 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008568/1.99, allocations: 430.6 kB / 0.6877 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.99, allocations: 7.938 kB / 0.6877 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/1.99, allocations: 4 kB / 0.6877 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/1.991, allocations: 201.6 kB / 0.6879 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/1.991, allocations: 27.97 kB / 0.6879 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002424/1.994, allocations: 2.428 MB / 0.6903 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/1.994, allocations: 39.61 kB / 0.6903 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/1.994, allocations: 8 kB / 0.6904 GB, free: 1.879 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.0001811/1.994, allocations: 155.2 kB / 0.6905 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/1.994, allocations: 31.53 kB / 0.6905 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008898/1.995, allocations: 0.564 MB / 0.6911 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005606/1.996, allocations: 370.3 kB / 0.6914 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/1.996, allocations: 4 kB / 0.6914 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/1.996, allocations: 3.938 kB / 0.6914 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1447/2.14, allocations: 0.9852 MB / 0.6924 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/2.14, allocations: 2.906 kB / 0.6924 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/2.141, allocations: 57.53 kB / 0.6925 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004336/2.141, allocations: 101.1 kB / 0.6926 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/2.141, allocations: 7.406 kB / 0.6926 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004909/2.142, allocations: 0.6365 MB / 0.6932 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/2.142, allocations: 0 / 0.6932 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/2.143, allocations: 0.6507 MB / 0.6938 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/2.143, allocations: 129 kB / 0.6939 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.795e-05/2.143, allocations: 23.67 kB / 0.694 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/2.143, allocations: 19.58 kB / 0.694 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/2.144, allocations: 29.12 kB / 0.694 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/2.144, allocations: 12.77 kB / 0.694 GB, free: 225 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002616/2.144, allocations: 219.5 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/2.144, allocations: 0.6875 kB / 0.6942 GB, free: 225 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003956/2.148, allocations: 1.207 MB / 0.6954 GB, free: 224.9 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.005382/2.153, allocations: 1.73 MB / 0.6971 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001021/2.154, allocations: 0.5034 MB / 0.6976 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/2.154, allocations: 1.031 kB / 0.6976 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004293/2.155, allocations: 197.6 kB / 0.6978 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.0007983/2.155, allocations: 134.4 kB / 0.6979 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/2.157, allocations: 0.8748 MB / 0.6988 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/2.157, allocations: 0.8073 MB / 0.6996 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001697/2.157, allocations: 33.2 kB / 0.6996 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.718e-05/2.157, allocations: 31.59 kB / 0.6996 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.313e-06/2.157, allocations: 0.5938 kB / 0.6996 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.04851/2.206, allocations: 44.17 MB / 0.7428 GB, free: 199.2 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)