Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8939/0.8939, allocations: 150.8 MB / 166.6 MB, free: 11.12 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003733, allocations: 11.98 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2033, allocations: 31.34 MB / 236 MB, free: 3.883 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe): time 1.604/1.808, allocations: 294 MB / 0.5176 GB, free: 7.973 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.486/2.294, allocations: 191 MB / 0.7041 GB, free: 2.898 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007749/2.295, allocations: 16.31 kB / 0.7041 GB, free: 2.898 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Volumes/Tank.mo:135:3-136:66:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:137:3-138:74:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:142:3-143:68:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:144:3-145:72:writable] Warning: Connector Cs1 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/Volumes/Tank.mo:135:3-136:66:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:137:3-138:74:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:142:3-143:68:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:144:3-145:72:writable] Warning: Connector Cs1 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/LumpedStraightPipe.mo:54:3-55:67: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/LumpedStraightPipe.mo:56:3-57:65: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.000254/2.295, allocations: 81.88 kB / 0.7042 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0006063/2.295, allocations: 259.3 kB / 0.7044 GB, free: 2.891 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03146/2.327, allocations: 9.645 MB / 0.7139 GB, free: 2.566 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001578/2.328, allocations: 1.441 MB / 0.7153 GB, free: 2.562 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/2.329, allocations: 0.5206 MB / 0.7158 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/2.329, allocations: 0.5261 MB / 0.7163 GB, free: 2.508 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/2.33, allocations: 0.6052 MB / 0.7169 GB, free: 2.508 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001244/2.33, allocations: 80.41 kB / 0.717 GB, free: 2.508 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03222/2.362, allocations: 19.32 MB / 0.7358 GB, free: 500 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005505/2.363, allocations: 264.4 kB / 0.7361 GB, free: 436 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007493/2.364, allocations: 0.5521 MB / 0.7366 GB, free: 376 kB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02848/2.392, allocations: 11.16 MB / 0.7475 GB, free: 12.62 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/2.392, allocations: 3.75 kB / 0.7475 GB, free: 12.62 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.072e-06/2.392, allocations: 0 / 0.7475 GB, free: 12.62 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.656e-05/2.392, allocations: 4 kB / 0.7475 GB, free: 12.62 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.008912/2.401, allocations: 3.003 MB / 0.7505 GB, free: 10.84 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/2.401, allocations: 8.5 kB / 0.7505 GB, free: 10.84 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/2.402, allocations: 128.5 kB / 0.7506 GB, free: 10.77 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008235/2.402, allocations: 0.5539 MB / 0.7511 GB, free: 10.39 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/2.403, allocations: 141.1 kB / 0.7513 GB, free: 10.32 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003173/2.403, allocations: 126.5 kB / 0.7514 GB, free: 10.31 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003045/2.406, allocations: 1.572 MB / 0.7529 GB, free: 9.27 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/2.406, allocations: 5.062 kB / 0.7529 GB, free: 9.27 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/2.406, allocations: 55.06 kB / 0.753 GB, free: 9.25 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/2.406, allocations: 28 kB / 0.753 GB, free: 9.223 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003854/2.41, allocations: 1.472 MB / 0.7544 GB, free: 8.113 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.006512/2.416, allocations: 7.813 MB / 0.7621 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003715/2.42, allocations: 1.026 MB / 0.7631 GB, free: 14.86 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/2.422, allocations: 386.7 kB / 0.7634 GB, free: 14.48 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7697/3.191, allocations: 283.9 MB / 1.041 GB, free: 378 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/3.191, allocations: 45.41 kB / 1.041 GB, free: 377.9 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=52): time 2.374e-06/3.191, allocations: 0 / 1.041 GB, free: 377.9 MB / 0.7917 GB Notification: Performance of matching and sorting (n=52): time 0.004713/3.196, allocations: 1.431 MB / 1.042 GB, free: 376.7 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/3.196, allocations: 111.2 kB / 1.042 GB, free: 376.6 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/3.197, allocations: 0.7963 MB / 1.043 GB, free: 376 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 4.375e-05/3.197, allocations: 33.45 kB / 1.043 GB, free: 376 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.000249/3.197, allocations: 0.6077 MB / 1.044 GB, free: 375.5 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/3.197, allocations: 204 kB / 1.044 GB, free: 375.3 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/3.198, allocations: 298.6 kB / 1.044 GB, free: 375.1 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 9.814e-05/3.198, allocations: 394.3 kB / 1.044 GB, free: 374.8 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/3.199, allocations: 451.9 kB / 1.045 GB, free: 374.4 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/3.201, allocations: 1.186 MB / 1.046 GB, free: 373 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002939/3.204, allocations: 1.713 MB / 1.048 GB, free: 371.4 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/3.204, allocations: 8.75 kB / 1.048 GB, free: 371.4 MB / 0.7917 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003985/3.208, allocations: 1.788 MB / 1.049 GB, free: 370 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/3.208, allocations: 16.94 kB / 1.049 GB, free: 370 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/3.208, allocations: 24.56 kB / 1.05 GB, free: 370 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002273/3.21, allocations: 452 kB / 1.05 GB, free: 369.6 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/3.212, allocations: 442.6 kB / 1.05 GB, free: 369.2 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/3.213, allocations: 1.821 MB / 1.052 GB, free: 367.4 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/3.214, allocations: 249.7 kB / 1.052 GB, free: 367.2 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.989e-05/3.214, allocations: 91.12 kB / 1.052 GB, free: 367.1 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 26 (tank1.Cs2.ftype,tank2.Cs2.ftype,tank2.Cs1.ftype,tank2.Ce1.ftype,tank2.fluids[1],tank1.Cs1.ftype,tank1.Ce2.ftype,tank1.Ce1.ftype,tank1.fluids[1],lumpedStraightPipe.fluid,tank2.fluid1,tank1.fluid1,tank2.Ce2.diff_on_2,tank1.Cs2.diff_on_1,tank2.Cs2.diff_on_1,tank2.Cs1.diff_on_1,tank2.Ce1.diff_on_2,tank2.Cs2.diff_on_2,tank2.Cs1.diff_on_2,tank2.Ce1.diff_on_1,tank1.Cs1.diff_on_1,tank1.Ce2.diff_on_2,tank1.Ce1.diff_on_2,tank1.Cs1.diff_on_2,tank1.Ce2.diff_on_1,tank1.Ce1.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 159 * 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.000373/3.215, allocations: 302.2 kB / 1.053 GB, free: 366.9 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/3.215, allocations: 94.88 kB / 1.053 GB, free: 366.8 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003176/3.218, allocations: 1.081 MB / 1.054 GB, free: 365.9 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/3.218, allocations: 4 kB / 1.054 GB, free: 365.9 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/3.218, allocations: 6.25 kB / 1.054 GB, free: 365.9 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/3.218, allocations: 12.77 kB / 1.054 GB, free: 365.9 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/3.222, allocations: 1.852 MB / 1.056 GB, free: 364.4 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/3.222, allocations: 0 / 1.056 GB, free: 364.4 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/3.223, allocations: 292.7 kB / 1.056 GB, free: 364.1 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/3.224, allocations: 62.05 kB / 1.056 GB, free: 364.1 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/3.224, allocations: 16.5 kB / 1.056 GB, free: 364.1 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003479/3.224, allocations: 1.064 MB / 1.057 GB, free: 363 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/3.224, allocations: 0 / 1.057 GB, free: 363 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01733/3.241, allocations: 8.777 MB / 1.066 GB, free: 355.3 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/3.242, allocations: 246.8 kB / 1.066 GB, free: 355.1 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.01e-05/3.242, allocations: 11.88 kB / 1.066 GB, free: 355.1 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/3.243, allocations: 99.75 kB / 1.066 GB, free: 355 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/3.243, allocations: 61.77 kB / 1.066 GB, free: 355 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-05/3.243, allocations: 19.92 kB / 1.066 GB, free: 355 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0004776/3.243, allocations: 492.5 kB / 1.067 GB, free: 354.6 MB / 0.7917 GB Notification: Performance of sort global known variables: time 1.1e-07/3.243, allocations: 3.281 kB / 1.067 GB, free: 354.6 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.00711/3.25, allocations: 2.882 MB / 1.069 GB, free: 352.2 MB / 0.7917 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 (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.01132/3.262, allocations: 3.549 MB / 1.073 GB, free: 349.3 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.003666/3.265, allocations: 1.194 MB / 1.074 GB, free: 348.4 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/3.265, allocations: 0 / 1.074 GB, free: 348.4 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001372/3.267, allocations: 469 kB / 1.074 GB, free: 348 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008542/3.268, allocations: 146.9 kB / 1.075 GB, free: 347.9 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/3.271, allocations: 2.809 MB / 1.077 GB, free: 345.3 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/3.271, allocations: 1.017 MB / 1.078 GB, free: 344.3 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0008046/3.272, allocations: 197.6 kB / 1.079 GB, free: 344.1 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/3.272, allocations: 94.77 kB / 1.079 GB, free: 344 MB / 0.7917 GB Notification: Performance of SimCode: time 3.4e-07/3.272, allocations: 0 / 1.079 GB, free: 344 MB / 0.7917 GB Notification: Performance of Templates: time 0.09407/3.366, allocations: 80.45 MB / 1.157 GB, free: 264.4 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)