Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_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.00122/0.00122, allocations: 106.7 kB / 16.41 MB, free: 6.488 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.001241/0.001242, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.347/2.347, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 59.91 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7983/0.7997, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.2249/1.025, allocations: 189.7 MB / 1.274 GB, free: 16 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007949/1.033, allocations: 4.276 MB / 1.278 GB, free: 11.73 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/1.034, allocations: 35.81 kB / 1.278 GB, free: 11.7 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001603/1.036, allocations: 0.5005 MB / 1.279 GB, free: 11.19 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004278/1.04, allocations: 1.559 MB / 1.28 GB, free: 9.625 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003587/1.044, allocations: 1.345 MB / 1.281 GB, free: 8.289 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003231/1.047, allocations: 2.264 MB / 1.284 GB, free: 6.016 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001821/1.049, allocations: 1.084 MB / 1.285 GB, free: 4.922 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/1.051, allocations: 0.9615 MB / 1.286 GB, free: 3.957 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/1.052, allocations: 0.8756 MB / 1.286 GB, free: 3.078 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0004455/1.053, allocations: 143.9 kB / 1.287 GB, free: 2.938 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/1.055, allocations: 1.236 MB / 1.288 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007184/1.056, allocations: 422.7 kB / 1.288 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001117/1.057, allocations: 0.6492 MB / 1.289 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.003346/1.061, allocations: 1.976 MB / 1.291 GB, free: 14.65 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/1.061, allocations: 0 / 1.291 GB, free: 14.65 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.593e-06/1.061, allocations: 0 / 1.291 GB, free: 14.65 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.837e-05/1.061, allocations: 0 / 1.291 GB, free: 14.65 MB / 1.029 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.004931/1.066, allocations: 1.727 MB / 1.292 GB, free: 12.88 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/1.066, allocations: 8.031 kB / 1.292 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008935/1.067, allocations: 186.4 kB / 1.293 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/1.068, allocations: 1.069 MB / 1.294 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/1.068, allocations: 41 kB / 1.294 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/1.069, allocations: 59.94 kB / 1.294 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/1.07, allocations: 0.6115 MB / 1.294 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/1.07, allocations: 0 / 1.294 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/1.07, allocations: 20 kB / 1.294 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/1.07, allocations: 17 kB / 1.294 GB, free: 10.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/1.071, allocations: 0.6246 MB / 1.295 GB, free: 10.18 MB / 1.029 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.003875/1.075, allocations: 2.661 MB / 1.298 GB, free: 7.375 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/1.076, allocations: 0.5412 MB / 1.298 GB, free: 6.824 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/1.077, allocations: 349.4 kB / 1.298 GB, free: 6.48 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003787/1.077, allocations: 299.2 kB / 1.299 GB, free: 6.133 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/1.077, allocations: 38.5 kB / 1.299 GB, free: 6.086 MB / 1.029 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006406/1.078, allocations: 135.5 kB / 1.299 GB, free: 5.953 MB / 1.029 GB Notification: Performance of pre-optimization done (n=43): time 4.529e-06/1.078, allocations: 7.938 kB / 1.299 GB, free: 5.945 MB / 1.029 GB Notification: Performance of matching and sorting (n=43): time 0.002419/1.08, allocations: 1.02 MB / 1.3 GB, free: 4.918 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/1.08, allocations: 59.34 kB / 1.3 GB, free: 4.848 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/1.082, allocations: 1.275 MB / 1.301 GB, free: 3.555 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.888e-05/1.082, allocations: 33.7 kB / 1.301 GB, free: 3.516 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/1.083, allocations: 437.7 kB / 1.302 GB, free: 3.082 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/1.083, allocations: 153.7 kB / 1.302 GB, free: 2.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/1.083, allocations: 118 kB / 1.302 GB, free: 2.809 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 9.97e-05/1.083, allocations: 322 kB / 1.302 GB, free: 2.488 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005661/1.084, allocations: 270.2 kB / 1.303 GB, free: 2.223 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007773/1.085, allocations: 490.1 kB / 1.303 GB, free: 1.668 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/1.086, allocations: 0.5831 MB / 1.304 GB, free: 1.082 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/1.086, allocations: 0 / 1.304 GB, free: 1.082 MB / 1.029 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001627/1.087, allocations: 0.7492 MB / 1.304 GB, free: 332 kB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.088, allocations: 8 kB / 1.304 GB, free: 324 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/1.088, allocations: 0 / 1.304 GB, free: 324 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/1.088, allocations: 4 kB / 1.304 GB, free: 320 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/1.088, allocations: 119.8 kB / 1.304 GB, free: 200 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/1.088, allocations: 0 / 1.304 GB, free: 200 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/1.09, allocations: 95.81 kB / 1.304 GB, free: 104 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/1.09, allocations: 23.97 kB / 1.305 GB, free: 80 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000889/1.091, allocations: 467.9 kB / 1.305 GB, free: 15.62 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007279/1.091, allocations: 481.8 kB / 1.305 GB, free: 15.07 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001126/1.092, allocations: 0.5831 MB / 1.306 GB, free: 14.48 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.304e-06/1.092, allocations: 0 / 1.306 GB, free: 14.48 MB / 1.045 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001659/1.094, allocations: 0.7342 MB / 1.307 GB, free: 13.74 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/1.094, allocations: 15.98 kB / 1.307 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/1.094, allocations: 0 / 1.307 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.801e-06/1.094, allocations: 0 / 1.307 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006541/1.095, allocations: 115.8 kB / 1.307 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/1.095, allocations: 4 kB / 1.307 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/1.096, allocations: 132.2 kB / 1.307 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.443e-05/1.096, allocations: 31.91 kB / 1.307 GB, free: 13.45 MB / 1.045 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.0002236/1.097, allocations: 200.5 kB / 1.307 GB, free: 13.24 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003158/1.097, allocations: 110.7 kB / 1.307 GB, free: 13.13 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/1.099, allocations: 0.8109 MB / 1.308 GB, free: 12.32 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/1.099, allocations: 4 kB / 1.308 GB, free: 12.31 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.099, allocations: 0 / 1.308 GB, free: 12.31 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/1.099, allocations: 3.984 kB / 1.308 GB, free: 12.31 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/1.102, allocations: 1.952 MB / 1.31 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/1.102, allocations: 4 kB / 1.31 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006061/1.103, allocations: 107.8 kB / 1.31 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/1.103, allocations: 8 kB / 1.31 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.164e-05/1.103, allocations: 8 kB / 1.31 GB, free: 10.15 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.171e-05/1.103, allocations: 11.92 kB / 1.31 GB, free: 10.14 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.103, allocations: 4 kB / 1.31 GB, free: 10.13 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/1.105, allocations: 1.229 MB / 1.311 GB, free: 8.859 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005645/1.106, allocations: 291.7 kB / 1.312 GB, free: 8.555 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/1.106, allocations: 12 kB / 1.312 GB, free: 8.543 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/1.107, allocations: 67.84 kB / 1.312 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/1.107, allocations: 43.89 kB / 1.312 GB, free: 8.434 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.142e-05/1.107, allocations: 19.98 kB / 1.312 GB, free: 8.414 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001581/1.109, allocations: 0.9208 MB / 1.313 GB, free: 7.484 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.4e-07/1.109, allocations: 0 / 1.313 GB, free: 7.484 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001267/1.11, allocations: 403.4 kB / 1.313 GB, free: 7.09 MB / 1.045 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.0006047/1.111, allocations: 233.5 kB / 1.313 GB, free: 6.863 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002116/1.113, allocations: 0.9446 MB / 1.314 GB, free: 5.918 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.113, allocations: 0 / 1.314 GB, free: 5.918 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000748/1.114, allocations: 340.7 kB / 1.314 GB, free: 5.586 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/1.116, allocations: 431.8 kB / 1.315 GB, free: 5.164 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/1.119, allocations: 1.72 MB / 1.317 GB, free: 3.375 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006355/1.119, allocations: 1.045 MB / 1.318 GB, free: 2.301 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004197/1.12, allocations: 99.38 kB / 1.318 GB, free: 2.203 MB / 1.045 GB Notification: Performance of SimCode: time 2.174e-06/1.12, allocations: 0 / 1.318 GB, free: 2.203 MB / 1.045 GB Notification: Performance of Templates: time 0.02461/1.145, allocations: 16.35 MB / 1.334 GB, free: 1.996 MB / 1.061 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches