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.8029/0.8029, allocations: 150.9 MB / 166.1 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003204, allocations: 15.97 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1565, allocations: 31.33 MB / 235.5 MB, free: 5.449 MB / 190.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.578/1.735, allocations: 293.6 MB / 0.5168 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1896/1.925, allocations: 185.7 MB / 0.6981 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/1.925, allocations: 4 kB / 0.6982 GB, free: 3.5 MB / 0.5762 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.0002949/1.925, allocations: 80.62 kB / 0.6982 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003584/1.926, allocations: 155.1 kB / 0.6984 GB, free: 3.27 MB / 0.5762 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.3716/2.297, allocations: 10.1 MB / 0.7082 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005607/2.298, allocations: 423.8 kB / 0.7086 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/2.298, allocations: 227.4 kB / 0.7089 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/2.298, allocations: 172.8 kB / 0.709 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/2.299, allocations: 227.4 kB / 0.7092 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/2.299, allocations: 35.62 kB / 0.7093 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03255/2.331, allocations: 19.89 MB / 0.7287 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002352/2.331, allocations: 108.6 kB / 0.7288 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002919/2.332, allocations: 208.6 kB / 0.729 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02507/2.357, allocations: 9.975 MB / 0.7387 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/2.357, allocations: 4.953 kB / 0.7387 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.914e-06/2.357, allocations: 0 / 0.7387 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.158e-05/2.357, allocations: 1.094 kB / 0.7387 GB, free: 3.117 MB / 0.5762 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.005847/2.363, allocations: 1.831 MB / 0.7405 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/2.363, allocations: 11.38 kB / 0.7405 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/2.363, allocations: 59 kB / 0.7406 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/2.363, allocations: 344.8 kB / 0.7409 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/2.363, allocations: 25.44 kB / 0.741 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.753e-05/2.363, allocations: 34.47 kB / 0.741 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/2.364, allocations: 378.9 kB / 0.7414 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/2.364, allocations: 2.812 kB / 0.7414 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/2.364, allocations: 17.44 kB / 0.7414 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/2.364, allocations: 8.656 kB / 0.7414 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003732/2.364, allocations: 267.5 kB / 0.7416 GB, free: 17.45 MB / 0.5919 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.008583/2.373, allocations: 6.216 MB / 0.7477 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/2.373, allocations: 111.6 kB / 0.7478 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/2.373, allocations: 46 kB / 0.7479 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2224/2.596, allocations: 118.3 MB / 0.8634 GB, free: 3.203 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/2.596, allocations: 34.19 kB / 0.8634 GB, free: 3.164 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.475e-06/2.596, allocations: 0 / 0.8634 GB, free: 3.164 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0008584/2.597, allocations: 316.2 kB / 0.8637 GB, free: 2.863 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/2.597, allocations: 55.41 kB / 0.8637 GB, free: 2.797 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004462/2.597, allocations: 417.7 kB / 0.8641 GB, free: 2.457 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/2.597, allocations: 25.7 kB / 0.8642 GB, free: 2.426 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/2.597, allocations: 269.6 kB / 0.8644 GB, free: 2.223 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/2.597, allocations: 22.78 kB / 0.8645 GB, free: 2.203 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/2.597, allocations: 63.28 kB / 0.8645 GB, free: 2.152 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001013/2.598, allocations: 340.6 kB / 0.8648 GB, free: 1.824 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/2.598, allocations: 66.98 kB / 0.8649 GB, free: 1.773 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/2.598, allocations: 161.6 kB / 0.8651 GB, free: 1.602 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/2.598, allocations: 231.8 kB / 0.8653 GB, free: 1.383 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/2.598, allocations: 1.203 kB / 0.8653 GB, free: 1.383 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005574/2.599, allocations: 316.9 kB / 0.8656 GB, free: 1.137 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/2.599, allocations: 9.406 kB / 0.8656 GB, free: 1.129 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/2.599, allocations: 4 kB / 0.8656 GB, free: 1.125 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00079/2.599, allocations: 111.1 kB / 0.8657 GB, free: 1.02 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/2.6, allocations: 43.77 kB / 0.8657 GB, free: 0.9844 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004288/2.6, allocations: 0.5682 MB / 0.8663 GB, free: 424 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/2.6, allocations: 31.67 kB / 0.8663 GB, free: 392 kB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/2.6, allocations: 14.81 kB / 0.8663 GB, free: 384 kB / 0.7012 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.0001559/2.6, allocations: 170.7 kB / 0.8665 GB, free: 228 kB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/2.601, allocations: 27.62 kB / 0.8665 GB, free: 200 kB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/2.601, allocations: 232.4 kB / 0.8667 GB, free: 4 kB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/2.601, allocations: 0 / 0.8667 GB, free: 4 kB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/2.601, allocations: 0 / 0.8667 GB, free: 4 kB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/2.601, allocations: 1.203 kB / 0.8667 GB, free: 4 kB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/2.601, allocations: 363.2 kB / 0.8671 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/2.601, allocations: 0 / 0.8671 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-05/2.601, allocations: 4 kB / 0.8671 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004476/2.602, allocations: 77.64 kB / 0.8672 GB, free: 15.59 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/2.602, allocations: 0 / 0.8672 GB, free: 15.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003807/2.602, allocations: 0.5716 MB / 0.8677 GB, free: 15.01 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/2.602, allocations: 3.938 kB / 0.8677 GB, free: 15.01 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003491/2.603, allocations: 200.1 kB / 0.8679 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/2.603, allocations: 112.4 kB / 0.868 GB, free: 14.7 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/2.603, allocations: 5.141 kB / 0.868 GB, free: 14.69 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.891e-05/2.603, allocations: 11.92 kB / 0.8681 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-05/2.603, allocations: 4 kB / 0.8681 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-06/2.603, allocations: 4 kB / 0.8681 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002887/2.603, allocations: 302.4 kB / 0.8683 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/2.603, allocations: 0 / 0.8683 GB, free: 14.44 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00396/2.607, allocations: 1.46 MB / 0.8698 GB, free: 13.08 MB / 0.7169 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.006982/2.614, allocations: 2.292 MB / 0.872 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005199/2.615, allocations: 167.6 kB / 0.8722 GB, free: 11.01 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/2.615, allocations: 0 / 0.8722 GB, free: 11.01 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/2.615, allocations: 62.78 kB / 0.8722 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/2.615, allocations: 77.17 kB / 0.8723 GB, free: 10.9 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/2.616, allocations: 0.7306 MB / 0.873 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/2.617, allocations: 0.8034 MB / 0.8738 GB, free: 9.348 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001517/2.617, allocations: 49.81 kB / 0.8738 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.778e-05/2.617, allocations: 30.94 kB / 0.8739 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/2.617, allocations: 4 kB / 0.8739 GB, free: 9.27 MB / 0.7169 GB Notification: Performance of Templates: time 0.05605/2.673, allocations: 46.65 MB / 0.9194 GB, free: 10.77 MB / 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)