Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe") translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.484/1.484, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001166/0.001166, allocations: 176.9 kB / 316.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 86.69 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.467e-05/1.469e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.627/1.844, allocations: 424.1 MB / 1.299 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/1.845, allocations: 91.16 kB / 1.299 GB, free: 321.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.838/4.683, allocations: 0.7436 GB / 2.043 GB, free: 134.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.224e-06/4.683, allocations: 0 / 2.043 GB, free: 134.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.001197/4.684, allocations: 179.3 kB / 2.043 GB, free: 134.5 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.02088/4.705, allocations: 5.612 MB / 2.049 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/4.705, allocations: 10.53 kB / 2.049 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005424/4.71, allocations: 0.8334 MB / 2.05 GB, free: 132.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05095/4.761, allocations: 22.7 MB / 2.072 GB, free: 130.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000351/4.762, allocations: 241.2 kB / 2.072 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/4.763, allocations: 311 kB / 2.072 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01023/4.774, allocations: 5.015 MB / 2.077 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/4.785, allocations: 6.166 MB / 2.083 GB, free: 129.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001379/4.785, allocations: 19.78 kB / 2.083 GB, free: 129.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000574/4.785, allocations: 11.25 kB / 2.083 GB, free: 129.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001535/4.786, allocations: 169.9 kB / 2.083 GB, free: 129.9 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.03589/4.822, allocations: 28.58 MB / 2.111 GB, free: 115.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004895/4.826, allocations: 3.224 MB / 2.114 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/4.828, allocations: 1.617 MB / 2.116 GB, free: 114.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000839/4.829, allocations: 0.9752 MB / 2.117 GB, free: 113 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.829e-05/4.829, allocations: 71.12 kB / 2.117 GB, free: 112.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=253): time 4.128e-06/4.829, allocations: 0 / 2.117 GB, free: 112.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=253): time 0.006474/4.836, allocations: 3.033 MB / 2.12 GB, free: 111.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/4.836, allocations: 81.38 kB / 2.12 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01131/4.847, allocations: 4.648 MB / 2.125 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.001004/4.848, allocations: 29.52 kB / 2.125 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.002578/4.851, allocations: 2.925 MB / 2.127 GB, free: 107.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001484/4.852, allocations: 0.8584 MB / 2.128 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/4.852, allocations: 0.5625 kB / 2.128 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001984/4.853, allocations: 453.1 kB / 2.129 GB, free: 106.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/4.854, allocations: 1.393 MB / 2.13 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/4.857, allocations: 2.517 MB / 2.133 GB, free: 104.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/4.86, allocations: 2.094 MB / 2.135 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.722e-05/4.86, allocations: 11.41 kB / 2.135 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007664/4.867, allocations: 4.34 MB / 2.139 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.004008/4.871, allocations: 16.53 MB / 2.155 GB, free: 84.68 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.261e-05/4.872, allocations: 40.08 kB / 2.155 GB, free: 84.68 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/4.872, allocations: 64.97 kB / 2.155 GB, free: 84.68 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003994/4.876, allocations: 0.8765 MB / 2.156 GB, free: 84.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006053/4.876, allocations: 1.253 MB / 2.157 GB, free: 83.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006394/4.883, allocations: 443.6 kB / 2.158 GB, free: 83.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008293/4.884, allocations: 165.8 kB / 2.158 GB, free: 83.17 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/4.884, allocations: 3.938 kB / 2.158 GB, free: 83.17 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007278/4.891, allocations: 3.839 MB / 2.161 GB, free: 81.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/4.891, allocations: 33.5 kB / 2.162 GB, free: 81.91 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.91e-05/4.891, allocations: 59.78 kB / 2.162 GB, free: 81.91 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003188/4.894, allocations: 0.861 MB / 2.162 GB, free: 81.83 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001082/4.894, allocations: 79.64 kB / 2.162 GB, free: 81.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005974/4.9, allocations: 384.2 kB / 2.163 GB, free: 81.66 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008364/4.901, allocations: 163 kB / 2.163 GB, free: 81.64 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 434 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00143/4.903, allocations: 221.7 kB / 2.163 GB, free: 81.44 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002488/4.905, allocations: 484.4 kB / 2.164 GB, free: 81.19 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007937/4.913, allocations: 3.448 MB / 2.167 GB, free: 80.02 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.585e-05/4.913, allocations: 30.69 kB / 2.167 GB, free: 80.02 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.06e-05/4.913, allocations: 0 / 2.167 GB, free: 80.02 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00426/4.918, allocations: 2.675 MB / 2.17 GB, free: 79.11 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/4.938, allocations: 8.533 MB / 2.178 GB, free: 75.94 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/4.938, allocations: 0 / 2.178 GB, free: 75.94 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002507/4.941, allocations: 0.5378 MB / 2.179 GB, free: 75.81 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.665e-05/4.941, allocations: 8 kB / 2.179 GB, free: 75.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003722/4.941, allocations: 56.91 kB / 2.179 GB, free: 75.76 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004699/4.942, allocations: 1.174 MB / 2.18 GB, free: 74.55 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/4.942, allocations: 4 kB / 2.18 GB, free: 74.55 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009159/4.951, allocations: 5.362 MB / 2.185 GB, free: 69.82 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004582/4.955, allocations: 1.226 MB / 2.186 GB, free: 68.75 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00207/4.957, allocations: 19.7 kB / 2.186 GB, free: 68.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004926/4.962, allocations: 214.2 kB / 2.186 GB, free: 68.58 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003319/4.963, allocations: 153.7 kB / 2.187 GB, free: 68.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000473/4.963, allocations: 132.1 kB / 2.187 GB, free: 68.39 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.007448/4.971, allocations: 3.585 MB / 2.19 GB, free: 65.33 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.7e-07/4.971, allocations: 0 / 2.19 GB, free: 65.33 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01433/4.985, allocations: 3.192 MB / 2.193 GB, free: 62.14 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 22 (pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip.vol[4].dynBal.U,pip.vol[5].dynBal.U,pip.vol[6].dynBal.U,pip.vol[7].dynBal.U,pip.vol[8].dynBal.U,pip.vol[9].dynBal.U,pip.vol[10].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,pip1.vol[4].dynBal.U,pip1.vol[5].dynBal.U,pip1.vol[6].dynBal.U,pip1.vol[7].dynBal.U,pip1.vol[8].dynBal.U,pip1.vol[9].dynBal.U,pip1.vol[10].dynBal.U,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002185/4.987, allocations: 0.6595 MB / 2.194 GB, free: 61.61 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.009432/4.997, allocations: 5.478 MB / 2.199 GB, free: 56.73 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/4.997, allocations: 3.938 kB / 2.199 GB, free: 56.73 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.002368/4.999, allocations: 1.478 MB / 2.201 GB, free: 55.43 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01753/5.017, allocations: 3.174 MB / 2.204 GB, free: 53.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02471/5.042, allocations: 11.32 MB / 2.215 GB, free: 43.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007153/5.049, allocations: 4.632 MB / 2.219 GB, free: 38.44 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.01561/5.064, allocations: 4.311 MB / 2.224 GB, free: 34.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001697/5.066, allocations: 331 kB / 2.224 GB, free: 33.98 MB / 0.8698 GB Notification: Performance of SimCode: time 1.773e-06/5.066, allocations: 0 / 2.224 GB, free: 33.98 MB / 0.8698 GB Notification: Performance of Templates: time 0.7923/5.858, allocations: 106.2 MB / 2.328 GB, free: 134.6 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches