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.8278/0.8278, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003028/0.0003029, allocations: 16.66 kB / 237.1 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04796/0.04828, allocations: 31.36 MB / 268.5 MB, free: 7.012 MB / 222.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.565/1.613, allocations: 294.9 MB / 0.5502 GB, free: 12.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03828/1.652, allocations: 34.85 MB / 0.5842 GB, free: 9.805 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/1.652, allocations: 0 / 0.5842 GB, free: 9.805 MB / 478.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.0003928/1.652, allocations: 123.2 kB / 0.5843 GB, free: 9.684 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002923/1.653, allocations: 138.9 kB / 0.5845 GB, free: 9.547 MB / 478.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.02242/1.675, allocations: 9.758 MB / 0.594 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/1.676, allocations: 450.5 kB / 0.5944 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/1.676, allocations: 156.5 kB / 0.5946 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/1.676, allocations: 187.2 kB / 0.5948 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/1.676, allocations: 171.2 kB / 0.5949 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/1.677, allocations: 24 kB / 0.5949 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0284/1.705, allocations: 17.9 MB / 0.6124 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001273/1.705, allocations: 67.7 kB / 0.6125 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002103/1.705, allocations: 179 kB / 0.6127 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0162/1.722, allocations: 8.496 MB / 0.621 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/1.722, allocations: 0 / 0.621 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/1.722, allocations: 0 / 0.621 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.234e-06/1.722, allocations: 4 kB / 0.621 GB, free: 4.121 MB / 0.4981 GB 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.003829/1.725, allocations: 1.54 MB / 0.6225 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/1.725, allocations: 12.02 kB / 0.6225 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.598e-05/1.726, allocations: 47.38 kB / 0.6225 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/1.726, allocations: 262.3 kB / 0.6228 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/1.726, allocations: 42.27 kB / 0.6228 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/1.726, allocations: 28 kB / 0.6228 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005108/1.726, allocations: 354.7 kB / 0.6232 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/1.726, allocations: 0 / 0.6232 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/1.727, allocations: 12 kB / 0.6232 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/1.727, allocations: 15.94 kB / 0.6232 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003789/1.727, allocations: 229.7 kB / 0.6234 GB, free: 1.48 MB / 0.4981 GB 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.02052/1.747, allocations: 10.04 MB / 0.6332 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006487/1.748, allocations: 274.9 kB / 0.6335 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/1.748, allocations: 147.1 kB / 0.6336 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3478/2.096, allocations: 85.98 MB / 0.7176 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003722/2.097, allocations: 216.4 kB / 0.7178 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/2.097, allocations: 0 / 0.7178 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001156/2.098, allocations: 0.575 MB / 0.7184 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/2.098, allocations: 83.62 kB / 0.7184 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/2.098, allocations: 252.5 kB / 0.7187 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/2.098, allocations: 26.8 kB / 0.7187 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.921e-05/2.098, allocations: 169 kB / 0.7189 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.717e-05/2.098, allocations: 154.8 kB / 0.719 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/2.098, allocations: 68.23 kB / 0.7191 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.642e-05/2.098, allocations: 341 kB / 0.7194 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/2.099, allocations: 110.8 kB / 0.7195 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/2.099, allocations: 163.1 kB / 0.7197 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003655/2.099, allocations: 287.2 kB / 0.7199 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/2.099, allocations: 0 / 0.7199 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007005/2.1, allocations: 442.1 kB / 0.7204 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/2.1, allocations: 9.766 kB / 0.7204 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/2.1, allocations: 2.969 kB / 0.7204 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009266/2.101, allocations: 189.4 kB / 0.7206 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/2.101, allocations: 28.91 kB / 0.7206 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/2.103, allocations: 2.428 MB / 0.723 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/2.103, allocations: 49.09 kB / 0.723 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/2.103, allocations: 7.031 kB / 0.723 GB, free: 206.8 MB / 0.5919 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.0001292/2.103, allocations: 161 kB / 0.7232 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/2.103, allocations: 33.22 kB / 0.7232 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006662/2.104, allocations: 0.5664 MB / 0.7238 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004324/2.104, allocations: 364.8 kB / 0.7241 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/2.104, allocations: 0.5625 kB / 0.7241 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/2.104, allocations: 3.094 kB / 0.7241 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/2.105, allocations: 0.9767 MB / 0.7251 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-06/2.105, allocations: 0 / 0.7251 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/2.106, allocations: 60.69 kB / 0.7251 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000323/2.106, allocations: 103.2 kB / 0.7252 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/2.106, allocations: 13.8 kB / 0.7252 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003571/2.106, allocations: 0.6384 MB / 0.7259 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/2.106, allocations: 3.938 kB / 0.7259 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008058/2.107, allocations: 0.6526 MB / 0.7265 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/2.107, allocations: 124.5 kB / 0.7266 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/2.107, allocations: 12.14 kB / 0.7266 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/2.108, allocations: 22.53 kB / 0.7266 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/2.108, allocations: 29.58 kB / 0.7267 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/2.108, allocations: 12 kB / 0.7267 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001672/2.108, allocations: 218.9 kB / 0.7269 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/2.108, allocations: 7.406 kB / 0.7269 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002611/2.11, allocations: 1.211 MB / 0.7281 GB, free: 205.2 MB / 0.5919 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.003986/2.114, allocations: 1.732 MB / 0.7298 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008927/2.115, allocations: 497.3 kB / 0.7302 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/2.115, allocations: 2.781 kB / 0.7303 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003799/2.116, allocations: 200.6 kB / 0.7304 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/2.117, allocations: 125.8 kB / 0.7306 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/2.118, allocations: 0.8584 MB / 0.7314 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/2.118, allocations: 0.8029 MB / 0.7322 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001265/2.118, allocations: 40.16 kB / 0.7322 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/2.118, allocations: 26.31 kB / 0.7322 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of SimCode: time 2.51e-07/2.118, allocations: 0 / 0.7322 GB, free: 203.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.04216/2.16, allocations: 44.15 MB / 0.7754 GB, free: 172.2 MB / 0.5919 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)