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.9005/0.9005, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 15.97 kB / 204 MB, free: 10.12 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1651, allocations: 31.33 MB / 235.4 MB, free: 5.457 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.TestLumpedStraightPipe): time 1.594/1.759, allocations: 294.7 MB / 0.5177 GB, free: 10.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1968/1.956, allocations: 191 MB / 0.7042 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/1.957, allocations: 15.88 kB / 0.7042 GB, free: 14.16 MB / 0.5919 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.0005293/1.957, allocations: 81.14 kB / 0.7042 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001122/1.959, allocations: 257.9 kB / 0.7045 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02956/1.988, allocations: 9.644 MB / 0.7139 GB, free: 4.172 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002335/1.99, allocations: 1.427 MB / 0.7153 GB, free: 2.738 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009541/1.991, allocations: 0.5207 MB / 0.7158 GB, free: 2.215 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009184/1.992, allocations: 0.5255 MB / 0.7163 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008816/1.993, allocations: 0.5991 MB / 0.7169 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002741/1.994, allocations: 80 kB / 0.717 GB, free: 1.008 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.351/2.345, allocations: 19.32 MB / 0.7359 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004951/2.345, allocations: 258.3 kB / 0.7361 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005818/2.346, allocations: 0.5491 MB / 0.7366 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02722/2.373, allocations: 11.04 MB / 0.7474 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/2.373, allocations: 0 / 0.7474 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.664e-06/2.373, allocations: 2.734 kB / 0.7474 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.628e-05/2.373, allocations: 0 / 0.7474 GB, free: 10.37 MB / 0.5919 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.00948/2.383, allocations: 2.997 MB / 0.7503 GB, free: 9.027 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/2.383, allocations: 8.688 kB / 0.7504 GB, free: 9.027 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/2.383, allocations: 133.5 kB / 0.7505 GB, free: 8.965 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000687/2.384, allocations: 0.5558 MB / 0.751 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/2.384, allocations: 136.9 kB / 0.7512 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002891/2.384, allocations: 125.4 kB / 0.7513 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/2.387, allocations: 1.574 MB / 0.7528 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/2.387, allocations: 12.23 kB / 0.7528 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/2.387, allocations: 48.25 kB / 0.7529 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/2.387, allocations: 30.56 kB / 0.7529 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003458/2.39, allocations: 1.47 MB / 0.7543 GB, free: 8.078 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.00615/2.396, allocations: 7.81 MB / 0.762 GB, free: 18.11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003299/2.4, allocations: 1.029 MB / 0.763 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/2.401, allocations: 388.4 kB / 0.7633 GB, free: 17.94 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7259/3.127, allocations: 283.9 MB / 1.041 GB, free: 442.8 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/3.127, allocations: 37.34 kB / 1.041 GB, free: 442.7 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=52): time 2.174e-06/3.127, allocations: 0 / 1.041 GB, free: 442.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=52): time 0.004046/3.131, allocations: 1.432 MB / 1.042 GB, free: 442.4 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/3.131, allocations: 107.2 kB / 1.042 GB, free: 442.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007904/3.132, allocations: 0.7978 MB / 1.043 GB, free: 442.2 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.468e-05/3.132, allocations: 37.36 kB / 1.043 GB, free: 442.2 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/3.132, allocations: 0.6048 MB / 1.044 GB, free: 441.8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/3.132, allocations: 208.6 kB / 1.044 GB, free: 441.7 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/3.133, allocations: 295.6 kB / 1.044 GB, free: 441.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.588e-05/3.133, allocations: 392.3 kB / 1.044 GB, free: 441.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/3.134, allocations: 448.8 kB / 1.045 GB, free: 441.3 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/3.135, allocations: 1.192 MB / 1.046 GB, free: 440.4 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/3.138, allocations: 1.703 MB / 1.048 GB, free: 439.3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/3.138, allocations: 7.594 kB / 1.048 GB, free: 439.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003907/3.142, allocations: 1.797 MB / 1.049 GB, free: 439 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/3.142, allocations: 15.66 kB / 1.049 GB, free: 439 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/3.142, allocations: 31.38 kB / 1.049 GB, free: 439 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/3.144, allocations: 442.7 kB / 1.05 GB, free: 438.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/3.146, allocations: 441 kB / 1.05 GB, free: 438.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/3.147, allocations: 1.827 MB / 1.052 GB, free: 436.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/3.148, allocations: 252.6 kB / 1.052 GB, free: 436.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.864e-05/3.149, allocations: 83.92 kB / 1.052 GB, free: 436.6 MB / 0.8262 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.0003976/3.149, allocations: 306.4 kB / 1.053 GB, free: 436.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/3.149, allocations: 94.88 kB / 1.053 GB, free: 436.3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002857/3.152, allocations: 1.087 MB / 1.054 GB, free: 435.4 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/3.152, allocations: 4 kB / 1.054 GB, free: 435.4 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/3.152, allocations: 6.25 kB / 1.054 GB, free: 435.4 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/3.152, allocations: 3.984 kB / 1.054 GB, free: 435.4 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/3.155, allocations: 1.848 MB / 1.056 GB, free: 433.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/3.155, allocations: 0 / 1.056 GB, free: 433.9 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/3.157, allocations: 297 kB / 1.056 GB, free: 433.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/3.157, allocations: 61.89 kB / 1.056 GB, free: 433.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/3.157, allocations: 24.17 kB / 1.056 GB, free: 433.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003358/3.158, allocations: 1.06 MB / 1.057 GB, free: 432.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/3.158, allocations: 3.938 kB / 1.057 GB, free: 432.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/3.161, allocations: 1.489 MB / 1.058 GB, free: 431.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/3.162, allocations: 238 kB / 1.059 GB, free: 431 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/3.162, allocations: 15.81 kB / 1.059 GB, free: 431 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007956/3.163, allocations: 96.45 kB / 1.059 GB, free: 431 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/3.163, allocations: 56.22 kB / 1.059 GB, free: 430.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/3.163, allocations: 19.94 kB / 1.059 GB, free: 430.9 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004675/3.163, allocations: 0.4912 MB / 1.059 GB, free: 430.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/3.163, allocations: 0 / 1.059 GB, free: 430.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.005268/3.169, allocations: 1.806 MB / 1.061 GB, free: 429 MB / 0.8262 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.009337/3.178, allocations: 2.633 MB / 1.064 GB, free: 427 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003419/3.182, allocations: 1.191 MB / 1.065 GB, free: 426.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/3.182, allocations: 3.875 kB / 1.065 GB, free: 426.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001239/3.183, allocations: 465 kB / 1.065 GB, free: 425.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/3.184, allocations: 148.5 kB / 1.065 GB, free: 425.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003066/3.187, allocations: 2.215 MB / 1.068 GB, free: 423.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/3.187, allocations: 0.9988 MB / 1.069 GB, free: 422.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006922/3.188, allocations: 169.6 kB / 1.069 GB, free: 422.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/3.188, allocations: 83.22 kB / 1.069 GB, free: 422.3 MB / 0.8262 GB Notification: Performance of SimCode: time 8.22e-07/3.188, allocations: 4 kB / 1.069 GB, free: 422.3 MB / 0.8262 GB Notification: Performance of Templates: time 0.05508/3.243, allocations: 56.11 MB / 1.124 GB, free: 366.9 MB / 0.8262 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)