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.7557/0.7557, allocations: 150.9 MB / 167.2 MB, free: 14.25 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000309/0.000309, allocations: 16.62 kB / 237.8 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0469/0.04722, allocations: 31.35 MB / 269.1 MB, free: 7.008 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.44/1.487, allocations: 295 MB / 0.5509 GB, free: 12.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03604/1.523, allocations: 34.85 MB / 0.5849 GB, free: 9.797 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/1.524, allocations: 11.94 kB / 0.5849 GB, free: 9.785 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.0003742/1.524, allocations: 123.2 kB / 0.585 GB, free: 9.664 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/1.524, allocations: 134.9 kB / 0.5851 GB, free: 9.531 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.0209/1.545, allocations: 9.742 MB / 0.5947 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005158/1.546, allocations: 450.5 kB / 0.5951 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/1.546, allocations: 168.5 kB / 0.5952 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/1.546, allocations: 187.2 kB / 0.5954 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/1.547, allocations: 171.2 kB / 0.5956 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/1.547, allocations: 24 kB / 0.5956 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02659/1.573, allocations: 17.9 MB / 0.6131 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.86e-05/1.573, allocations: 63.77 kB / 0.6132 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001632/1.573, allocations: 175.1 kB / 0.6133 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01326/1.587, allocations: 8.499 MB / 0.6216 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/1.587, allocations: 4 kB / 0.6216 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.302e-06/1.587, allocations: 0 / 0.6216 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.388e-06/1.587, allocations: 0 / 0.6216 GB, free: 4.113 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.003725/1.59, allocations: 1.536 MB / 0.6231 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/1.591, allocations: 12.03 kB / 0.6231 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.576e-05/1.591, allocations: 47.38 kB / 0.6232 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/1.591, allocations: 262.3 kB / 0.6234 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.962e-05/1.591, allocations: 50.2 kB / 0.6235 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/1.591, allocations: 24 kB / 0.6235 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004993/1.592, allocations: 350.7 kB / 0.6238 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/1.592, allocations: 7.938 kB / 0.6238 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/1.592, allocations: 8 kB / 0.6239 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/1.592, allocations: 19.92 kB / 0.6239 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000386/1.592, allocations: 225.8 kB / 0.6241 GB, free: 1.473 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.01966/1.612, allocations: 10.05 MB / 0.6339 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/1.612, allocations: 274.4 kB / 0.6342 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/1.613, allocations: 151.1 kB / 0.6343 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3249/1.937, allocations: 85.98 MB / 0.7183 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/1.938, allocations: 213.9 kB / 0.7185 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/1.938, allocations: 1.25 kB / 0.7185 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001007/1.939, allocations: 0.5777 MB / 0.719 GB, free: 210 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/1.939, allocations: 80.17 kB / 0.7191 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/1.939, allocations: 255.3 kB / 0.7194 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/1.939, allocations: 31.2 kB / 0.7194 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/1.939, allocations: 166.1 kB / 0.7195 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.748e-05/1.939, allocations: 154.4 kB / 0.7197 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.737e-05/1.939, allocations: 64.39 kB / 0.7198 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.819e-05/1.939, allocations: 341.3 kB / 0.7201 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/1.94, allocations: 108.6 kB / 0.7202 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/1.94, allocations: 171.4 kB / 0.7203 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/1.94, allocations: 284 kB / 0.7206 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/1.94, allocations: 1.531 kB / 0.7206 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0006609/1.941, allocations: 437.1 kB / 0.721 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/1.941, allocations: 6.188 kB / 0.721 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/1.941, allocations: 3.219 kB / 0.721 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000843/1.942, allocations: 193.2 kB / 0.7212 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/1.942, allocations: 26.25 kB / 0.7213 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/1.943, allocations: 2.429 MB / 0.7236 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/1.943, allocations: 43.78 kB / 0.7237 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/1.943, allocations: 12.55 kB / 0.7237 GB, free: 207 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.000107/1.944, allocations: 161.8 kB / 0.7238 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.789e-05/1.944, allocations: 36.66 kB / 0.7239 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006265/1.944, allocations: 0.5609 MB / 0.7244 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006686/1.945, allocations: 365.8 kB / 0.7248 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.945, allocations: 0.5156 kB / 0.7248 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.945, allocations: 4 kB / 0.7248 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/1.947, allocations: 0.9755 MB / 0.7257 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/1.947, allocations: 0 / 0.7257 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/1.947, allocations: 59.25 kB / 0.7258 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005131/1.948, allocations: 104.7 kB / 0.7259 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/1.948, allocations: 8.438 kB / 0.7259 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005238/1.948, allocations: 0.6385 MB / 0.7265 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.948, allocations: 8.562 kB / 0.7265 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/1.95, allocations: 0.6533 MB / 0.7272 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/1.95, allocations: 127.2 kB / 0.7273 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.345e-05/1.95, allocations: 10.56 kB / 0.7273 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003437/1.95, allocations: 24.62 kB / 0.7273 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/1.95, allocations: 31.19 kB / 0.7273 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/1.951, allocations: 16.7 kB / 0.7274 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002732/1.951, allocations: 216.8 kB / 0.7276 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.51e-07/1.951, allocations: 0 / 0.7276 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003514/1.954, allocations: 1.211 MB / 0.7287 GB, free: 205.3 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.006615/1.961, allocations: 1.736 MB / 0.7304 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001216/1.962, allocations: 0.4913 MB / 0.7309 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.962, allocations: 0 / 0.7309 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006225/1.963, allocations: 191.5 kB / 0.7311 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/1.964, allocations: 134.8 kB / 0.7312 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/1.966, allocations: 0.8825 MB / 0.7321 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/1.966, allocations: 0.8084 MB / 0.7329 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/1.966, allocations: 32.47 kB / 0.7329 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/1.966, allocations: 7.219 kB / 0.7329 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.04046/2.007, allocations: 26.88 MB / 0.7592 GB, free: 189.5 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)