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.7682/0.7682, allocations: 150.9 MB / 167 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003371, allocations: 15.97 kB / 205.2 MB, free: 9.762 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1386, allocations: 31.33 MB / 236.5 MB, free: 5.395 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.453/1.592, allocations: 294.9 MB / 0.5189 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03569/1.627, allocations: 34.85 MB / 0.553 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/1.628, allocations: 4 kB / 0.553 GB, free: 10.39 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.0004209/1.628, allocations: 132.3 kB / 0.5531 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003537/1.628, allocations: 134.9 kB / 0.5532 GB, free: 10.12 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.02245/1.651, allocations: 9.751 MB / 0.5628 GB, free: 380 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005286/1.651, allocations: 450.7 kB / 0.5632 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/1.652, allocations: 155.9 kB / 0.5633 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/1.652, allocations: 187.2 kB / 0.5635 GB, free: 15.59 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002264/1.652, allocations: 159.3 kB / 0.5637 GB, free: 15.44 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/1.652, allocations: 24 kB / 0.5637 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02641/1.679, allocations: 17.69 MB / 0.581 GB, free: 13.71 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/1.679, allocations: 71.69 kB / 0.581 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/1.679, allocations: 171.1 kB / 0.5812 GB, free: 13.47 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0141/1.693, allocations: 8.511 MB / 0.5895 GB, free: 4.938 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/1.693, allocations: 0 / 0.5895 GB, free: 4.938 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.693, allocations: 4 kB / 0.5895 GB, free: 4.934 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/1.693, allocations: 0 / 0.5895 GB, free: 4.934 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.003676/1.697, allocations: 1.541 MB / 0.591 GB, free: 3.344 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/1.697, allocations: 12.03 kB / 0.591 GB, free: 3.332 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.719e-05/1.697, allocations: 39.47 kB / 0.5911 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/1.697, allocations: 274.3 kB / 0.5913 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/1.697, allocations: 46.27 kB / 0.5914 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/1.697, allocations: 27.91 kB / 0.5914 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/1.698, allocations: 346.7 kB / 0.5917 GB, free: 2.539 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/1.698, allocations: 3.938 kB / 0.5917 GB, free: 2.535 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/1.698, allocations: 16 kB / 0.5918 GB, free: 2.52 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/1.698, allocations: 17.38 kB / 0.5918 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003606/1.698, allocations: 225.8 kB / 0.592 GB, free: 2.281 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.01907/1.717, allocations: 9.98 MB / 0.6017 GB, free: 7.266 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/1.718, allocations: 266.9 kB / 0.602 GB, free: 6.992 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/1.718, allocations: 151 kB / 0.6021 GB, free: 6.844 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.164/1.882, allocations: 85.47 MB / 0.6856 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003881/1.883, allocations: 217.1 kB / 0.6858 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/1.883, allocations: 0 / 0.6858 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001143/1.884, allocations: 0.5775 MB / 0.6864 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/1.884, allocations: 85 kB / 0.6864 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/1.884, allocations: 258.6 kB / 0.6867 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/1.884, allocations: 29.7 kB / 0.6867 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/1.884, allocations: 164.9 kB / 0.6869 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.996e-05/1.885, allocations: 161.6 kB / 0.687 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/1.885, allocations: 65.91 kB / 0.6871 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001192/1.885, allocations: 338.8 kB / 0.6874 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/1.885, allocations: 108.8 kB / 0.6875 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/1.885, allocations: 164.1 kB / 0.6877 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/1.886, allocations: 291.1 kB / 0.688 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.886, allocations: 0 / 0.688 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007535/1.886, allocations: 438.6 kB / 0.6884 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/1.886, allocations: 9.656 kB / 0.6884 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/1.886, allocations: 0 / 0.6884 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009221/1.887, allocations: 201.6 kB / 0.6886 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/1.887, allocations: 19.98 kB / 0.6886 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/1.889, allocations: 2.428 MB / 0.691 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/1.89, allocations: 51.75 kB / 0.691 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/1.89, allocations: 4 kB / 0.691 GB, free: 1.883 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.000141/1.89, allocations: 153.7 kB / 0.6912 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/1.89, allocations: 31.53 kB / 0.6912 GB, free: 1.691 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007588/1.891, allocations: 0.5639 MB / 0.6917 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004844/1.891, allocations: 362.3 kB / 0.6921 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-06/1.891, allocations: 0 / 0.6921 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.891, allocations: 7.922 kB / 0.6921 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.139/2.03, allocations: 0.9896 MB / 0.6931 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/2.03, allocations: 0.6562 kB / 0.6931 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/2.031, allocations: 61.98 kB / 0.6931 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/2.031, allocations: 102.4 kB / 0.6932 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/2.031, allocations: 6.375 kB / 0.6932 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003783/2.031, allocations: 0.6339 MB / 0.6939 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.031, allocations: 3.984 kB / 0.6939 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008572/2.032, allocations: 0.6497 MB / 0.6945 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/2.032, allocations: 131.5 kB / 0.6946 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/2.032, allocations: 17.09 kB / 0.6946 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/2.033, allocations: 18.5 kB / 0.6946 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/2.033, allocations: 30.27 kB / 0.6947 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/2.033, allocations: 10.19 kB / 0.6947 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001893/2.033, allocations: 217.8 kB / 0.6949 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/2.033, allocations: 1.031 kB / 0.6949 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002728/2.036, allocations: 1.216 MB / 0.6961 GB, free: 225.2 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.004855/2.041, allocations: 1.73 MB / 0.6978 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009355/2.042, allocations: 0.5012 MB / 0.6983 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/2.042, allocations: 0 / 0.6983 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003828/2.042, allocations: 197.3 kB / 0.6985 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007228/2.043, allocations: 133.2 kB / 0.6986 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/2.044, allocations: 0.9064 MB / 0.6995 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/2.044, allocations: 0.8077 MB / 0.7003 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/2.044, allocations: 32.59 kB / 0.7003 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/2.044, allocations: 0 / 0.7003 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.02914/2.073, allocations: 26.91 MB / 0.7266 GB, free: 216.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)