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.444/1.444, allocations: 249.3 MB / 261.8 MB, free: 5.949 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.001022/0.001022, allocations: 182.1 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.0007974/0.0007974, allocations: 86.48 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.381e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2521, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.741/1.993, allocations: 423.8 MB / 1.306 GB, free: 258.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/1.993, allocations: 91.11 kB / 1.306 GB, free: 258.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.889/4.882, allocations: 0.7482 GB / 2.054 GB, free: 122.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.226e-06/4.882, allocations: 0 / 2.054 GB, free: 122.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.001603/4.884, allocations: 188.6 kB / 2.054 GB, free: 122.2 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.02147/4.905, allocations: 5.599 MB / 2.06 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/4.905, allocations: 12.66 kB / 2.06 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/4.911, allocations: 0.8334 MB / 2.06 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04996/4.961, allocations: 22.76 MB / 2.083 GB, free: 118.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004615/4.962, allocations: 426.8 kB / 2.083 GB, free: 118.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00208/4.964, allocations: 0.5043 MB / 2.084 GB, free: 118.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01491/4.979, allocations: 6.909 MB / 2.09 GB, free: 117.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/4.979, allocations: 26.12 kB / 2.09 GB, free: 117.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000786/4.98, allocations: 221 kB / 2.091 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/4.98, allocations: 170.7 kB / 2.091 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0105/4.99, allocations: 5.343 MB / 2.096 GB, free: 115.3 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.03965/5.03, allocations: 29.67 MB / 2.125 GB, free: 95.89 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004745/5.035, allocations: 3.356 MB / 2.128 GB, free: 94.82 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001971/5.037, allocations: 1.7 MB / 2.13 GB, free: 94.23 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008354/5.038, allocations: 0.9735 MB / 2.131 GB, free: 93.18 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.585e-05/5.038, allocations: 69.78 kB / 2.131 GB, free: 93.12 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=253): time 3.877e-06/5.038, allocations: 0 / 2.131 GB, free: 93.12 MB / 0.8698 GB Notification: Performance of matching and sorting (n=253): time 0.006031/5.044, allocations: 3.145 MB / 2.134 GB, free: 91.99 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/5.044, allocations: 79.72 kB / 2.134 GB, free: 91.93 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/5.054, allocations: 5.684 MB / 2.14 GB, free: 90.01 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.000808/5.055, allocations: 76.8 kB / 2.14 GB, free: 89.94 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0026/5.058, allocations: 2.986 MB / 2.143 GB, free: 87.63 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001451/5.059, allocations: 0.8989 MB / 2.143 GB, free: 86.94 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/5.059, allocations: 69.97 kB / 2.144 GB, free: 86.89 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002151/5.06, allocations: 450.3 kB / 2.144 GB, free: 86.52 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/5.062, allocations: 1.453 MB / 2.145 GB, free: 86.04 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/5.064, allocations: 2.613 MB / 2.148 GB, free: 84.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002652/5.067, allocations: 2.076 MB / 2.15 GB, free: 83.39 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/5.067, allocations: 14.22 kB / 2.15 GB, free: 83.39 MB / 0.8698 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008019/5.075, allocations: 4.665 MB / 2.155 GB, free: 81.57 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.003249/5.078, allocations: 17.14 MB / 2.171 GB, free: 63.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.951e-05/5.078, allocations: 39.28 kB / 2.171 GB, free: 63.29 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.711e-05/5.078, allocations: 60.09 kB / 2.171 GB, free: 63.23 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/5.082, allocations: 0.8831 MB / 2.172 GB, free: 62.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005467/5.082, allocations: 1.247 MB / 2.173 GB, free: 61.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006233/5.089, allocations: 0.5791 MB / 2.174 GB, free: 60.65 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007302/5.089, allocations: 167.1 kB / 2.174 GB, free: 60.49 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/5.089, allocations: 5.562 kB / 2.174 GB, free: 60.49 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006009/5.095, allocations: 4.167 MB / 2.178 GB, free: 56.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.582e-05/5.096, allocations: 36 kB / 2.178 GB, free: 56.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.849e-05/5.096, allocations: 56 kB / 2.178 GB, free: 56.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/5.098, allocations: 0.8649 MB / 2.179 GB, free: 56.02 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.428e-05/5.098, allocations: 77.45 kB / 2.179 GB, free: 55.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005991/5.104, allocations: 0.5187 MB / 2.18 GB, free: 55.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006634/5.105, allocations: 166.8 kB / 2.18 GB, free: 55.32 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.001144/5.106, allocations: 334.8 kB / 2.18 GB, free: 54.99 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002208/5.109, allocations: 0.5404 MB / 2.181 GB, free: 54.44 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/5.115, allocations: 3.637 MB / 2.184 GB, free: 51.38 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-05/5.115, allocations: 28 kB / 2.184 GB, free: 51.35 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.505e-06/5.115, allocations: 0 / 2.184 GB, free: 51.35 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003183/5.118, allocations: 2.74 MB / 2.187 GB, free: 48.98 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/5.135, allocations: 9.236 MB / 2.196 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/5.135, allocations: 0 / 2.196 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002044/5.137, allocations: 0.5423 MB / 2.197 GB, free: 39.89 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.158e-05/5.137, allocations: 15.95 kB / 2.197 GB, free: 39.87 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/5.137, allocations: 79.95 kB / 2.197 GB, free: 39.79 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003511/5.138, allocations: 1.172 MB / 2.198 GB, free: 38.57 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/5.138, allocations: 4 kB / 2.198 GB, free: 38.57 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007442/5.145, allocations: 5.549 MB / 2.203 GB, free: 32.9 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00547/5.151, allocations: 1.31 MB / 2.204 GB, free: 31.56 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002654/5.153, allocations: 59.98 kB / 2.205 GB, free: 31.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005023/5.158, allocations: 259.2 kB / 2.205 GB, free: 31.25 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/5.159, allocations: 149.8 kB / 2.205 GB, free: 31.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004212/5.159, allocations: 131.9 kB / 2.205 GB, free: 30.97 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.009507/5.169, allocations: 4.473 MB / 2.209 GB, free: 26.53 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.41e-07/5.169, allocations: 0 / 2.209 GB, free: 26.53 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01475/5.184, allocations: 3.226 MB / 2.213 GB, free: 23.3 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.0025/5.186, allocations: 0.7063 MB / 2.213 GB, free: 22.67 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01164/5.198, allocations: 5.805 MB / 2.219 GB, free: 16.84 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.768e-05/5.198, allocations: 4.062 kB / 2.219 GB, free: 16.84 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003047/5.201, allocations: 1.534 MB / 2.22 GB, free: 15.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02006/5.221, allocations: 3.839 MB / 2.224 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02591/5.247, allocations: 11.68 MB / 2.236 GB, free: 12 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008755/5.256, allocations: 4.641 MB / 2.24 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.02031/5.276, allocations: 4.946 MB / 2.245 GB, free: 6.547 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/5.278, allocations: 347.3 kB / 2.245 GB, free: 6.207 MB / 0.8855 GB Notification: Performance of SimCode: time 1.283e-06/5.278, allocations: 3.938 kB / 2.245 GB, free: 6.203 MB / 0.8855 GB Notification: Performance of Templates: time 0.8178/6.096, allocations: 128.9 MB / 2.371 GB, free: 139.1 MB / 0.9011 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