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.7359/0.7359, allocations: 150.9 MB / 167.2 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003025, allocations: 16.77 kB / 237.8 MB, free: 1.691 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04507/0.04538, allocations: 31.35 MB / 269.1 MB, free: 7.059 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.393/1.439, allocations: 294.9 MB / 0.5508 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03556/1.474, allocations: 34.85 MB / 0.5848 GB, free: 9.844 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001925/1.475, allocations: 4 kB / 0.5848 GB, free: 9.84 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.0003669/1.475, allocations: 123.8 kB / 0.5849 GB, free: 9.719 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002946/1.475, allocations: 130.9 kB / 0.585 GB, free: 9.59 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.02075/1.496, allocations: 9.763 MB / 0.5946 GB, free: 15.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004998/1.497, allocations: 446.6 kB / 0.595 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/1.497, allocations: 148.6 kB / 0.5951 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/1.497, allocations: 195.2 kB / 0.5953 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/1.497, allocations: 167.2 kB / 0.5955 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/1.497, allocations: 24 kB / 0.5955 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02648/1.524, allocations: 17.9 MB / 0.613 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/1.524, allocations: 67.7 kB / 0.613 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001878/1.524, allocations: 179.1 kB / 0.6132 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01371/1.538, allocations: 8.503 MB / 0.6215 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/1.538, allocations: 4 kB / 0.6215 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.293e-06/1.538, allocations: 0 / 0.6215 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.263e-05/1.538, allocations: 0 / 0.6215 GB, free: 4.16 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.003478/1.541, allocations: 1.54 MB / 0.623 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/1.541, allocations: 8.031 kB / 0.623 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.257e-05/1.542, allocations: 51.31 kB / 0.6231 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/1.542, allocations: 262.3 kB / 0.6233 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/1.542, allocations: 42.27 kB / 0.6234 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/1.542, allocations: 24 kB / 0.6234 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/1.542, allocations: 354.7 kB / 0.6237 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/1.542, allocations: 4 kB / 0.6237 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/1.542, allocations: 8 kB / 0.6237 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/1.542, allocations: 19.92 kB / 0.6238 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003814/1.543, allocations: 233.7 kB / 0.624 GB, free: 1.516 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.01802/1.561, allocations: 10.04 MB / 0.6338 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006031/1.562, allocations: 271 kB / 0.634 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/1.562, allocations: 147.1 kB / 0.6342 GB, free: 6.016 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3043/1.866, allocations: 85.99 MB / 0.7182 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000331/1.866, allocations: 218 kB / 0.7184 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.633e-06/1.866, allocations: 0 / 0.7184 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001036/1.867, allocations: 0.5759 MB / 0.7189 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.179e-05/1.867, allocations: 83.17 kB / 0.719 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/1.868, allocations: 251.5 kB / 0.7192 GB, free: 210 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/1.868, allocations: 30.42 kB / 0.7193 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.636e-05/1.868, allocations: 161.8 kB / 0.7194 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/1.868, allocations: 160 kB / 0.7196 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.897e-05/1.868, allocations: 61.91 kB / 0.7196 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.635e-05/1.868, allocations: 341.4 kB / 0.72 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/1.868, allocations: 114.6 kB / 0.7201 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/1.868, allocations: 159.3 kB / 0.7202 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003426/1.869, allocations: 292.4 kB / 0.7205 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.869, allocations: 0 / 0.7205 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006757/1.869, allocations: 435.7 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/1.869, allocations: 8.062 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/1.869, allocations: 4.125 kB / 0.7209 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008504/1.87, allocations: 192.2 kB / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/1.87, allocations: 27.91 kB / 0.7211 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/1.872, allocations: 2.425 MB / 0.7235 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/1.872, allocations: 44.92 kB / 0.7236 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/1.872, allocations: 6.25 kB / 0.7236 GB, free: 207.2 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.000104/1.872, allocations: 159.7 kB / 0.7237 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.67e-05/1.872, allocations: 32.66 kB / 0.7237 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000607/1.873, allocations: 0.5667 MB / 0.7243 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004085/1.873, allocations: 365.1 kB / 0.7246 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/1.873, allocations: 0 / 0.7246 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/1.873, allocations: 3.891 kB / 0.7246 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/1.874, allocations: 0.9814 MB / 0.7256 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/1.874, allocations: 0 / 0.7256 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/1.875, allocations: 63.95 kB / 0.7257 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002825/1.875, allocations: 98.58 kB / 0.7258 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/1.875, allocations: 10.09 kB / 0.7258 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003107/1.875, allocations: 0.6393 MB / 0.7264 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.875, allocations: 3.938 kB / 0.7264 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000743/1.876, allocations: 0.6546 MB / 0.727 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.607e-05/1.876, allocations: 128.2 kB / 0.7272 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/1.876, allocations: 6.344 kB / 0.7272 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/1.876, allocations: 22.14 kB / 0.7272 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.129e-05/1.876, allocations: 36.62 kB / 0.7272 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/1.876, allocations: 9.094 kB / 0.7272 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000171/1.877, allocations: 220.2 kB / 0.7274 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.877, allocations: 2.953 kB / 0.7274 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002406/1.879, allocations: 1.208 MB / 0.7286 GB, free: 205.5 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.003831/1.883, allocations: 1.75 MB / 0.7303 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007576/1.884, allocations: 494.8 kB / 0.7308 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.884, allocations: 0 / 0.7308 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003423/1.884, allocations: 191.8 kB / 0.731 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/1.885, allocations: 136 kB / 0.7311 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/1.886, allocations: 0.8783 MB / 0.732 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/1.886, allocations: 0.8132 MB / 0.7328 GB, free: 204 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.157e-05/1.886, allocations: 30.67 kB / 0.7328 GB, free: 204 MB / 0.5919 GB Notification: Performance of SimCode: time 2.1e-07/1.886, allocations: 0 / 0.7328 GB, free: 204 MB / 0.5919 GB Notification: Performance of Templates: time 0.0238/1.91, allocations: 26.87 MB / 0.759 GB, free: 189.7 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)