Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.8/0.8, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 15.98 kB / 204.7 MB, free: 6.145 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.154, allocations: 31.32 MB / 236 MB, free: 3.906 MB / 186.7 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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.608/1.762, allocations: 291.9 MB / 0.5156 GB, free: 10.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04268/1.805, allocations: 37.91 MB / 0.5526 GB, free: 4.262 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/1.805, allocations: 4 kB / 0.5526 GB, free: 4.258 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004589/1.806, allocations: 135.5 kB / 0.5527 GB, free: 4.125 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/1.806, allocations: 135.2 kB / 0.5529 GB, free: 3.992 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02255/1.829, allocations: 7.273 MB / 0.56 GB, free: 12.72 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006962/1.829, allocations: 374.3 kB / 0.5603 GB, free: 12.36 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/1.83, allocations: 128.2 kB / 0.5604 GB, free: 12.23 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/1.83, allocations: 151.3 kB / 0.5606 GB, free: 12.08 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/1.83, allocations: 155.4 kB / 0.5607 GB, free: 11.93 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/1.83, allocations: 12 kB / 0.5607 GB, free: 11.92 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0296/1.86, allocations: 17.8 MB / 0.5781 GB, free: 10.09 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/1.86, allocations: 79.58 kB / 0.5782 GB, free: 10.02 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/1.86, allocations: 151 kB / 0.5783 GB, free: 9.867 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02248/1.883, allocations: 8.538 MB / 0.5867 GB, free: 1.309 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/1.883, allocations: 4 kB / 0.5867 GB, free: 1.305 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.003e-06/1.883, allocations: 0 / 0.5867 GB, free: 1.305 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/1.883, allocations: 0 / 0.5867 GB, free: 1.305 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004257/1.887, allocations: 1.516 MB / 0.5882 GB, free: 15.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/1.887, allocations: 15.97 kB / 0.5882 GB, free: 15.72 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/1.887, allocations: 43.38 kB / 0.5882 GB, free: 15.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/1.888, allocations: 294.1 kB / 0.5885 GB, free: 15.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/1.888, allocations: 16.44 kB / 0.5885 GB, free: 15.33 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/1.888, allocations: 20 kB / 0.5885 GB, free: 15.31 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/1.888, allocations: 328.3 kB / 0.5888 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/1.888, allocations: 0 / 0.5888 GB, free: 14.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/1.888, allocations: 4 kB / 0.5889 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/1.888, allocations: 12 kB / 0.5889 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/1.889, allocations: 220.9 kB / 0.5891 GB, free: 14.74 MB / 490.7 MB 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.03683/1.925, allocations: 18.1 MB / 0.6068 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/1.926, allocations: 146.5 kB / 0.6069 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/1.926, allocations: 104.8 kB / 0.607 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1564/2.082, allocations: 77.28 MB / 0.6825 GB, free: 4.453 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/2.082, allocations: 30.56 kB / 0.6825 GB, free: 4.414 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/2.082, allocations: 0 / 0.6825 GB, free: 4.414 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.001166/2.083, allocations: 0.4915 MB / 0.683 GB, free: 3.895 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/2.083, allocations: 51.41 kB / 0.683 GB, free: 3.832 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/2.084, allocations: 360.4 kB / 0.6834 GB, free: 3.469 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/2.084, allocations: 29.64 kB / 0.6834 GB, free: 3.434 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/2.084, allocations: 188.4 kB / 0.6836 GB, free: 3.246 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 6.543e-05/2.084, allocations: 110.3 kB / 0.6837 GB, free: 3.137 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.682e-05/2.084, allocations: 53.7 kB / 0.6837 GB, free: 3.078 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001251/2.084, allocations: 342.8 kB / 0.6841 GB, free: 2.734 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/2.084, allocations: 95.91 kB / 0.6841 GB, free: 2.641 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/2.085, allocations: 136.2 kB / 0.6843 GB, free: 2.492 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/2.085, allocations: 252.5 kB / 0.6845 GB, free: 2.23 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/2.085, allocations: 0 / 0.6845 GB, free: 2.23 MB / 0.573 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004503/2.085, allocations: 344.3 kB / 0.6848 GB, free: 1.887 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/2.085, allocations: 4 kB / 0.6849 GB, free: 1.883 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/2.085, allocations: 0 / 0.6849 GB, free: 1.883 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007528/2.086, allocations: 136.8 kB / 0.685 GB, free: 1.746 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.63e-05/2.086, allocations: 19.92 kB / 0.685 GB, free: 1.727 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005254/2.087, allocations: 0.6108 MB / 0.6856 GB, free: 1.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/2.087, allocations: 39.53 kB / 0.6856 GB, free: 1.051 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/2.087, allocations: 7.984 kB / 0.6856 GB, free: 1.043 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001489/2.087, allocations: 153.8 kB / 0.6858 GB, free: 0.8828 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.272e-05/2.087, allocations: 35.56 kB / 0.6858 GB, free: 0.8477 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00077/2.088, allocations: 0.6512 MB / 0.6865 GB, free: 124 kB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1696/2.257, allocations: 254.5 kB / 0.6867 GB, free: 222.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/2.258, allocations: 0.8906 kB / 0.6867 GB, free: 222.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/2.258, allocations: 5.375 kB / 0.6867 GB, free: 222.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/2.259, allocations: 0.8215 MB / 0.6875 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/2.259, allocations: 1.656 kB / 0.6875 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/2.259, allocations: 20.8 kB / 0.6875 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004575/2.259, allocations: 117.1 kB / 0.6876 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/2.259, allocations: 3.5 kB / 0.6876 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003996/2.26, allocations: 0.6377 MB / 0.6883 GB, free: 222 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/2.26, allocations: 6.188 kB / 0.6883 GB, free: 222 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009681/2.261, allocations: 1.143 MB / 0.6894 GB, free: 221.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.441e-05/2.261, allocations: 122.4 kB / 0.6895 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/2.261, allocations: 12.8 kB / 0.6895 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/2.261, allocations: 5.328 kB / 0.6895 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/2.261, allocations: 10.14 kB / 0.6895 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/2.261, allocations: 4.594 kB / 0.6895 GB, free: 221.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003281/2.261, allocations: 331 kB / 0.6899 GB, free: 221.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.3e-07/2.261, allocations: 2.656 kB / 0.6899 GB, free: 221.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003148/2.264, allocations: 1.246 MB / 0.6911 GB, free: 221.1 MB / 0.573 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 (13): * Single equations (assignments): 12 * 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.005211/2.27, allocations: 1.803 MB / 0.6928 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006662/2.27, allocations: 282.6 kB / 0.6931 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/2.27, allocations: 0 / 0.6931 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002963/2.271, allocations: 120.8 kB / 0.6932 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008146/2.272, allocations: 126.6 kB / 0.6933 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/2.273, allocations: 0.9576 MB / 0.6943 GB, free: 220.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/2.273, allocations: 0.8098 MB / 0.6951 GB, free: 219.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001182/2.273, allocations: 33.83 kB / 0.6951 GB, free: 219.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/2.273, allocations: 26.78 kB / 0.6951 GB, free: 219.7 MB / 0.573 GB Notification: Performance of SimCode: time 4.41e-07/2.273, allocations: 1.781 kB / 0.6951 GB, free: 219.7 MB / 0.573 GB Notification: Performance of Templates: time 0.04726/2.32, allocations: 43.25 MB / 0.7374 GB, free: 197 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)