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.7549/0.7549, allocations: 150.9 MB / 167.2 MB, free: 14.27 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003238, allocations: 18.03 kB / 237.7 MB, free: 1.891 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04686/0.04719, allocations: 31.34 MB / 269.1 MB, free: 7.086 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.451/1.498, allocations: 294.8 MB / 0.5507 GB, free: 13.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4262/1.925, allocations: 187.7 MB / 0.734 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/1.925, allocations: 9.344 kB / 0.734 GB, free: 1.789 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.0002504/1.925, allocations: 89.11 kB / 0.7341 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002806/1.925, allocations: 175.8 kB / 0.7342 GB, free: 1.789 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.025/1.95, allocations: 11.69 MB / 0.7457 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004266/1.951, allocations: 428 kB / 0.7461 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/1.951, allocations: 218.3 kB / 0.7463 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/1.951, allocations: 177 kB / 0.7465 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/1.951, allocations: 227.2 kB / 0.7467 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/1.951, allocations: 32.94 kB / 0.7467 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02746/1.979, allocations: 19.96 MB / 0.7662 GB, free: 0.8984 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001402/1.979, allocations: 109.8 kB / 0.7663 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000241/1.979, allocations: 211.7 kB / 0.7665 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01922/1.999, allocations: 9.908 MB / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/1.999, allocations: 0 / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.363e-06/1.999, allocations: 2.219 kB / 0.7762 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.824e-06/1.999, allocations: 1.031 kB / 0.7762 GB, free: 13.45 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.003649/2.002, allocations: 1.836 MB / 0.778 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/2.002, allocations: 12.02 kB / 0.778 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/2.002, allocations: 53.97 kB / 0.778 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/2.003, allocations: 359.8 kB / 0.7784 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/2.003, allocations: 33.48 kB / 0.7784 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/2.003, allocations: 34.5 kB / 0.7784 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/2.003, allocations: 373.5 kB / 0.7788 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/2.003, allocations: 0.9375 kB / 0.7788 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/2.003, allocations: 15.38 kB / 0.7788 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/2.003, allocations: 12.69 kB / 0.7788 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003679/2.004, allocations: 269.7 kB / 0.7791 GB, free: 11.76 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.007393/2.011, allocations: 6.201 MB / 0.7851 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/2.011, allocations: 111 kB / 0.7852 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.084e-05/2.011, allocations: 48.38 kB / 0.7853 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2267/2.238, allocations: 119 MB / 0.9015 GB, free: 8.785 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/2.238, allocations: 30.56 kB / 0.9015 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.705e-06/2.238, allocations: 2.531 kB / 0.9015 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008039/2.239, allocations: 311.5 kB / 0.9018 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/2.239, allocations: 55.41 kB / 0.9019 GB, free: 8.352 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/2.24, allocations: 421.4 kB / 0.9023 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/2.24, allocations: 30.91 kB / 0.9023 GB, free: 7.895 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000155/2.24, allocations: 258.5 kB / 0.9025 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/2.24, allocations: 27.64 kB / 0.9026 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.773e-05/2.24, allocations: 65.59 kB / 0.9026 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000117/2.24, allocations: 350.6 kB / 0.903 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/2.24, allocations: 59.97 kB / 0.903 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/2.24, allocations: 163.7 kB / 0.9032 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/2.241, allocations: 236.7 kB / 0.9034 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/2.241, allocations: 0 / 0.9034 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005257/2.241, allocations: 309 kB / 0.9037 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/2.241, allocations: 8.438 kB / 0.9037 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/2.241, allocations: 8 kB / 0.9037 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007472/2.242, allocations: 108.7 kB / 0.9038 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/2.242, allocations: 43.02 kB / 0.9039 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00042/2.242, allocations: 0.5633 MB / 0.9044 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/2.243, allocations: 35.17 kB / 0.9044 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/2.243, allocations: 19.98 kB / 0.9045 GB, free: 5.59 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.0001496/2.243, allocations: 165.7 kB / 0.9046 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/2.243, allocations: 39.62 kB / 0.9047 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004296/2.243, allocations: 206.9 kB / 0.9049 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/2.243, allocations: 0 / 0.9049 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/2.243, allocations: 7.984 kB / 0.9049 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/2.243, allocations: 0 / 0.9049 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003156/2.244, allocations: 361.3 kB / 0.9052 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/2.244, allocations: 2.625 kB / 0.9052 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.371e-05/2.244, allocations: 5.203 kB / 0.9052 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003953/2.244, allocations: 76.34 kB / 0.9053 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/2.244, allocations: 0 / 0.9053 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003959/2.244, allocations: 0.5728 MB / 0.9058 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/2.244, allocations: 0 / 0.9058 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/2.245, allocations: 206.9 kB / 0.906 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.941e-05/2.245, allocations: 116.7 kB / 0.9062 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/2.245, allocations: 0 / 0.9062 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.279e-05/2.245, allocations: 4 kB / 0.9062 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/2.245, allocations: 7.922 kB / 0.9062 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/2.245, allocations: 4 kB / 0.9062 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003005/2.245, allocations: 304.2 kB / 0.9065 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/2.245, allocations: 0 / 0.9065 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003149/2.249, allocations: 1.464 MB / 0.9079 GB, free: 1.965 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005809/2.254, allocations: 2.227 MB / 0.9101 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004097/2.255, allocations: 162.2 kB / 0.9102 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/2.255, allocations: 0 / 0.9102 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/2.255, allocations: 62.05 kB / 0.9103 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/2.255, allocations: 84.73 kB / 0.9104 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000937/2.256, allocations: 0.6255 MB / 0.911 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/2.257, allocations: 0.8004 MB / 0.9117 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/2.257, allocations: 31.44 kB / 0.9118 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/2.257, allocations: 1.203 kB / 0.9118 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of Templates: time 0.03654/2.293, allocations: 29.94 MB / 0.941 GB, free: 308 kB / 0.7637 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)