Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Delays.Examples.Delay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Delays.Examples.Delay") translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_9_Buildings.Fluid.Delays.Examples.Delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.466/2.466, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004354, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8105/0.811, allocations: 142.3 MB / 0.9535 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.2042/1.015, allocations: 152.6 MB / 1.102 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.008533/1.024, allocations: 4.792 MB / 1.107 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/1.025, allocations: 23.81 kB / 1.107 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001434/1.026, allocations: 442 kB / 1.108 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004336/1.031, allocations: 1.394 MB / 1.109 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002692/1.033, allocations: 0.8726 MB / 1.11 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002029/1.035, allocations: 1.086 MB / 1.111 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000641/1.036, allocations: 452.8 kB / 1.111 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/1.038, allocations: 0.5956 MB / 1.112 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006593/1.038, allocations: 350.5 kB / 1.112 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/1.038, allocations: 24 kB / 1.112 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/1.041, allocations: 0.6942 MB / 1.113 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002593/1.041, allocations: 207.3 kB / 1.113 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002051/1.041, allocations: 169.3 kB / 1.113 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001221/1.043, allocations: 0.8691 MB / 1.114 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/1.043, allocations: 0 / 1.114 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.384e-06/1.043, allocations: 0 / 1.114 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.028e-05/1.043, allocations: 0 / 1.114 GB, free: 11.23 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001684/1.044, allocations: 0.9499 MB / 1.115 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/1.044, allocations: 8.031 kB / 1.115 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/1.046, allocations: 222.8 kB / 1.115 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009169/1.047, allocations: 0.558 MB / 1.116 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/1.047, allocations: 33 kB / 1.116 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.968e-05/1.047, allocations: 48 kB / 1.116 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008811/1.048, allocations: 0.4905 MB / 1.116 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/1.048, allocations: 3.984 kB / 1.116 GB, free: 8.828 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.438e-05/1.048, allocations: 20 kB / 1.116 GB, free: 8.809 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/1.048, allocations: 17 kB / 1.116 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007692/1.048, allocations: 439.7 kB / 1.117 GB, free: 8.363 MB / 0.8731 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.002784/1.051, allocations: 2.006 MB / 1.119 GB, free: 6.184 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/1.052, allocations: 355.5 kB / 1.119 GB, free: 5.828 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 6.338e-05/1.052, allocations: 20.25 kB / 1.119 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.052, allocations: 46.8 kB / 1.119 GB, free: 5.754 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/1.052, allocations: 0 / 1.119 GB, free: 5.754 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33): time 0.001212/1.053, allocations: 0.554 MB / 1.12 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/1.053, allocations: 55.41 kB / 1.12 GB, free: 5.129 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/1.054, allocations: 0.503 MB / 1.12 GB, free: 4.617 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/1.054, allocations: 29.7 kB / 1.12 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/1.054, allocations: 308.1 kB / 1.121 GB, free: 4.277 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/1.054, allocations: 118.3 kB / 1.121 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.601e-05/1.054, allocations: 4 kB / 1.121 GB, free: 4.156 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001691/1.054, allocations: 374.8 kB / 1.121 GB, free: 3.781 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/1.055, allocations: 136.5 kB / 1.121 GB, free: 3.648 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/1.055, allocations: 220 kB / 1.121 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/1.055, allocations: 168.9 kB / 1.122 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.055, allocations: 4 kB / 1.122 GB, free: 3.242 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007285/1.056, allocations: 436.5 kB / 1.122 GB, free: 2.809 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.000172/1.056, allocations: 360 kB / 1.122 GB, free: 2.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/1.056, allocations: 0 / 1.122 GB, free: 2.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/1.056, allocations: 4 kB / 1.122 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/1.057, allocations: 75.89 kB / 1.122 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/1.057, allocations: 11.95 kB / 1.122 GB, free: 2.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/1.057, allocations: 75.64 kB / 1.123 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/1.057, allocations: 12 kB / 1.123 GB, free: 2.254 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/1.057, allocations: 5.094 kB / 1.123 GB, free: 2.25 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005848/1.058, allocations: 347.8 kB / 1.123 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-06/1.058, allocations: 0 / 1.123 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-06/1.058, allocations: 8.094 kB / 1.123 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/1.058, allocations: 75.89 kB / 1.123 GB, free: 1.828 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/1.058, allocations: 4 kB / 1.123 GB, free: 1.824 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/1.059, allocations: 63.64 kB / 1.123 GB, free: 1.762 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/1.059, allocations: 16 kB / 1.123 GB, free: 1.746 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003089/1.059, allocations: 291.2 kB / 1.123 GB, free: 1.453 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/1.059, allocations: 63.25 kB / 1.123 GB, free: 1.391 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007541/1.06, allocations: 431.2 kB / 1.124 GB, free: 0.957 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/1.06, allocations: 4 kB / 1.124 GB, free: 0.9531 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/1.06, allocations: 0 / 1.124 GB, free: 0.9531 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005769/1.061, allocations: 440.3 kB / 1.124 GB, free: 0.4922 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/1.062, allocations: 1.188 MB / 1.125 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/1.062, allocations: 0 / 1.125 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/1.063, allocations: 87.89 kB / 1.125 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/1.063, allocations: 8.188 kB / 1.125 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/1.063, allocations: 8 kB / 1.125 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/1.063, allocations: 4 kB / 1.125 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.063, allocations: 3.938 kB / 1.125 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/1.064, allocations: 0.7873 MB / 1.126 GB, free: 14.26 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002493/1.064, allocations: 184.3 kB / 1.126 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.992e-05/1.064, allocations: 8 kB / 1.126 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/1.065, allocations: 59.88 kB / 1.126 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.499e-05/1.065, allocations: 31.84 kB / 1.127 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/1.065, allocations: 27.92 kB / 1.127 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003951/1.065, allocations: 350.8 kB / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.065, allocations: 0 / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008743/1.066, allocations: 327.2 kB / 1.127 GB, free: 13.27 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.medium.Xi[1],del.dynBal.U,del.dynBal.m) * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005288/1.067, allocations: 179.7 kB / 1.127 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009871/1.068, allocations: 0.5202 MB / 1.128 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.068, allocations: 0 / 1.128 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003043/1.068, allocations: 192.5 kB / 1.128 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/1.07, allocations: 362 kB / 1.128 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/1.072, allocations: 1.564 MB / 1.13 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/1.073, allocations: 0.9412 MB / 1.131 GB, free: 9.465 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0006615/1.073, allocations: 184.8 kB / 1.131 GB, free: 9.281 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/1.074, allocations: 51.44 kB / 1.131 GB, free: 9.23 MB / 0.8887 GB Notification: Performance of SimCode: time 1.352e-06/1.074, allocations: 0 / 1.131 GB, free: 9.23 MB / 0.8887 GB Notification: Performance of Templates: time 0.02091/1.095, allocations: 10.93 MB / 1.142 GB, free: 14.47 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.makefile (rm -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.sim & ./Buildings_9_Buildings.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Delays_Examples_Delay.csv","../files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches