Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 108.5 kB / 16.41 MB, free: 6.41 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.001597/0.001597, allocations: 189.7 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.515/2.515, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.84 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7911/0.7925, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.2016/0.9942, allocations: 189.7 MB / 1.353 GB, free: 5.445 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.007462/1.002, allocations: 4.281 MB / 1.357 GB, free: 1.156 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00134/1.003, allocations: 27.81 kB / 1.357 GB, free: 1.129 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001447/1.005, allocations: 0.524 MB / 1.357 GB, free: 0.6016 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.004282/1.009, allocations: 1.626 MB / 1.359 GB, free: 14.97 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003544/1.012, allocations: 1.35 MB / 1.36 GB, free: 13.63 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.00335/1.016, allocations: 2.277 MB / 1.362 GB, free: 11.35 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/1.017, allocations: 1.077 MB / 1.363 GB, free: 10.26 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/1.019, allocations: 0.9771 MB / 1.364 GB, free: 9.277 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/1.02, allocations: 0.8678 MB / 1.365 GB, free: 8.406 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002146/1.021, allocations: 140 kB / 1.365 GB, free: 8.27 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002313/1.023, allocations: 1.251 MB / 1.367 GB, free: 7.016 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0004234/1.023, allocations: 422.7 kB / 1.367 GB, free: 6.602 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0006926/1.024, allocations: 0.6453 MB / 1.368 GB, free: 5.953 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.002626/1.027, allocations: 1.976 MB / 1.37 GB, free: 3.973 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.027, allocations: 4 kB / 1.37 GB, free: 3.969 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.453e-06/1.027, allocations: 0 / 1.37 GB, free: 3.969 MB / 1.092 GB Notification: Performance of Transformations before backend: time 2.012e-05/1.027, allocations: 4 kB / 1.37 GB, free: 3.965 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.004584/1.031, allocations: 1.716 MB / 1.371 GB, free: 2.191 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/1.032, allocations: 12.03 kB / 1.371 GB, free: 2.18 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009066/1.032, allocations: 182.4 kB / 1.371 GB, free: 2 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/1.034, allocations: 1.076 MB / 1.372 GB, free: 0.8672 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.319e-05/1.034, allocations: 41 kB / 1.373 GB, free: 0.8281 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/1.035, allocations: 63.94 kB / 1.373 GB, free: 0.7656 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/1.036, allocations: 0.6115 MB / 1.373 GB, free: 152 kB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/1.036, allocations: 0 / 1.373 GB, free: 152 kB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.127e-05/1.036, allocations: 20 kB / 1.373 GB, free: 132 kB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/1.036, allocations: 24.97 kB / 1.373 GB, free: 108 kB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/1.037, allocations: 0.6207 MB / 1.374 GB, free: 15.48 MB / 1.107 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.00448/1.042, allocations: 2.654 MB / 1.376 GB, free: 12.69 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/1.043, allocations: 0.5495 MB / 1.377 GB, free: 12.13 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006442/1.044, allocations: 348.6 kB / 1.377 GB, free: 11.79 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004448/1.044, allocations: 295.2 kB / 1.378 GB, free: 11.45 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/1.044, allocations: 42.5 kB / 1.378 GB, free: 11.39 MB / 1.107 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007348/1.045, allocations: 139.5 kB / 1.378 GB, free: 11.26 MB / 1.107 GB Notification: Performance of pre-optimization done (n=43): time 2.946e-06/1.045, allocations: 0 / 1.378 GB, free: 11.26 MB / 1.107 GB Notification: Performance of matching and sorting (n=43): time 0.002437/1.047, allocations: 1.016 MB / 1.379 GB, free: 10.23 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/1.047, allocations: 59.41 kB / 1.379 GB, free: 10.16 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/1.05, allocations: 1.275 MB / 1.38 GB, free: 8.871 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 9.1e-05/1.05, allocations: 37.7 kB / 1.38 GB, free: 8.828 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/1.05, allocations: 429.7 kB / 1.38 GB, free: 8.406 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/1.05, allocations: 157.8 kB / 1.381 GB, free: 8.25 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/1.05, allocations: 110 kB / 1.381 GB, free: 8.137 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001173/1.05, allocations: 330 kB / 1.381 GB, free: 7.809 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005589/1.051, allocations: 270.2 kB / 1.381 GB, free: 7.543 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/1.052, allocations: 489 kB / 1.382 GB, free: 6.988 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/1.053, allocations: 0.5794 MB / 1.382 GB, free: 6.406 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/1.053, allocations: 0 / 1.382 GB, free: 6.406 MB / 1.107 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001732/1.055, allocations: 0.7491 MB / 1.383 GB, free: 5.648 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/1.055, allocations: 8 kB / 1.383 GB, free: 5.641 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/1.055, allocations: 4 kB / 1.383 GB, free: 5.637 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/1.055, allocations: 0 / 1.383 GB, free: 5.637 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/1.056, allocations: 123.8 kB / 1.383 GB, free: 5.516 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/1.056, allocations: 4 kB / 1.383 GB, free: 5.512 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/1.057, allocations: 83.89 kB / 1.383 GB, free: 5.43 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/1.057, allocations: 27.97 kB / 1.383 GB, free: 5.402 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008895/1.058, allocations: 463.9 kB / 1.384 GB, free: 4.945 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007955/1.059, allocations: 497.8 kB / 1.384 GB, free: 4.379 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001163/1.06, allocations: 0.5844 MB / 1.385 GB, free: 3.793 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/1.06, allocations: 0 / 1.385 GB, free: 3.793 MB / 1.107 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001776/1.062, allocations: 0.7343 MB / 1.386 GB, free: 3.051 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.062, allocations: 6.344 kB / 1.386 GB, free: 3.047 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/1.062, allocations: 4 kB / 1.386 GB, free: 3.043 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.754e-06/1.062, allocations: 4 kB / 1.386 GB, free: 3.039 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006911/1.063, allocations: 111.8 kB / 1.386 GB, free: 2.93 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/1.063, allocations: 11.92 kB / 1.386 GB, free: 2.918 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/1.064, allocations: 132.2 kB / 1.386 GB, free: 2.789 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/1.064, allocations: 19.98 kB / 1.386 GB, free: 2.77 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002297/1.064, allocations: 208.2 kB / 1.386 GB, free: 2.559 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/1.065, allocations: 102.7 kB / 1.386 GB, free: 2.457 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/1.066, allocations: 0.8109 MB / 1.387 GB, free: 1.641 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.617e-06/1.067, allocations: 4 kB / 1.387 GB, free: 1.637 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.067, allocations: 7.984 kB / 1.387 GB, free: 1.629 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/1.067, allocations: 3.984 kB / 1.387 GB, free: 1.625 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003438/1.07, allocations: 1.957 MB / 1.389 GB, free: 15.59 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.07, allocations: 0 / 1.389 GB, free: 15.59 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006151/1.071, allocations: 107.8 kB / 1.389 GB, free: 15.48 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/1.071, allocations: 7.938 kB / 1.389 GB, free: 15.47 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/1.071, allocations: 15.98 kB / 1.389 GB, free: 15.46 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.306e-06/1.071, allocations: 7.938 kB / 1.389 GB, free: 15.45 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.071, allocations: 4 kB / 1.389 GB, free: 15.45 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/1.073, allocations: 1.228 MB / 1.39 GB, free: 14.17 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005561/1.073, allocations: 283.8 kB / 1.39 GB, free: 13.88 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/1.074, allocations: 24.05 kB / 1.39 GB, free: 13.85 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/1.075, allocations: 63.86 kB / 1.39 GB, free: 13.79 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/1.075, allocations: 43.84 kB / 1.391 GB, free: 13.75 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.656e-05/1.075, allocations: 23.98 kB / 1.391 GB, free: 13.72 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001485/1.076, allocations: 0.9247 MB / 1.391 GB, free: 12.79 MB / 1.123 GB Notification: Performance of sort global known variables: time 2.51e-07/1.076, allocations: 0 / 1.391 GB, free: 12.79 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001198/1.078, allocations: 403.4 kB / 1.392 GB, free: 12.39 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (mixBox.filter.s[1],mixBox.filter.s[2]) * 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005299/1.078, allocations: 218.9 kB / 1.392 GB, free: 12.18 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.002081/1.08, allocations: 0.9357 MB / 1.393 GB, free: 11.24 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.08, allocations: 0 / 1.393 GB, free: 11.24 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0006431/1.081, allocations: 340.1 kB / 1.393 GB, free: 10.91 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/1.083, allocations: 439 kB / 1.394 GB, free: 10.49 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/1.086, allocations: 1.72 MB / 1.395 GB, free: 8.699 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/1.086, allocations: 1.041 MB / 1.396 GB, free: 7.625 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/1.087, allocations: 99.38 kB / 1.397 GB, free: 7.527 MB / 1.123 GB Notification: Performance of SimCode: time 1.854e-06/1.087, allocations: 0 / 1.397 GB, free: 7.527 MB / 1.123 GB Notification: Performance of Templates: time 0.02506/1.112, allocations: 16.34 MB / 1.412 GB, free: 7.324 MB / 1.139 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches