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.7828/0.7828, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002753, allocations: 11.98 kB / 204 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 31.33 MB / 235.4 MB, free: 5.441 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.Examples.SimpleExamples.TestLumpedStraightPipe): time 1.516/1.65, allocations: 293.8 MB / 0.5168 GB, free: 12.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1843/1.834, allocations: 183.7 MB / 0.6961 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004872/1.835, allocations: 0 / 0.6961 GB, free: 4.652 MB / 0.5762 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.0006391/1.835, allocations: 117.4 kB / 0.6962 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006652/1.836, allocations: 166.7 kB / 0.6964 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2727/2.109, allocations: 7.849 MB / 0.7041 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001062/2.11, allocations: 0.8755 MB / 0.7049 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004523/2.11, allocations: 293.9 kB / 0.7052 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005546/2.111, allocations: 338.6 kB / 0.7055 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/2.111, allocations: 371.2 kB / 0.7059 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001265/2.111, allocations: 41.94 kB / 0.7059 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02594/2.137, allocations: 17.22 MB / 0.7227 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002402/2.138, allocations: 135 kB / 0.7229 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00049/2.138, allocations: 320.8 kB / 0.7232 GB, free: 6.586 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01796/2.156, allocations: 9.324 MB / 0.7323 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/2.156, allocations: 2.422 kB / 0.7323 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.413e-06/2.156, allocations: 0 / 0.7323 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.822e-05/2.156, allocations: 1.031 kB / 0.7323 GB, free: 6.297 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007707/2.164, allocations: 2.262 MB / 0.7345 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/2.164, allocations: 10.41 kB / 0.7345 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/2.164, allocations: 72.27 kB / 0.7346 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/2.165, allocations: 377 kB / 0.7349 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/2.165, allocations: 99.33 kB / 0.735 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.56e-05/2.165, allocations: 55.53 kB / 0.7351 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/2.167, allocations: 0.8722 MB / 0.7359 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/2.167, allocations: 5.938 kB / 0.7359 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.97e-05/2.167, allocations: 24.53 kB / 0.736 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.889e-05/2.167, allocations: 21.2 kB / 0.736 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/2.17, allocations: 0.9327 MB / 0.7369 GB, free: 4.383 MB / 0.5762 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.003791/2.174, allocations: 3.92 MB / 0.7407 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/2.176, allocations: 0.6898 MB / 0.7414 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/2.177, allocations: 411.9 kB / 0.7418 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2156/2.393, allocations: 117.3 MB / 0.8564 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/2.393, allocations: 38.69 kB / 0.8564 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.825e-06/2.393, allocations: 0 / 0.8564 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004399/2.397, allocations: 1.465 MB / 0.8578 GB, free: 8.93 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/2.397, allocations: 55.41 kB / 0.8579 GB, free: 8.863 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/2.398, allocations: 401.1 kB / 0.8583 GB, free: 8.539 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/2.398, allocations: 33.33 kB / 0.8583 GB, free: 8.504 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/2.398, allocations: 286.3 kB / 0.8586 GB, free: 8.277 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/2.398, allocations: 244 kB / 0.8588 GB, free: 8.07 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/2.398, allocations: 161.9 kB / 0.859 GB, free: 7.961 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001207/2.398, allocations: 363.6 kB / 0.8593 GB, free: 7.617 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/2.4, allocations: 388.5 kB / 0.8597 GB, free: 7.324 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/2.401, allocations: 0.6373 MB / 0.8603 GB, free: 6.688 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/2.403, allocations: 1.044 MB / 0.8613 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/2.403, allocations: 5.094 kB / 0.8613 GB, free: 5.77 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003383/2.407, allocations: 1.268 MB / 0.8626 GB, free: 4.812 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/2.407, allocations: 15.98 kB / 0.8626 GB, free: 4.797 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/2.407, allocations: 12 kB / 0.8626 GB, free: 4.785 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/2.41, allocations: 0.6087 MB / 0.8632 GB, free: 4.227 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/2.411, allocations: 294.4 kB / 0.8635 GB, free: 3.957 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/2.413, allocations: 1.961 MB / 0.8654 GB, free: 2.102 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009573/2.414, allocations: 168.9 kB / 0.8655 GB, free: 1.949 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/2.414, allocations: 38.98 kB / 0.8656 GB, free: 1.918 MB / 0.7012 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.0002636/2.414, allocations: 195.2 kB / 0.8658 GB, free: 1.766 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/2.414, allocations: 55.34 kB / 0.8658 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003158/2.417, allocations: 1.402 MB / 0.8672 GB, free: 0.7031 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0027/2.42, allocations: 1.121 MB / 0.8683 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/2.42, allocations: 0 / 0.8683 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/2.42, allocations: 3.984 kB / 0.8683 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/2.425, allocations: 2.307 MB / 0.8705 GB, free: 14.03 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/2.425, allocations: 0 / 0.8705 GB, free: 14.03 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/2.427, allocations: 335.5 kB / 0.8709 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003133/2.427, allocations: 222 kB / 0.8711 GB, free: 13.53 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.694e-05/2.427, allocations: 15.84 kB / 0.8711 GB, free: 13.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007179/2.428, allocations: 1.218 MB / 0.8723 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/2.428, allocations: 0 / 0.8723 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/2.433, allocations: 1.811 MB / 0.874 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/2.433, allocations: 208.1 kB / 0.8742 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.607e-05/2.433, allocations: 18.38 kB / 0.8743 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008501/2.434, allocations: 105.7 kB / 0.8744 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/2.434, allocations: 70.89 kB / 0.8744 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.823e-05/2.434, allocations: 23.62 kB / 0.8744 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002476/2.434, allocations: 261.3 kB / 0.8747 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3e-07/2.434, allocations: 0 / 0.8747 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00388/2.438, allocations: 1.463 MB / 0.8761 GB, free: 9.027 MB / 0.7169 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.007078/2.445, allocations: 2.191 MB / 0.8783 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003408/2.449, allocations: 1.214 MB / 0.8795 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/2.449, allocations: 3.375 kB / 0.8795 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001504/2.45, allocations: 0.584 MB / 0.88 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/2.451, allocations: 206.9 kB / 0.8802 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/2.454, allocations: 1.916 MB / 0.8821 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/2.455, allocations: 0.9285 MB / 0.883 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0005022/2.455, allocations: 96.86 kB / 0.8831 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/2.455, allocations: 62.84 kB / 0.8832 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of SimCode: time 3.3e-07/2.455, allocations: 0 / 0.8832 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of Templates: time 0.06512/2.521, allocations: 52.51 MB / 0.9344 GB, free: 14.53 MB / 0.7794 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)