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.8439/0.8439, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003944/0.0003944, allocations: 16.41 kB / 237.8 MB, free: 1.945 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06931/0.06972, allocations: 31.34 MB / 269.1 MB, free: 7.164 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.691/1.76, allocations: 296.9 MB / 0.5528 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5746/2.335, allocations: 194.6 MB / 0.7428 GB, free: 1.668 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006286/2.336, allocations: 12.47 kB / 0.7428 GB, free: 1.668 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.00063/2.336, allocations: 336.7 kB / 0.7431 GB, free: 1.664 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001135/2.338, allocations: 0.5894 MB / 0.7437 GB, free: 1.652 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.03443/2.372, allocations: 13.35 MB / 0.7567 GB, free: 1.344 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002259/2.374, allocations: 1.352 MB / 0.7581 GB, free: 1.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008059/2.375, allocations: 0.6849 MB / 0.7587 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006495/2.376, allocations: 0.5794 MB / 0.7593 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007518/2.377, allocations: 0.7853 MB / 0.7601 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001416/2.377, allocations: 115.6 kB / 0.7602 GB, free: 1.285 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0467/2.423, allocations: 22.51 MB / 0.7821 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006025/2.424, allocations: 396.9 kB / 0.7825 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0009474/2.425, allocations: 0.6796 MB / 0.7832 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03336/2.458, allocations: 12.45 MB / 0.7953 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/2.458, allocations: 1.594 kB / 0.7953 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.555e-06/2.458, allocations: 0.5625 kB / 0.7953 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.128e-05/2.458, allocations: 0.9062 kB / 0.7953 GB, free: 9.391 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.01016/2.469, allocations: 3.091 MB / 0.7984 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/2.469, allocations: 8.031 kB / 0.7984 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/2.469, allocations: 164.7 kB / 0.7985 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/2.471, allocations: 0.8143 MB / 0.7993 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/2.471, allocations: 95.7 kB / 0.7994 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/2.471, allocations: 100.7 kB / 0.7995 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/2.473, allocations: 1.087 MB / 0.8006 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/2.473, allocations: 0 / 0.8006 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.135e-05/2.473, allocations: 40.75 kB / 0.8006 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/2.473, allocations: 24 kB / 0.8006 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/2.476, allocations: 1.043 MB / 0.8017 GB, free: 3.645 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.005996/2.482, allocations: 4.7 MB / 0.8062 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/2.483, allocations: 0.7469 MB / 0.807 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/2.484, allocations: 309.7 kB / 0.8073 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6767/3.161, allocations: 227.4 MB / 1.029 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008326/3.162, allocations: 423.2 kB / 1.03 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=69): time 2.746e-06/3.162, allocations: 0 / 1.03 GB, free: 452.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=69): time 0.004742/3.167, allocations: 1.548 MB / 1.031 GB, free: 452.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/3.167, allocations: 189.1 kB / 1.031 GB, free: 451.9 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001449/3.168, allocations: 1.36 MB / 1.033 GB, free: 451.8 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.53e-05/3.168, allocations: 43.45 kB / 1.033 GB, free: 451.7 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/3.168, allocations: 0.5783 MB / 1.033 GB, free: 451.6 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/3.169, allocations: 234.4 kB / 1.034 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/3.169, allocations: 169.1 kB / 1.034 GB, free: 451.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.664e-05/3.169, allocations: 335 kB / 1.034 GB, free: 451.1 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005617/3.169, allocations: 338.9 kB / 1.034 GB, free: 451.1 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/3.17, allocations: 0.5024 MB / 1.035 GB, free: 450.9 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/3.171, allocations: 0.7507 MB / 1.036 GB, free: 450.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/3.171, allocations: 0.875 kB / 1.036 GB, free: 450.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001776/3.173, allocations: 1.098 MB / 1.037 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/3.173, allocations: 9.438 kB / 1.037 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/3.173, allocations: 7.125 kB / 1.037 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003911/3.177, allocations: 0.6097 MB / 1.037 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006535/3.178, allocations: 158.6 kB / 1.037 GB, free: 450.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000893/3.179, allocations: 0.8583 MB / 1.038 GB, free: 450.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006594/3.179, allocations: 103.4 kB / 1.038 GB, free: 450 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/3.179, allocations: 37.88 kB / 1.038 GB, free: 450 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.0004452/3.18, allocations: 350.3 kB / 1.039 GB, free: 449.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/3.18, allocations: 117.2 kB / 1.039 GB, free: 449.9 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/3.182, allocations: 0.995 MB / 1.04 GB, free: 449.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/3.182, allocations: 4.609 kB / 1.04 GB, free: 449.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/3.182, allocations: 0 / 1.04 GB, free: 449.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/3.182, allocations: 281.5 kB / 1.04 GB, free: 449.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/3.182, allocations: 14.69 kB / 1.04 GB, free: 449.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004819/3.183, allocations: 46.02 kB / 1.04 GB, free: 449.6 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/3.183, allocations: 68.77 kB / 1.04 GB, free: 449.6 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002354/3.185, allocations: 1.12 MB / 1.041 GB, free: 449.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001717/3.187, allocations: 1.344 MB / 1.043 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000514/3.188, allocations: 280.8 kB / 1.043 GB, free: 448.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009289/3.189, allocations: 0.9583 MB / 1.044 GB, free: 448.8 MB / 0.8419 GB Notification: Performance of Backend: time 3.51e-07/3.189, allocations: 3 kB / 1.044 GB, free: 448.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01785/3.206, allocations: 4.775 MB / 1.049 GB, free: 448.6 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003089/3.21, allocations: 2.86 MB / 1.051 GB, free: 447.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.0934/3.303, allocations: 91.56 MB / 1.141 GB, free: 365.8 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)