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.8533/0.8533, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.432e-05/1.465e-05, allocations: 0 / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1853, allocations: 31.97 MB / 236.8 MB, free: 5.461 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.756/1.941, allocations: 295.6 MB / 0.5199 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6141/2.556, allocations: 188.7 MB / 0.7042 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006854/2.556, allocations: 13.19 kB / 0.7042 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002477/2.557, allocations: 78.56 kB / 0.7043 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008111/2.557, allocations: 260.7 kB / 0.7045 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03146/2.589, allocations: 9.845 MB / 0.7142 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002328/2.591, allocations: 1.424 MB / 0.7155 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000952/2.592, allocations: 0.4985 MB / 0.716 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/2.593, allocations: 0.5029 MB / 0.7165 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/2.595, allocations: 0.577 MB / 0.7171 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000369/2.595, allocations: 73.64 kB / 0.7172 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04473/2.64, allocations: 19.43 MB / 0.7361 GB, free: 3.074 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007755/2.641, allocations: 243.2 kB / 0.7364 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001479/2.642, allocations: 0.565 MB / 0.7369 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03156/2.674, allocations: 10.93 MB / 0.7476 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/2.674, allocations: 0 / 0.7476 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.695e-06/2.674, allocations: 0 / 0.7476 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.457e-05/2.674, allocations: 0 / 0.7476 GB, free: 14.77 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.009767/2.684, allocations: 2.844 MB / 0.7504 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/2.684, allocations: 9.688 kB / 0.7504 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003887/2.684, allocations: 124.8 kB / 0.7505 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009776/2.685, allocations: 0.5562 MB / 0.751 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/2.685, allocations: 148.1 kB / 0.7512 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/2.686, allocations: 117.9 kB / 0.7513 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003274/2.689, allocations: 1.62 MB / 0.7529 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/2.689, allocations: 8.938 kB / 0.7529 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/2.689, allocations: 47.91 kB / 0.7529 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/2.689, allocations: 26.06 kB / 0.753 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/2.693, allocations: 1.559 MB / 0.7545 GB, free: 11.4 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.006917/2.7, allocations: 7.824 MB / 0.7621 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00371/2.704, allocations: 1.136 MB / 0.7632 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/2.705, allocations: 434.7 kB / 0.7636 GB, free: 4.348 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8275/3.532, allocations: 286.5 MB / 1.043 GB, free: 411.3 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/3.532, allocations: 38 kB / 1.043 GB, free: 411.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=52): time 2.725e-06/3.533, allocations: 0 / 1.043 GB, free: 411.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=52): time 0.00517/3.538, allocations: 1.572 MB / 1.045 GB, free: 409.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/3.538, allocations: 107.2 kB / 1.045 GB, free: 409.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/3.539, allocations: 0.8 MB / 1.046 GB, free: 409.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/3.539, allocations: 37.14 kB / 1.046 GB, free: 409.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/3.539, allocations: 0.6015 MB / 1.047 GB, free: 408.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/3.54, allocations: 203.5 kB / 1.047 GB, free: 408.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/3.54, allocations: 131.6 kB / 1.047 GB, free: 408.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001157/3.54, allocations: 387.9 kB / 1.047 GB, free: 408.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001411/3.541, allocations: 499.7 kB / 1.048 GB, free: 407.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/3.543, allocations: 1.232 MB / 1.049 GB, free: 406.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/3.546, allocations: 1.787 MB / 1.051 GB, free: 404.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.136e-05/3.546, allocations: 8 kB / 1.051 GB, free: 404.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004548/3.551, allocations: 1.89 MB / 1.052 GB, free: 402.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/3.551, allocations: 17.62 kB / 1.052 GB, free: 402.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.34e-05/3.551, allocations: 28 kB / 1.053 GB, free: 402.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/3.554, allocations: 0.5026 MB / 1.053 GB, free: 402.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/3.555, allocations: 495.5 kB / 1.053 GB, free: 401.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/3.557, allocations: 1.83 MB / 1.055 GB, free: 400.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/3.558, allocations: 268.4 kB / 1.056 GB, free: 399.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/3.558, allocations: 83.78 kB / 1.056 GB, free: 399.7 MB / 0.8106 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.0005016/3.559, allocations: 312.8 kB / 1.056 GB, free: 399.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/3.559, allocations: 90.88 kB / 1.056 GB, free: 399.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/3.562, allocations: 1.162 MB / 1.057 GB, free: 398.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/3.562, allocations: 8 kB / 1.057 GB, free: 398.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/3.562, allocations: 0 / 1.057 GB, free: 398.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/3.562, allocations: 7.922 kB / 1.057 GB, free: 398.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/3.566, allocations: 1.936 MB / 1.059 GB, free: 396.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/3.566, allocations: 0 / 1.059 GB, free: 396.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/3.568, allocations: 347.1 kB / 1.059 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002634/3.568, allocations: 62.03 kB / 1.059 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.328e-05/3.568, allocations: 21.25 kB / 1.059 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004513/3.569, allocations: 1.068 MB / 1.06 GB, free: 395.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/3.569, allocations: 4.031 kB / 1.06 GB, free: 395.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/3.573, allocations: 1.617 MB / 1.062 GB, free: 394 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003884/3.574, allocations: 231.2 kB / 1.062 GB, free: 393.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/3.574, allocations: 14.19 kB / 1.062 GB, free: 393.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008806/3.575, allocations: 123.7 kB / 1.062 GB, free: 393.7 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/3.575, allocations: 52.8 kB / 1.062 GB, free: 393.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/3.575, allocations: 27.92 kB / 1.062 GB, free: 393.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000541/3.575, allocations: 495.4 kB / 1.063 GB, free: 393.2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.41e-07/3.575, allocations: 0 / 1.063 GB, free: 393.2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005912/3.581, allocations: 1.801 MB / 1.065 GB, free: 391.8 MB / 0.8106 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.009778/3.591, allocations: 2.6 MB / 1.067 GB, free: 389.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00411/3.595, allocations: 1.277 MB / 1.069 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/3.595, allocations: 4 kB / 1.069 GB, free: 388.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/3.597, allocations: 0.4966 MB / 1.069 GB, free: 388.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/3.598, allocations: 146.2 kB / 1.069 GB, free: 388.1 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/3.602, allocations: 2.337 MB / 1.071 GB, free: 385.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/3.602, allocations: 0.9987 MB / 1.072 GB, free: 384.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0007663/3.603, allocations: 164 kB / 1.073 GB, free: 384.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/3.603, allocations: 89.42 kB / 1.073 GB, free: 384.7 MB / 0.8106 GB Notification: Performance of SimCode: time 8.82e-07/3.603, allocations: 0 / 1.073 GB, free: 384.7 MB / 0.8106 GB Notification: Performance of Templates: time 0.0753/3.679, allocations: 55.35 MB / 1.127 GB, free: 330 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: