Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8697/0.8697, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 15.45 kB / 237.8 MB, free: 1.746 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05314/0.05352, allocations: 31.34 MB / 269.1 MB, free: 7.035 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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve): time 1.687/1.741, allocations: 297.1 MB / 0.5529 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5038/2.245, allocations: 194.6 MB / 0.7429 GB, free: 1.676 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006001/2.245, allocations: 12.81 kB / 0.7429 GB, free: 1.676 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicReliefValve.mo:72:3-73:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/DynamicReliefValve.mo:74:3-76:57:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:57:3-58:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Bend.mo:59:3-60:67:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:34:3-35:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:36:3-37:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005314/2.246, allocations: 341 kB / 0.7433 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001097/2.247, allocations: 0.5943 MB / 0.7439 GB, free: 1.66 MB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03693/2.284, allocations: 13.6 MB / 0.7571 GB, free: 1.355 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001874/2.286, allocations: 1.346 MB / 0.7585 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007689/2.286, allocations: 0.6993 MB / 0.7591 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000642/2.287, allocations: 0.5818 MB / 0.7597 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007244/2.288, allocations: 0.7776 MB / 0.7605 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001403/2.288, allocations: 119.7 kB / 0.7606 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04195/2.33, allocations: 22.5 MB / 0.7825 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005541/2.331, allocations: 396.7 kB / 0.7829 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0009507/2.332, allocations: 0.6802 MB / 0.7836 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.033/2.365, allocations: 12.48 MB / 0.7958 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/2.365, allocations: 1.031 kB / 0.7958 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.723e-06/2.365, allocations: 3.094 kB / 0.7958 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.944e-05/2.365, allocations: 2.125 kB / 0.7958 GB, free: 9.145 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.009306/2.374, allocations: 3.214 MB / 0.7989 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/2.374, allocations: 8.031 kB / 0.7989 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004737/2.375, allocations: 175 kB / 0.7991 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/2.376, allocations: 0.8192 MB / 0.7999 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/2.376, allocations: 100.5 kB / 0.8 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/2.376, allocations: 92.61 kB / 0.8001 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001968/2.378, allocations: 1.088 MB / 0.8011 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/2.378, allocations: 4.906 kB / 0.8012 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-05/2.378, allocations: 36 kB / 0.8012 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/2.378, allocations: 27.31 kB / 0.8012 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/2.38, allocations: 1.039 MB / 0.8022 GB, free: 3.07 MB / 0.6075 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.005509/2.386, allocations: 4.725 MB / 0.8068 GB, free: 14 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/2.388, allocations: 0.7365 MB / 0.8076 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006158/2.388, allocations: 318.4 kB / 0.8079 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6894/3.078, allocations: 227.5 MB / 1.03 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/3.079, allocations: 417 kB / 1.03 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=69): time 5.27e-06/3.079, allocations: 3.125 kB / 1.03 GB, free: 451.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69): time 0.005261/3.084, allocations: 1.55 MB / 1.032 GB, free: 451.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/3.084, allocations: 193.2 kB / 1.032 GB, free: 451.1 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002/3.086, allocations: 1.365 MB / 1.033 GB, free: 451 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.137e-05/3.086, allocations: 36.52 kB / 1.033 GB, free: 450.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000351/3.087, allocations: 0.5933 MB / 1.034 GB, free: 450.8 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/3.087, allocations: 242.8 kB / 1.034 GB, free: 450.7 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002399/3.087, allocations: 171 kB / 1.034 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 6.938e-05/3.087, allocations: 337.2 kB / 1.035 GB, free: 450.3 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/3.088, allocations: 336 kB / 1.035 GB, free: 450.3 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000682/3.089, allocations: 0.5021 MB / 1.036 GB, free: 450.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/3.09, allocations: 0.7588 MB / 1.036 GB, free: 450 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/3.09, allocations: 0 / 1.036 GB, free: 450 MB / 0.8419 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001987/3.092, allocations: 1.1 MB / 1.037 GB, free: 449.9 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/3.092, allocations: 9.812 kB / 1.037 GB, free: 449.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/3.092, allocations: 7.906 kB / 1.037 GB, free: 449.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003971/3.096, allocations: 0.6056 MB / 1.038 GB, free: 449.8 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/3.097, allocations: 151.4 kB / 1.038 GB, free: 449.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009725/3.098, allocations: 0.8634 MB / 1.039 GB, free: 449.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008315/3.098, allocations: 108.1 kB / 1.039 GB, free: 449.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/3.098, allocations: 35.19 kB / 1.039 GB, free: 449.3 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 16 (sourceP.C.ftype,reliefValve.fluid,pipe.fluid,sinkP.fluid,bend.fluid,diaphragm.fluid,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2,sourceP.fluid1,reliefValve.C2.diff_on_2,bend.C2.diff_on_2,pipe.C1.diff_on_2,bend.C2.diff_on_1,diaphragm.C2.diff_on_1,reliefValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(4,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0005878/3.099, allocations: 352.7 kB / 1.039 GB, free: 449.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/3.099, allocations: 128.2 kB / 1.04 GB, free: 449.1 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002228/3.101, allocations: 0.9871 MB / 1.041 GB, free: 449 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/3.102, allocations: 10.44 kB / 1.041 GB, free: 449 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/3.102, allocations: 0 / 1.041 GB, free: 449 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004214/3.102, allocations: 284.2 kB / 1.041 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/3.102, allocations: 18.45 kB / 1.041 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005121/3.103, allocations: 47.8 kB / 1.041 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/3.103, allocations: 68.72 kB / 1.041 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002507/3.105, allocations: 1.117 MB / 1.042 GB, free: 448.6 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00198/3.107, allocations: 1.355 MB / 1.043 GB, free: 448.1 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005465/3.108, allocations: 278 kB / 1.044 GB, free: 448.1 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001057/3.109, allocations: 0.965 MB / 1.045 GB, free: 448 MB / 0.8419 GB Notification: Performance of Backend: time 4.4e-07/3.109, allocations: 0 / 1.045 GB, free: 448 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01954/3.128, allocations: 4.821 MB / 1.049 GB, free: 447.9 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003188/3.132, allocations: 2.891 MB / 1.052 GB, free: 446.4 MB / 0.8419 GB Notification: Performance of Templates: time 0.09002/3.222, allocations: 91.57 MB / 1.142 GB, free: 364.5 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)