Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.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.SimpleExamples.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe") translateModel(ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7903/0.7903, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003518, allocations: 19.98 kB / 204.7 MB, free: 6.176 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1893, allocations: 31.33 MB / 236 MB, free: 3.898 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.SimpleExamples.TestLumpedStraightPipe): time 1.744/1.933, allocations: 293.1 MB / 0.5167 GB, free: 8.914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4541/2.387, allocations: 183.6 MB / 0.6961 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/2.388, allocations: 2.562 kB / 0.6961 GB, free: 1.816 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/LumpedStraightPipe.mo:49:3-50:42: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/LumpedStraightPipe.mo:51:3-53:37: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.0004455/2.388, allocations: 114.4 kB / 0.6962 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003475/2.388, allocations: 161.5 kB / 0.6964 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0199/2.408, allocations: 7.866 MB / 0.704 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.000994/2.409, allocations: 0.885 MB / 0.7049 GB, free: 1.633 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/2.41, allocations: 292.8 kB / 0.7052 GB, free: 1.609 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004204/2.41, allocations: 341.8 kB / 0.7055 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003713/2.411, allocations: 371.6 kB / 0.7059 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 7.648e-05/2.411, allocations: 39.41 kB / 0.7059 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.029/2.44, allocations: 17.25 MB / 0.7227 GB, free: 15.84 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003218/2.44, allocations: 139.2 kB / 0.7229 GB, free: 15.8 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0006774/2.441, allocations: 318.8 kB / 0.7232 GB, free: 15.76 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0208/2.462, allocations: 9.325 MB / 0.7323 GB, free: 12.33 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/2.462, allocations: 0 / 0.7323 GB, free: 12.33 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.695e-06/2.462, allocations: 4 kB / 0.7323 GB, free: 12.33 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.368e-05/2.462, allocations: 0 / 0.7323 GB, free: 12.33 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007656/2.469, allocations: 2.271 MB / 0.7345 GB, free: 10.96 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/2.469, allocations: 9.375 kB / 0.7345 GB, free: 10.96 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/2.47, allocations: 66.53 kB / 0.7346 GB, free: 10.93 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/2.47, allocations: 371.3 kB / 0.7349 GB, free: 10.64 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/2.47, allocations: 99 kB / 0.735 GB, free: 10.57 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/2.47, allocations: 53.62 kB / 0.7351 GB, free: 10.57 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/2.473, allocations: 0.8736 MB / 0.7359 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/2.473, allocations: 5.031 kB / 0.7359 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/2.473, allocations: 21.84 kB / 0.736 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/2.473, allocations: 21.77 kB / 0.736 GB, free: 10.17 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003089/2.476, allocations: 0.9352 MB / 0.7369 GB, free: 9.934 MB / 0.573 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.004049/2.48, allocations: 3.921 MB / 0.7407 GB, free: 6.758 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/2.482, allocations: 0.6973 MB / 0.7414 GB, free: 6.566 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/2.484, allocations: 410.8 kB / 0.7418 GB, free: 6.473 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2387/2.722, allocations: 117.3 MB / 0.8564 GB, free: 10.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/2.723, allocations: 40.31 kB / 0.8564 GB, free: 10.46 MB / 0.698 GB Notification: Performance of pre-optimization done (n=71): time 2.625e-06/2.723, allocations: 0 / 0.8564 GB, free: 10.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=71): time 0.004979/2.728, allocations: 1.462 MB / 0.8578 GB, free: 9.215 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/2.728, allocations: 59.41 kB / 0.8579 GB, free: 9.145 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004218/2.728, allocations: 403.6 kB / 0.8583 GB, free: 8.816 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/2.728, allocations: 33.02 kB / 0.8583 GB, free: 8.781 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.00017/2.728, allocations: 285 kB / 0.8586 GB, free: 8.559 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/2.728, allocations: 251.2 kB / 0.8588 GB, free: 8.344 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/2.729, allocations: 157.1 kB / 0.859 GB, free: 8.238 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001332/2.729, allocations: 362.9 kB / 0.8593 GB, free: 7.898 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/2.73, allocations: 387.5 kB / 0.8597 GB, free: 7.605 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/2.732, allocations: 0.6422 MB / 0.8603 GB, free: 6.965 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002843/2.735, allocations: 1.039 MB / 0.8613 GB, free: 6.055 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/2.735, allocations: 0 / 0.8613 GB, free: 6.055 MB / 0.698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00385/2.738, allocations: 1.282 MB / 0.8626 GB, free: 5.086 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/2.738, allocations: 8 kB / 0.8626 GB, free: 5.078 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/2.739, allocations: 8 kB / 0.8626 GB, free: 5.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002534/2.741, allocations: 0.6192 MB / 0.8632 GB, free: 4.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/2.743, allocations: 289.7 kB / 0.8635 GB, free: 4.234 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/2.744, allocations: 1.964 MB / 0.8654 GB, free: 2.375 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009833/2.745, allocations: 161.8 kB / 0.8655 GB, free: 2.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-05/2.745, allocations: 39.61 kB / 0.8656 GB, free: 2.195 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002589/2.746, allocations: 196.7 kB / 0.8658 GB, free: 2.043 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/2.746, allocations: 51.34 kB / 0.8658 GB, free: 1.992 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/2.75, allocations: 1.41 MB / 0.8672 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003169/2.753, allocations: 1.116 MB / 0.8683 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/2.753, allocations: 0 / 0.8683 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/2.753, allocations: 3.984 kB / 0.8683 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005357/2.758, allocations: 2.311 MB / 0.8705 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/2.758, allocations: 0 / 0.8705 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/2.76, allocations: 335.3 kB / 0.8709 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003405/2.76, allocations: 214.6 kB / 0.8711 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/2.761, allocations: 27.98 kB / 0.8711 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007967/2.761, allocations: 1.212 MB / 0.8723 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/2.761, allocations: 4 kB / 0.8723 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03001/2.791, allocations: 14.16 MB / 0.8861 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/2.792, allocations: 203.9 kB / 0.8863 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/2.792, allocations: 16 kB / 0.8863 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/2.793, allocations: 103.8 kB / 0.8864 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/2.793, allocations: 70.05 kB / 0.8865 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.205e-05/2.793, allocations: 23.98 kB / 0.8865 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002646/2.793, allocations: 263.2 kB / 0.8868 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.6e-07/2.793, allocations: 0 / 0.8868 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.006395/2.8, allocations: 2.569 MB / 0.8893 GB, free: 9.617 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01148/2.811, allocations: 3.182 MB / 0.8924 GB, free: 6.809 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.004096/2.815, allocations: 1.227 MB / 0.8936 GB, free: 5.598 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/2.815, allocations: 0 / 0.8936 GB, free: 5.598 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001767/2.817, allocations: 0.5857 MB / 0.8941 GB, free: 5.027 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/2.818, allocations: 203.4 kB / 0.8943 GB, free: 4.828 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/2.822, allocations: 2.84 MB / 0.8971 GB, free: 1.934 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/2.823, allocations: 0.9708 MB / 0.8981 GB, free: 0.9375 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0006359/2.824, allocations: 112.8 kB / 0.8982 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/2.824, allocations: 75.41 kB / 0.8982 GB, free: 0.7539 MB / 0.7292 GB Notification: Performance of SimCode: time 5.41e-07/2.824, allocations: 1.203 kB / 0.8982 GB, free: 0.7539 MB / 0.7292 GB Notification: Performance of Templates: time 0.2528/3.077, allocations: 79.26 MB / 0.9756 GB, free: 434.3 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestLumpedStraightPipe.pipe 2>&1)