Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Fluid.Delays.Examples.Delay") translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_latest_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.001136/0.001136, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.00125/0.00125, allocations: 168.7 kB / 15.95 MB, free: 204 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.472/1.472, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.966/2.966, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.000418, allocations: 14.66 kB / 0.9021 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3639, allocations: 159.6 MB / 1.058 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.2142/0.5782, allocations: 166.7 MB / 1.221 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.009539/0.5878, allocations: 4.573 MB / 1.225 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.5894, allocations: 27.81 kB / 1.225 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.5908, allocations: 298.1 kB / 1.226 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.004341/0.5952, allocations: 1.037 MB / 1.227 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002721/0.5979, allocations: 0.6072 MB / 1.227 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003524/0.6014, allocations: 2.144 MB / 1.229 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001174/0.6026, allocations: 444.6 kB / 1.23 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.605, allocations: 0.7079 MB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.6063, allocations: 0.5175 MB / 1.231 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001974/0.6065, allocations: 28 kB / 1.231 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00301/0.6095, allocations: 0.873 MB / 1.232 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0005904/0.6101, allocations: 223.3 kB / 1.232 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005513/0.6107, allocations: 169.3 kB / 1.232 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002161/0.6129, allocations: 0.9547 MB / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.6129, allocations: 0 / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.206e-06/0.6129, allocations: 0 / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.401e-05/0.613, allocations: 4 kB / 1.233 GB, free: 1.59 MB / 0.9825 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.002254/0.6152, allocations: 0.9656 MB / 1.234 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.6153, allocations: 15.97 kB / 1.234 GB, free: 0.5547 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/0.6167, allocations: 206.9 kB / 1.234 GB, free: 360 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.618, allocations: 0.562 MB / 1.235 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.618, allocations: 33 kB / 1.235 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.6182, allocations: 52 kB / 1.235 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.6192, allocations: 498.3 kB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.6192, allocations: 0 / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.6193, allocations: 27.88 kB / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-05/0.6193, allocations: 17 kB / 1.235 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008284/0.6202, allocations: 447.7 kB / 1.236 GB, free: 14.69 MB / 0.9981 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.003026/0.6232, allocations: 2.017 MB / 1.238 GB, free: 12.49 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.6239, allocations: 351.5 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.6242, allocations: 213.3 kB / 1.238 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003006/0.6245, allocations: 190.5 kB / 1.238 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.6246, allocations: 42.83 kB / 1.239 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.6246, allocations: 0 / 1.239 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.001309/0.6259, allocations: 0.5497 MB / 1.239 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.626, allocations: 59.34 kB / 1.239 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006153/0.6266, allocations: 0.5029 MB / 1.24 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.6267, allocations: 33.7 kB / 1.24 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.6269, allocations: 308.2 kB / 1.24 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.627, allocations: 114.2 kB / 1.24 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.6271, allocations: 12 kB / 1.24 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001798/0.6273, allocations: 370.7 kB / 1.24 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.6275, allocations: 136.6 kB / 1.241 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.6279, allocations: 216 kB / 1.241 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.6282, allocations: 175.7 kB / 1.241 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.6282, allocations: 0 / 1.241 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007487/0.629, allocations: 437.8 kB / 1.241 GB, free: 8.703 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-05/0.6291, allocations: 119.8 kB / 1.241 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.6291, allocations: 0 / 1.241 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.6291, allocations: 4 kB / 1.241 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.6295, allocations: 75.89 kB / 1.242 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.6295, allocations: 7.953 kB / 1.242 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005288/0.63, allocations: 63.64 kB / 1.242 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.6301, allocations: 16 kB / 1.242 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.6301, allocations: 6.031 kB / 1.242 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006276/0.6307, allocations: 351.5 kB / 1.242 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.6307, allocations: 0 / 1.242 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-06/0.6307, allocations: 4 kB / 1.242 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.631, allocations: 72.06 kB / 1.242 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.6311, allocations: 11.98 kB / 1.242 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000512/0.6316, allocations: 67.64 kB / 1.242 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.6316, allocations: 8 kB / 1.242 GB, free: 7.898 MB / 0.9981 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.0003321/0.632, allocations: 297 kB / 1.242 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.6321, allocations: 55.34 kB / 1.242 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008017/0.6329, allocations: 436.1 kB / 1.243 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.6329, allocations: 4 kB / 1.243 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.6329, allocations: 0 / 1.243 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006348/0.6336, allocations: 440.5 kB / 1.243 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.6354, allocations: 1.194 MB / 1.244 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.6355, allocations: 3.938 kB / 1.244 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.6359, allocations: 91.81 kB / 1.245 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.496e-05/0.6359, allocations: 7.984 kB / 1.245 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.636, allocations: 8 kB / 1.245 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.636, allocations: 4 kB / 1.245 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.636, allocations: 8.125 kB / 1.245 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6372, allocations: 0.7144 MB / 1.245 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/0.6376, allocations: 180.3 kB / 1.245 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.635e-05/0.6377, allocations: 8 kB / 1.245 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.6382, allocations: 47.95 kB / 1.245 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.6383, allocations: 35.86 kB / 1.246 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.6383, allocations: 12 kB / 1.246 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004595/0.6388, allocations: 358.8 kB / 1.246 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6388, allocations: 0 / 1.246 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001033/0.6398, allocations: 323.2 kB / 1.246 GB, free: 3.543 MB / 0.9981 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.0005705/0.6404, allocations: 177.1 kB / 1.246 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001114/0.6415, allocations: 0.5199 MB / 1.247 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.6416, allocations: 0 / 1.247 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003383/0.6419, allocations: 188.2 kB / 1.247 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.6437, allocations: 372.8 kB / 1.247 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.6463, allocations: 1.555 MB / 1.249 GB, free: 0.7031 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.6467/1.293, allocations: 0.9286 MB / 1.25 GB, free: 190.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009535/1.294, allocations: 186.8 kB / 1.25 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/1.294, allocations: 48.89 kB / 1.25 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.062e-06/1.294, allocations: 0 / 1.25 GB, free: 190.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.02334/1.317, allocations: 10.94 MB / 1.261 GB, free: 190.2 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.makefile (rm -f Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.sim & ./Buildings_latest_Buildings.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Delays_Examples_Delay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches