Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.008103/0.008103, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001518/0.001518, allocations: 193.5 kB / 16.79 MB, free: 5.809 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.489/1.489, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.663/2.663, allocations: 461.9 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 65.78 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3444, allocations: 157.4 MB / 1.053 GB, free: 8.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.1899/0.5343, allocations: 187.4 MB / 1.236 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007953/0.5423, allocations: 4.312 MB / 1.24 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.5439, allocations: 27.81 kB / 1.24 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001659/0.5456, allocations: 429.6 kB / 1.24 GB, free: 7.434 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004342/0.55, allocations: 1.455 MB / 1.242 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003687/0.5537, allocations: 1.229 MB / 1.243 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00338/0.5571, allocations: 2.783 MB / 1.246 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.5587, allocations: 0.9304 MB / 1.247 GB, free: 1.027 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.5605, allocations: 0.8404 MB / 1.248 GB, free: 188 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6954/1.256, allocations: 0.8317 MB / 1.248 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000448/1.256, allocations: 64.84 kB / 1.248 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003165/1.26, allocations: 1.367 MB / 1.25 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005227/1.26, allocations: 355.6 kB / 1.25 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001028/1.261, allocations: 0.5717 MB / 1.251 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002112/1.263, allocations: 1.516 MB / 1.252 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/1.263, allocations: 0.9375 kB / 1.252 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.703e-06/1.263, allocations: 0 / 1.252 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.003e-05/1.263, allocations: 0.7812 kB / 1.252 GB, free: 4.785 MB / 0.9981 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.004804/1.268, allocations: 1.726 MB / 1.254 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.268, allocations: 12.47 kB / 1.254 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000928/1.269, allocations: 182.6 kB / 1.254 GB, free: 3.957 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/1.271, allocations: 1.044 MB / 1.255 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/1.271, allocations: 53.48 kB / 1.255 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/1.271, allocations: 62.94 kB / 1.255 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/1.273, allocations: 0.6116 MB / 1.256 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/1.273, allocations: 0 / 1.256 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/1.273, allocations: 17.94 kB / 1.256 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/1.273, allocations: 20.61 kB / 1.256 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/1.274, allocations: 0.6262 MB / 1.256 GB, free: 3.547 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.004399/1.278, allocations: 2.656 MB / 1.259 GB, free: 18.74 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/1.279, allocations: 0.541 MB / 1.259 GB, free: 18.71 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005873/1.28, allocations: 347.3 kB / 1.26 GB, free: 18.7 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003957/1.281, allocations: 294.4 kB / 1.26 GB, free: 18.42 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/1.281, allocations: 39.95 kB / 1.26 GB, free: 18.38 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008545/1.281, allocations: 158.3 kB / 1.26 GB, free: 18.35 MB / 1.014 GB Notification: Performance of pre-optimization done (n=43): time 2.635e-06/1.281, allocations: 1.094 kB / 1.26 GB, free: 18.35 MB / 1.014 GB Notification: Performance of matching and sorting (n=43): time 0.00232/1.284, allocations: 1.021 MB / 1.261 GB, free: 18.25 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/1.284, allocations: 60.67 kB / 1.261 GB, free: 18.18 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/1.286, allocations: 1.268 MB / 1.263 GB, free: 18.04 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.429e-05/1.286, allocations: 43.94 kB / 1.263 GB, free: 18 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/1.286, allocations: 436.7 kB / 1.263 GB, free: 17.88 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/1.286, allocations: 143.1 kB / 1.263 GB, free: 17.79 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/1.286, allocations: 121.5 kB / 1.263 GB, free: 17.77 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001004/1.287, allocations: 322.4 kB / 1.264 GB, free: 17.46 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000618/1.287, allocations: 274.9 kB / 1.264 GB, free: 17.45 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/1.288, allocations: 485.8 kB / 1.264 GB, free: 17.25 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/1.289, allocations: 0.5846 MB / 1.265 GB, free: 17.23 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/1.289, allocations: 4.438 kB / 1.265 GB, free: 17.23 MB / 1.014 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001957/1.291, allocations: 0.7399 MB / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/1.291, allocations: 5.328 kB / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/1.291, allocations: 0 / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.291, allocations: 2.219 kB / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007544/1.292, allocations: 120.7 kB / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/1.292, allocations: 6.656 kB / 1.266 GB, free: 17.13 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/1.294, allocations: 111.3 kB / 1.266 GB, free: 17.12 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-05/1.294, allocations: 24.86 kB / 1.266 GB, free: 17.12 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009454/1.295, allocations: 469.2 kB / 1.266 GB, free: 17.04 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007799/1.296, allocations: 481.6 kB / 1.267 GB, free: 16.82 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001202/1.297, allocations: 0.5804 MB / 1.267 GB, free: 16.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.844e-06/1.297, allocations: 0 / 1.267 GB, free: 16.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.00199/1.299, allocations: 0.7375 MB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/1.299, allocations: 6.797 kB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.299, allocations: 2.719 kB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/1.299, allocations: 2.375 kB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/1.3, allocations: 124.6 kB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/1.3, allocations: 2.969 kB / 1.268 GB, free: 16.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/1.301, allocations: 133.2 kB / 1.268 GB, free: 16.69 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.817e-05/1.301, allocations: 28.25 kB / 1.268 GB, free: 16.69 MB / 1.014 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.0002825/1.302, allocations: 205.3 kB / 1.269 GB, free: 16.51 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/1.302, allocations: 103.7 kB / 1.269 GB, free: 16.45 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/1.304, allocations: 0.8053 MB / 1.269 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/1.304, allocations: 5.406 kB / 1.269 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.304, allocations: 1.75 kB / 1.269 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/1.304, allocations: 2.812 kB / 1.269 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003865/1.308, allocations: 1.955 MB / 1.271 GB, free: 15.99 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/1.308, allocations: 3.234 kB / 1.271 GB, free: 15.99 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006104/1.309, allocations: 105.4 kB / 1.271 GB, free: 15.99 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.22e-05/1.309, allocations: 4.531 kB / 1.271 GB, free: 15.99 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/1.309, allocations: 19.59 kB / 1.271 GB, free: 15.99 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/1.309, allocations: 8.734 kB / 1.271 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.309, allocations: 2.812 kB / 1.271 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/1.311, allocations: 1.236 MB / 1.273 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005246/1.312, allocations: 286.4 kB / 1.273 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/1.312, allocations: 19.52 kB / 1.273 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/1.313, allocations: 79.91 kB / 1.273 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/1.313, allocations: 39.95 kB / 1.273 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.507e-05/1.313, allocations: 18.64 kB / 1.273 GB, free: 15.54 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001581/1.315, allocations: 0.9227 MB / 1.274 GB, free: 15.42 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.31e-07/1.315, allocations: 2.906 kB / 1.274 GB, free: 15.42 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001403/1.316, allocations: 408.5 kB / 1.274 GB, free: 15.38 MB / 1.014 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.0005432/1.317, allocations: 216.4 kB / 1.275 GB, free: 15.28 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002171/1.319, allocations: 0.9373 MB / 1.276 GB, free: 15.27 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/1.319, allocations: 1.375 kB / 1.276 GB, free: 15.27 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006317/1.319, allocations: 334.6 kB / 1.276 GB, free: 15.26 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/1.322, allocations: 477 kB / 1.276 GB, free: 15.23 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00297/1.325, allocations: 2.044 MB / 1.278 GB, free: 14.16 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/1.326, allocations: 1.041 MB / 1.279 GB, free: 13.45 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/1.326, allocations: 97.3 kB / 1.279 GB, free: 13.44 MB / 1.014 GB Notification: Performance of SimCode: time 7.82e-07/1.326, allocations: 0 / 1.279 GB, free: 13.44 MB / 1.014 GB Notification: Performance of Templates: time 0.02871/1.355, allocations: 16.39 MB / 1.295 GB, free: 12.11 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches