Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8331/0.8331, allocations: 150.9 MB / 167.2 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003567, allocations: 13.78 kB / 237.7 MB, free: 1.746 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05233/0.0527, allocations: 31.35 MB / 269.1 MB, free: 7.098 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.67/1.723, allocations: 294.8 MB / 0.5507 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5515/2.274, allocations: 187.7 MB / 0.734 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/2.274, allocations: 8.875 kB / 0.734 GB, free: 2.059 MB / 0.5919 GB [/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/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/PressureLosses/ControlValve.mo:44:3-45:68: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/ControlValve.mo:46:3-47:66: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.0002645/2.275, allocations: 94.55 kB / 0.7341 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003603/2.275, allocations: 171.4 kB / 0.7343 GB, free: 2.059 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.03412/2.309, allocations: 11.7 MB / 0.7457 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005694/2.31, allocations: 423.3 kB / 0.7461 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002695/2.31, allocations: 214.9 kB / 0.7463 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/2.31, allocations: 184.2 kB / 0.7465 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/2.31, allocations: 215 kB / 0.7467 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/2.31, allocations: 38.97 kB / 0.7467 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03534/2.346, allocations: 19.98 MB / 0.7662 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001987/2.346, allocations: 101.8 kB / 0.7663 GB, free: 1.117 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003172/2.346, allocations: 215.5 kB / 0.7665 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03011/2.377, allocations: 9.881 MB / 0.7762 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/2.377, allocations: 4.25 kB / 0.7762 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.743e-06/2.377, allocations: 0 / 0.7762 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.348e-06/2.377, allocations: 0 / 0.7762 GB, free: 13.62 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.005576/2.382, allocations: 1.835 MB / 0.778 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/2.382, allocations: 14.89 kB / 0.778 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/2.382, allocations: 51.16 kB / 0.778 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005132/2.383, allocations: 359.4 kB / 0.7784 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/2.383, allocations: 24.94 kB / 0.7784 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/2.383, allocations: 35.91 kB / 0.7784 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/2.384, allocations: 379.9 kB / 0.7788 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/2.384, allocations: 0.75 kB / 0.7788 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/2.384, allocations: 15.91 kB / 0.7788 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/2.384, allocations: 14.42 kB / 0.7788 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/2.384, allocations: 264.9 kB / 0.7791 GB, free: 11.93 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.008903/2.393, allocations: 6.197 MB / 0.7851 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/2.393, allocations: 116.1 kB / 0.7852 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.097e-05/2.393, allocations: 46.22 kB / 0.7853 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2606/2.654, allocations: 119 MB / 0.9015 GB, free: 8.922 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/2.654, allocations: 34.56 kB / 0.9015 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.556e-06/2.654, allocations: 0 / 0.9015 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.001025/2.655, allocations: 311 kB / 0.9018 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/2.655, allocations: 55.16 kB / 0.9019 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005928/2.656, allocations: 418.7 kB / 0.9023 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/2.656, allocations: 29.7 kB / 0.9023 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/2.656, allocations: 263.2 kB / 0.9025 GB, free: 7.773 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/2.656, allocations: 30.47 kB / 0.9026 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-05/2.656, allocations: 57.59 kB / 0.9026 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000128/2.656, allocations: 346.8 kB / 0.903 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/2.656, allocations: 64.53 kB / 0.903 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/2.657, allocations: 162.2 kB / 0.9032 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/2.657, allocations: 232.7 kB / 0.9034 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/2.657, allocations: 4 kB / 0.9034 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006222/2.657, allocations: 315.1 kB / 0.9037 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/2.657, allocations: 4 kB / 0.9037 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/2.658, allocations: 11.83 kB / 0.9037 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008209/2.658, allocations: 110.3 kB / 0.9038 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/2.659, allocations: 35.08 kB / 0.9038 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005225/2.659, allocations: 0.5671 MB / 0.9044 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/2.659, allocations: 36.67 kB / 0.9044 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/2.659, allocations: 12 kB / 0.9044 GB, free: 5.734 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001918/2.659, allocations: 173.9 kB / 0.9046 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.493e-05/2.66, allocations: 37.11 kB / 0.9046 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005021/2.66, allocations: 216 kB / 0.9049 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/2.66, allocations: 0 / 0.9049 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/2.66, allocations: 0 / 0.9049 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/2.66, allocations: 108.7 kB / 0.905 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.553e-05/2.66, allocations: 3.984 kB / 0.905 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.508e-05/2.66, allocations: 0 / 0.905 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/2.66, allocations: 9.141 kB / 0.905 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004136/2.661, allocations: 238.9 kB / 0.9052 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003827/2.661, allocations: 378.8 kB / 0.9056 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.134e-05/2.661, allocations: 43.11 kB / 0.9056 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003452/2.662, allocations: 295.1 kB / 0.9059 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of Backend: time 7.32e-07/2.662, allocations: 0 / 0.9059 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0158/2.677, allocations: 3.551 MB / 0.9093 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of SimCode: time 0.001653/2.679, allocations: 1.118 MB / 0.9104 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of Templates: time 0.1/2.779, allocations: 72.59 MB / 0.9813 GB, free: 7.406 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)