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.8234/0.8234, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003146, allocations: 13.94 kB / 237.1 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05346/0.05379, allocations: 31.35 MB / 268.4 MB, free: 7.117 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.639/1.693, allocations: 294.8 MB / 0.55 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4777/2.17, allocations: 187.7 MB / 0.7333 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000297/2.171, allocations: 8.281 kB / 0.7334 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.0002854/2.171, allocations: 99.44 kB / 0.7334 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003709/2.172, allocations: 162.3 kB / 0.7336 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.02954/2.201, allocations: 11.48 MB / 0.7448 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005729/2.202, allocations: 422.5 kB / 0.7452 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000271/2.202, allocations: 221.2 kB / 0.7454 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/2.202, allocations: 178.8 kB / 0.7456 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/2.202, allocations: 223 kB / 0.7458 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/2.202, allocations: 34.34 kB / 0.7458 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0347/2.237, allocations: 19.97 MB / 0.7653 GB, free: 0.9141 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001922/2.237, allocations: 106.4 kB / 0.7654 GB, free: 0.8984 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003112/2.238, allocations: 209.4 kB / 0.7656 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02322/2.261, allocations: 9.924 MB / 0.7753 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/2.261, allocations: 5.016 kB / 0.7753 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.362e-06/2.261, allocations: 0 / 0.7753 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.288e-05/2.261, allocations: 1.812 kB / 0.7753 GB, free: 13.43 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.004656/2.266, allocations: 1.908 MB / 0.7772 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/2.266, allocations: 15.33 kB / 0.7772 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.586e-05/2.266, allocations: 55.52 kB / 0.7773 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/2.266, allocations: 355.8 kB / 0.7776 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/2.266, allocations: 25.09 kB / 0.7776 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/2.266, allocations: 36 kB / 0.7777 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005479/2.267, allocations: 380.9 kB / 0.778 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/2.267, allocations: 1.156 kB / 0.778 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/2.267, allocations: 15.59 kB / 0.7781 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/2.267, allocations: 14.81 kB / 0.7781 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/2.267, allocations: 265.4 kB / 0.7783 GB, free: 11.65 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.008084/2.275, allocations: 6.204 MB / 0.7844 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/2.276, allocations: 122.5 kB / 0.7845 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.384e-05/2.276, allocations: 42.72 kB / 0.7845 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.243/2.519, allocations: 119 MB / 0.9007 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/2.519, allocations: 35.75 kB / 0.9008 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.435e-06/2.519, allocations: 0 / 0.9008 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000939/2.52, allocations: 314.8 kB / 0.9011 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/2.52, allocations: 51.41 kB / 0.9011 GB, free: 8.445 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/2.52, allocations: 425.5 kB / 0.9015 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/2.52, allocations: 29.7 kB / 0.9016 GB, free: 7.984 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/2.521, allocations: 264.1 kB / 0.9018 GB, free: 7.727 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/2.521, allocations: 29.89 kB / 0.9018 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.809e-05/2.521, allocations: 61.66 kB / 0.9019 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001413/2.521, allocations: 346.7 kB / 0.9022 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/2.521, allocations: 63.97 kB / 0.9023 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/2.521, allocations: 159 kB / 0.9024 GB, free: 7.023 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/2.521, allocations: 234 kB / 0.9027 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/2.521, allocations: 4 kB / 0.9027 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005766/2.522, allocations: 311.6 kB / 0.903 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/2.522, allocations: 7.938 kB / 0.903 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/2.522, allocations: 4 kB / 0.903 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007845/2.523, allocations: 119.3 kB / 0.9031 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/2.523, allocations: 43.19 kB / 0.9031 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004744/2.524, allocations: 0.5671 MB / 0.9037 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/2.524, allocations: 27.73 kB / 0.9037 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/2.524, allocations: 25.53 kB / 0.9037 GB, free: 5.668 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.0001837/2.524, allocations: 166.3 kB / 0.9039 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/2.524, allocations: 35.75 kB / 0.9039 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/2.524, allocations: 210 kB / 0.9041 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/2.525, allocations: 0 / 0.9041 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/2.525, allocations: 2.625 kB / 0.9041 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/2.525, allocations: 3.984 kB / 0.9041 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/2.525, allocations: 361.4 kB / 0.9045 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/2.525, allocations: 0 / 0.9045 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.57e-05/2.525, allocations: 4 kB / 0.9045 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004275/2.525, allocations: 80.34 kB / 0.9046 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/2.525, allocations: 4 kB / 0.9046 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004206/2.526, allocations: 0.5672 MB / 0.9051 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/2.526, allocations: 1.094 kB / 0.9051 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003737/2.526, allocations: 207.7 kB / 0.9053 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.54e-05/2.526, allocations: 119.9 kB / 0.9054 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/2.526, allocations: 5.125 kB / 0.9054 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.212e-05/2.526, allocations: 0 / 0.9054 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/2.526, allocations: 11.92 kB / 0.9054 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/2.526, allocations: 5.75 kB / 0.9054 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003315/2.527, allocations: 303.1 kB / 0.9057 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/2.527, allocations: 0 / 0.9057 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003962/2.531, allocations: 1.48 MB / 0.9072 GB, free: 2.02 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.006558/2.537, allocations: 2.247 MB / 0.9094 GB, free: 60 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005649/2.538, allocations: 160 kB / 0.9095 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/2.538, allocations: 4 kB / 0.9095 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001672/2.538, allocations: 63.28 kB / 0.9096 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/2.539, allocations: 67.39 kB / 0.9097 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/2.54, allocations: 0.6109 MB / 0.9103 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/2.54, allocations: 0.802 MB / 0.911 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001479/2.54, allocations: 52.14 kB / 0.9111 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/2.54, allocations: 23.44 kB / 0.9111 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of SimCode: time 3.41e-07/2.54, allocations: 0 / 0.9111 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of Templates: time 0.05664/2.597, allocations: 46.24 MB / 0.9563 GB, free: 80 kB / 0.7794 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)