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.8172/0.8172, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003106, allocations: 15.97 kB / 204 MB, free: 10.13 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1688, allocations: 31.32 MB / 235.4 MB, free: 5.484 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.606/1.775, allocations: 292.7 MB / 0.5157 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1943/1.97, allocations: 188.7 MB / 0.7 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/1.97, allocations: 8 kB / 0.7 GB, free: 0.707 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.000264/1.97, allocations: 84.61 kB / 0.7 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002688/1.971, allocations: 147.1 kB / 0.7002 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3265/2.297, allocations: 8.745 MB / 0.7087 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006151/2.298, allocations: 409.3 kB / 0.7091 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/2.298, allocations: 214.4 kB / 0.7093 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002183/2.298, allocations: 163.7 kB / 0.7095 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/2.299, allocations: 221.2 kB / 0.7097 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/2.299, allocations: 27.28 kB / 0.7097 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03818/2.337, allocations: 19.98 MB / 0.7292 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002693/2.337, allocations: 101.1 kB / 0.7293 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003922/2.338, allocations: 196 kB / 0.7295 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02563/2.363, allocations: 9.971 MB / 0.7392 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/2.363, allocations: 4.5 kB / 0.7392 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.994e-06/2.363, allocations: 0 / 0.7392 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.135e-06/2.363, allocations: 0 / 0.7392 GB, free: 1.223 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.005181/2.368, allocations: 1.837 MB / 0.741 GB, free: 32 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/2.369, allocations: 11.31 kB / 0.7411 GB, free: 32 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/2.369, allocations: 55.5 kB / 0.7411 GB, free: 0 / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/2.369, allocations: 341.1 kB / 0.7414 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/2.369, allocations: 26.81 kB / 0.7415 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/2.369, allocations: 32.12 kB / 0.7415 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/2.37, allocations: 383.2 kB / 0.7419 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/2.37, allocations: 0 / 0.7419 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/2.37, allocations: 17.69 kB / 0.7419 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/2.37, allocations: 10.38 kB / 0.7419 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004354/2.37, allocations: 261.2 kB / 0.7421 GB, free: 15.55 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.008805/2.379, allocations: 6.216 MB / 0.7482 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/2.379, allocations: 114.9 kB / 0.7483 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.416e-05/2.38, allocations: 45.34 kB / 0.7484 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.216/2.596, allocations: 118.3 MB / 0.8639 GB, free: 0.75 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/2.596, allocations: 37.47 kB / 0.8639 GB, free: 0.707 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.864e-06/2.596, allocations: 0 / 0.8639 GB, free: 0.707 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009093/2.597, allocations: 309.5 kB / 0.8642 GB, free: 424 kB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/2.597, allocations: 62.3 kB / 0.8642 GB, free: 352 kB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004529/2.597, allocations: 416.7 kB / 0.8646 GB, free: 8 kB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/2.597, allocations: 25.7 kB / 0.8647 GB, free: 15.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/2.597, allocations: 264.4 kB / 0.8649 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/2.597, allocations: 26.66 kB / 0.8649 GB, free: 15.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.492e-05/2.597, allocations: 62.72 kB / 0.865 GB, free: 15.7 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001103/2.598, allocations: 337.6 kB / 0.8653 GB, free: 15.37 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/2.598, allocations: 61.03 kB / 0.8654 GB, free: 15.33 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/2.598, allocations: 165.9 kB / 0.8655 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/2.598, allocations: 242.5 kB / 0.8658 GB, free: 14.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/2.598, allocations: 0 / 0.8658 GB, free: 14.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005453/2.599, allocations: 314.9 kB / 0.8661 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/2.599, allocations: 11.98 kB / 0.8661 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/2.599, allocations: 7 kB / 0.8661 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008114/2.599, allocations: 112.1 kB / 0.8662 GB, free: 14.56 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/2.6, allocations: 42.7 kB / 0.8662 GB, free: 14.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004312/2.6, allocations: 0.5601 MB / 0.8668 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/2.6, allocations: 35.42 kB / 0.8668 GB, free: 13.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/2.6, allocations: 8 kB / 0.8668 GB, free: 13.92 MB / 0.7169 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.000174/2.6, allocations: 173.8 kB / 0.867 GB, free: 13.76 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.208e-05/2.601, allocations: 28.72 kB / 0.867 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004682/2.601, allocations: 219.9 kB / 0.8672 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/2.601, allocations: 0 / 0.8672 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/2.601, allocations: 0 / 0.8672 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/2.601, allocations: 0 / 0.8672 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/2.601, allocations: 360.8 kB / 0.8676 GB, free: 13.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/2.601, allocations: 0 / 0.8676 GB, free: 13.21 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.69e-05/2.601, allocations: 10.89 kB / 0.8676 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004786/2.602, allocations: 83.64 kB / 0.8677 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/2.602, allocations: 12.56 kB / 0.8677 GB, free: 13.11 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003875/2.602, allocations: 0.5578 MB / 0.8682 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/2.602, allocations: 4 kB / 0.8682 GB, free: 12.54 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/2.603, allocations: 208.4 kB / 0.8684 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.492e-05/2.603, allocations: 107.9 kB / 0.8685 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/2.603, allocations: 0 / 0.8685 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.549e-05/2.603, allocations: 4.031 kB / 0.8685 GB, free: 12.22 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/2.603, allocations: 14.41 kB / 0.8685 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/2.603, allocations: 7.812 kB / 0.8686 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003209/2.603, allocations: 305.6 kB / 0.8688 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.092e-06/2.603, allocations: 0 / 0.8688 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004084/2.607, allocations: 1.461 MB / 0.8703 GB, free: 10.61 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.007234/2.615, allocations: 2.296 MB / 0.8725 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000549/2.615, allocations: 160.4 kB / 0.8727 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/2.615, allocations: 0 / 0.8727 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001737/2.615, allocations: 70.5 kB / 0.8727 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/2.616, allocations: 61.02 kB / 0.8728 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/2.617, allocations: 0.722 MB / 0.8735 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/2.617, allocations: 0.8027 MB / 0.8743 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001588/2.617, allocations: 50.91 kB / 0.8743 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.863e-05/2.617, allocations: 27.44 kB / 0.8744 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of SimCode: time 4.61e-07/2.617, allocations: 0 / 0.8744 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of Templates: time 0.05462/2.672, allocations: 46.33 MB / 0.9196 GB, free: 8.629 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)