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.8263/0.8263, allocations: 150.9 MB / 166.5 MB, free: 14.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003352/0.0003353, allocations: 17.72 kB / 237 MB, free: 2.094 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06293/0.06328, allocations: 31.35 MB / 268.4 MB, free: 7.207 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.606/1.669, allocations: 294.9 MB / 0.5501 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04224/1.711, allocations: 34.85 MB / 0.5841 GB, free: 9.836 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002517/1.712, allocations: 4 kB / 0.5841 GB, free: 9.832 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.0005401/1.712, allocations: 151.2 kB / 0.5843 GB, free: 9.684 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/1.713, allocations: 158.9 kB / 0.5844 GB, free: 9.527 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.0266/1.739, allocations: 9.921 MB / 0.5941 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008393/1.74, allocations: 454.5 kB / 0.5945 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/1.741, allocations: 160.6 kB / 0.5947 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003568/1.741, allocations: 187.2 kB / 0.5949 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/1.741, allocations: 163.2 kB / 0.595 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.368e-05/1.741, allocations: 32 kB / 0.5951 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03197/1.773, allocations: 17.9 MB / 0.6125 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000144/1.773, allocations: 67.7 kB / 0.6126 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002228/1.774, allocations: 171.1 kB / 0.6128 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01822/1.792, allocations: 8.507 MB / 0.6211 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/1.792, allocations: 0 / 0.6211 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.487e-06/1.792, allocations: 0 / 0.6211 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.528e-05/1.792, allocations: 3.938 kB / 0.6211 GB, free: 3.93 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.004323/1.796, allocations: 1.536 MB / 0.6226 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/1.796, allocations: 15.89 kB / 0.6226 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.761e-05/1.796, allocations: 43.38 kB / 0.6226 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/1.797, allocations: 262.3 kB / 0.6229 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/1.797, allocations: 46.27 kB / 0.6229 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/1.797, allocations: 24 kB / 0.623 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/1.797, allocations: 354.7 kB / 0.6233 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/1.797, allocations: 0 / 0.6233 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/1.797, allocations: 8 kB / 0.6233 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/1.797, allocations: 19.92 kB / 0.6233 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003871/1.798, allocations: 225.8 kB / 0.6235 GB, free: 1.293 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.0208/1.819, allocations: 10.04 MB / 0.6333 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/1.819, allocations: 274.9 kB / 0.6336 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/1.82, allocations: 145.2 kB / 0.6337 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3641/2.184, allocations: 85.98 MB / 0.7177 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/2.184, allocations: 220.5 kB / 0.7179 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 2.535e-06/2.184, allocations: 0 / 0.7179 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001197/2.185, allocations: 0.5735 MB / 0.7185 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/2.185, allocations: 81.55 kB / 0.7186 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/2.186, allocations: 254.5 kB / 0.7188 GB, free: 210 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/2.186, allocations: 26.89 kB / 0.7188 GB, free: 210 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.391e-05/2.186, allocations: 167.9 kB / 0.719 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.71e-05/2.186, allocations: 159.2 kB / 0.7191 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/2.186, allocations: 65.7 kB / 0.7192 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.106e-05/2.186, allocations: 339.1 kB / 0.7195 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/2.186, allocations: 115.8 kB / 0.7196 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/2.187, allocations: 164 kB / 0.7198 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/2.187, allocations: 288.7 kB / 0.7201 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/2.187, allocations: 0.5625 kB / 0.7201 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007501/2.188, allocations: 437.9 kB / 0.7205 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/2.188, allocations: 7.375 kB / 0.7205 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/2.188, allocations: 4.828 kB / 0.7205 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009668/2.189, allocations: 193.1 kB / 0.7207 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/2.189, allocations: 24.73 kB / 0.7207 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/2.191, allocations: 2.428 MB / 0.7231 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/2.191, allocations: 39.78 kB / 0.7231 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/2.191, allocations: 17.11 kB / 0.7231 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.0001257/2.191, allocations: 149.1 kB / 0.7233 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/2.191, allocations: 32.77 kB / 0.7233 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006602/2.192, allocations: 0.5694 MB / 0.7239 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004506/2.192, allocations: 365.4 kB / 0.7242 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/2.192, allocations: 0 / 0.7242 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/2.192, allocations: 3.328 kB / 0.7242 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/2.193, allocations: 0.9792 MB / 0.7252 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/2.193, allocations: 2.531 kB / 0.7252 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/2.194, allocations: 53.88 kB / 0.7252 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000319/2.194, allocations: 103.2 kB / 0.7253 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/2.194, allocations: 9.094 kB / 0.7253 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003477/2.194, allocations: 0.6403 MB / 0.726 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/2.194, allocations: 3.938 kB / 0.726 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008228/2.195, allocations: 0.6527 MB / 0.7266 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.257e-05/2.195, allocations: 134.6 kB / 0.7267 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/2.195, allocations: 7.75 kB / 0.7267 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/2.195, allocations: 21.25 kB / 0.7268 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/2.196, allocations: 30.75 kB / 0.7268 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/2.196, allocations: 10.34 kB / 0.7268 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001872/2.196, allocations: 218.7 kB / 0.727 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/2.196, allocations: 2.844 kB / 0.727 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002692/2.198, allocations: 1.211 MB / 0.7282 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.004618/2.203, allocations: 1.743 MB / 0.7299 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008321/2.204, allocations: 0.4898 MB / 0.7304 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/2.204, allocations: 0 / 0.7304 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003824/2.204, allocations: 196.5 kB / 0.7306 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/2.205, allocations: 128.5 kB / 0.7307 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/2.206, allocations: 0.857 MB / 0.7315 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/2.207, allocations: 0.8093 MB / 0.7323 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001378/2.207, allocations: 32.81 kB / 0.7323 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/2.207, allocations: 29.62 kB / 0.7324 GB, free: 204 MB / 0.5919 GB Notification: Performance of SimCode: time 1.192e-06/2.207, allocations: 1.406 kB / 0.7324 GB, free: 204 MB / 0.5919 GB Notification: Performance of Templates: time 0.04241/2.249, allocations: 44.16 MB / 0.7755 GB, free: 172.2 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)