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.751/0.751, allocations: 150.9 MB / 167.2 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.0003091, allocations: 15.64 kB / 237.7 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04742/0.04774, allocations: 31.34 MB / 269 MB, free: 7.098 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.457/1.505, allocations: 294.9 MB / 0.5507 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03559/1.54, allocations: 34.85 MB / 0.5847 GB, free: 9.824 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/1.54, allocations: 0 / 0.5847 GB, free: 9.824 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.00039/1.541, allocations: 121.1 kB / 0.5848 GB, free: 9.707 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/1.541, allocations: 134.9 kB / 0.585 GB, free: 9.574 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.02119/1.562, allocations: 9.757 MB / 0.5945 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006378/1.563, allocations: 458.6 kB / 0.5949 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/1.563, allocations: 156.5 kB / 0.5951 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/1.563, allocations: 187.2 kB / 0.5953 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/1.564, allocations: 163.2 kB / 0.5954 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/1.564, allocations: 24 kB / 0.5954 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02609/1.59, allocations: 17.9 MB / 0.6129 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001177/1.59, allocations: 71.69 kB / 0.613 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/1.59, allocations: 179.1 kB / 0.6132 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01598/1.606, allocations: 8.499 MB / 0.6215 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.606, allocations: 0 / 0.6215 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.014e-06/1.606, allocations: 0 / 0.6215 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.596e-05/1.606, allocations: 0 / 0.6215 GB, free: 4.152 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.003801/1.61, allocations: 1.544 MB / 0.623 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/1.61, allocations: 11.89 kB / 0.623 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.839e-05/1.61, allocations: 47.38 kB / 0.623 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/1.61, allocations: 258.3 kB / 0.6233 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.722e-05/1.611, allocations: 50.25 kB / 0.6233 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/1.611, allocations: 24 kB / 0.6233 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/1.611, allocations: 350.7 kB / 0.6237 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/1.611, allocations: 0 / 0.6237 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/1.611, allocations: 12 kB / 0.6237 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/1.611, allocations: 19.92 kB / 0.6237 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/1.612, allocations: 221.7 kB / 0.6239 GB, free: 1.512 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.01884/1.63, allocations: 10.05 MB / 0.6337 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/1.631, allocations: 276.2 kB / 0.634 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/1.631, allocations: 143.1 kB / 0.6341 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3146/1.946, allocations: 85.98 MB / 0.7181 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/1.946, allocations: 217.2 kB / 0.7183 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.613e-06/1.946, allocations: 0 / 0.7183 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001029/1.947, allocations: 0.5744 MB / 0.7189 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/1.947, allocations: 85.67 kB / 0.7189 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/1.947, allocations: 249.8 kB / 0.7192 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/1.947, allocations: 31.39 kB / 0.7192 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.083e-05/1.948, allocations: 168.6 kB / 0.7194 GB, free: 210 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.883e-05/1.948, allocations: 154.2 kB / 0.7195 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/1.948, allocations: 60.25 kB / 0.7196 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/1.948, allocations: 346.4 kB / 0.7199 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/1.948, allocations: 111.4 kB / 0.72 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/1.948, allocations: 163.9 kB / 0.7202 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/1.948, allocations: 289.5 kB / 0.7205 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.948, allocations: 1.719 kB / 0.7205 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006834/1.949, allocations: 437 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/1.949, allocations: 3.969 kB / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.949, allocations: 0 / 0.7209 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/1.95, allocations: 198.1 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/1.95, allocations: 29.64 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/1.952, allocations: 2.435 MB / 0.7235 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/1.952, allocations: 40.14 kB / 0.7235 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/1.952, allocations: 11.88 kB / 0.7235 GB, free: 207.3 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.000111/1.952, allocations: 153.4 kB / 0.7237 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/1.952, allocations: 32.84 kB / 0.7237 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006022/1.953, allocations: 0.5619 MB / 0.7242 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004013/1.953, allocations: 371.4 kB / 0.7246 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/1.953, allocations: 1.625 kB / 0.7246 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/1.953, allocations: 3.375 kB / 0.7246 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/1.954, allocations: 0.975 MB / 0.7256 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/1.954, allocations: 4 kB / 0.7256 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/1.954, allocations: 57.66 kB / 0.7256 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002946/1.955, allocations: 105 kB / 0.7257 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/1.955, allocations: 11.12 kB / 0.7257 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003174/1.955, allocations: 0.6354 MB / 0.7263 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.955, allocations: 3.938 kB / 0.7263 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007358/1.956, allocations: 0.6521 MB / 0.727 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.486e-05/1.956, allocations: 131.1 kB / 0.7271 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/1.956, allocations: 12.59 kB / 0.7271 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/1.956, allocations: 20.73 kB / 0.7271 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/1.956, allocations: 30.61 kB / 0.7272 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/1.956, allocations: 9.812 kB / 0.7272 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001519/1.956, allocations: 220.9 kB / 0.7274 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.71e-07/1.956, allocations: 0 / 0.7274 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002359/1.959, allocations: 1.212 MB / 0.7286 GB, free: 205.6 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.003622/1.962, allocations: 1.744 MB / 0.7303 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007794/1.963, allocations: 0.4885 MB / 0.7308 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/1.963, allocations: 0 / 0.7308 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003391/1.964, allocations: 194.4 kB / 0.7309 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/1.964, allocations: 130 kB / 0.7311 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/1.965, allocations: 0.8882 MB / 0.7319 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/1.966, allocations: 0.8141 MB / 0.7327 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.237e-05/1.966, allocations: 29.08 kB / 0.7328 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.1e-07/1.966, allocations: 0 / 0.7328 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.0265/1.992, allocations: 26.89 MB / 0.759 GB, free: 189.7 MB / 0.5919 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)