Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.MixingBoxMinimumFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOAMin.m_flow|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow") translateModel(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixBox.damOAMin.m_flow|mixBox.damOA.m_flow|mixBox.damExh.m_flow|mixBox.damRec.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001209, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01003/0.01003, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.446/1.446, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.811/2.811, allocations: 462.6 MB / 0.7364 GB, free: 244 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003816, allocations: 10.06 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3528, allocations: 159.6 MB / 1.059 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow): time 0.2082/0.561, allocations: 193.5 MB / 1.248 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6525/1.214, allocations: 5.141 MB / 1.253 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/1.216, allocations: 28.78 kB / 1.253 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002142/1.218, allocations: 0.4999 MB / 1.253 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.005821/1.224, allocations: 1.749 MB / 1.255 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004711/1.229, allocations: 1.524 MB / 1.256 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005516/1.234, allocations: 3.524 MB / 1.26 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003036/1.237, allocations: 1.216 MB / 1.261 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004342/1.242, allocations: 1.05 MB / 1.262 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003105/1.245, allocations: 1.068 MB / 1.263 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009346/1.246, allocations: 79.16 kB / 1.263 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004461/1.25, allocations: 1.505 MB / 1.265 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001366/1.252, allocations: 443.8 kB / 1.265 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002628/1.254, allocations: 0.7405 MB / 1.266 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006169/1.261, allocations: 2.462 MB / 1.268 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/1.261, allocations: 0.6875 kB / 1.268 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.006e-06/1.261, allocations: 0 / 1.268 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001023/1.261, allocations: 0 / 1.268 GB, free: 2.617 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.008617/1.269, allocations: 1.83 MB / 1.27 GB, free: 17.7 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 8.059e-05/1.269, allocations: 9.719 kB / 1.27 GB, free: 17.7 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002298/1.272, allocations: 222.8 kB / 1.27 GB, free: 17.62 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004495/1.276, allocations: 1.311 MB / 1.271 GB, free: 17.23 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002645/1.277, allocations: 67.08 kB / 1.272 GB, free: 17.23 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004502/1.277, allocations: 86.75 kB / 1.272 GB, free: 17.22 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/1.28, allocations: 0.8204 MB / 1.272 GB, free: 17.17 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/1.28, allocations: 1.859 kB / 1.272 GB, free: 17.17 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/1.28, allocations: 23.84 kB / 1.272 GB, free: 17.17 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.244e-05/1.28, allocations: 24.56 kB / 1.272 GB, free: 17.17 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002497/1.283, allocations: 0.8652 MB / 1.273 GB, free: 17.15 MB / 1.014 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.008911/1.291, allocations: 3.483 MB / 1.277 GB, free: 16.16 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/1.293, allocations: 0.7428 MB / 1.277 GB, free: 16.04 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008656/1.294, allocations: 457 kB / 1.278 GB, free: 16.03 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004739/1.294, allocations: 288.6 kB / 1.278 GB, free: 15.75 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/1.294, allocations: 38.31 kB / 1.278 GB, free: 15.71 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00159/1.296, allocations: 234.6 kB / 1.278 GB, free: 15.67 MB / 1.014 GB Notification: Performance of pre-optimization done (n=53): time 7.524e-06/1.296, allocations: 5.734 kB / 1.278 GB, free: 15.67 MB / 1.014 GB Notification: Performance of matching and sorting (n=53): time 0.003591/1.3, allocations: 1.352 MB / 1.28 GB, free: 15.54 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/1.3, allocations: 57.38 kB / 1.28 GB, free: 15.48 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003871/1.304, allocations: 1.63 MB / 1.281 GB, free: 15.32 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001973/1.304, allocations: 47.83 kB / 1.281 GB, free: 15.29 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004816/1.304, allocations: 0.5266 MB / 1.282 GB, free: 15.14 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000223/1.305, allocations: 186.1 kB / 1.282 GB, free: 15.03 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/1.305, allocations: 45.59 kB / 1.282 GB, free: 15.01 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.305, allocations: 324.7 kB / 1.282 GB, free: 14.71 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000774/1.306, allocations: 363.8 kB / 1.283 GB, free: 14.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009945/1.307, allocations: 0.6289 MB / 1.283 GB, free: 14.43 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/1.308, allocations: 0.7987 MB / 1.284 GB, free: 14.41 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.308, allocations: 0 / 1.284 GB, free: 14.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.00248/1.311, allocations: 0.9827 MB / 1.285 GB, free: 14.3 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.362e-05/1.311, allocations: 106.8 kB / 1.285 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/1.311, allocations: 0 / 1.285 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/1.311, allocations: 2.094 kB / 1.285 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009173/1.312, allocations: 169.5 kB / 1.285 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/1.312, allocations: 1 kB / 1.285 GB, free: 14.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/1.314, allocations: 169 kB / 1.286 GB, free: 14.18 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/1.314, allocations: 35.52 kB / 1.286 GB, free: 14.17 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/1.314, allocations: 9.891 kB / 1.286 GB, free: 14.17 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/1.316, allocations: 0.8177 MB / 1.286 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/1.316, allocations: 1.281 kB / 1.286 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.991e-06/1.316, allocations: 2.062 kB / 1.286 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008371/1.317, allocations: 170.2 kB / 1.287 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/1.317, allocations: 6 kB / 1.287 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/1.319, allocations: 164 kB / 1.287 GB, free: 14.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.799e-05/1.319, allocations: 30.97 kB / 1.287 GB, free: 14.13 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 (57): * Single equations (assignments): 57 * 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.000736/1.32, allocations: 367.1 kB / 1.287 GB, free: 13.94 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005691/1.32, allocations: 126.9 kB / 1.287 GB, free: 13.88 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/1.323, allocations: 1.059 MB / 1.288 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/1.323, allocations: 10.19 kB / 1.288 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/1.323, allocations: 0 / 1.288 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/1.323, allocations: 3.094 kB / 1.288 GB, free: 13.79 MB / 1.014 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 postOpt removeSimpleEquations (simulation): time 0.005275/1.328, allocations: 2.5 MB / 1.291 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/1.328, allocations: 6.906 kB / 1.291 GB, free: 13.31 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/1.329, allocations: 139.9 kB / 1.291 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.531e-05/1.329, allocations: 5.062 kB / 1.291 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.557e-05/1.329, allocations: 18.97 kB / 1.291 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/1.329, allocations: 7.688 kB / 1.291 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/1.329, allocations: 2.5 kB / 1.291 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003074/1.332, allocations: 1.562 MB / 1.292 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/1.333, allocations: 348.3 kB / 1.293 GB, free: 12.83 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005198/1.334, allocations: 16.75 kB / 1.293 GB, free: 12.83 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/1.336, allocations: 105.7 kB / 1.293 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/1.336, allocations: 48.45 kB / 1.293 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.955e-05/1.336, allocations: 27.34 kB / 1.293 GB, free: 12.81 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002508/1.338, allocations: 1.181 MB / 1.294 GB, free: 12.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.363e-06/1.338, allocations: 1.188 kB / 1.294 GB, free: 12.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004409/1.343, allocations: 0.5072 MB / 1.295 GB, free: 12.65 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (mixBox.filter.s[1],mixBox.filter.s[2],mixBox.filterOutMin.s[1],mixBox.filterOutMin.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 (64): * Single equations (assignments): 64 * 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.001181/1.344, allocations: 228.4 kB / 1.295 GB, free: 12.54 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.003315/1.347, allocations: 1.262 MB / 1.296 GB, free: 12.51 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.347, allocations: 7.375 kB / 1.296 GB, free: 12.51 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009377/1.348, allocations: 433.7 kB / 1.296 GB, free: 12.51 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005349/1.354, allocations: 0.5669 MB / 1.297 GB, free: 12.46 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/1.359, allocations: 2.593 MB / 1.3 GB, free: 11.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/1.36, allocations: 1.143 MB / 1.301 GB, free: 10.47 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002374/1.363, allocations: 371.3 kB / 1.301 GB, free: 10.39 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008914/1.363, allocations: 123.4 kB / 1.301 GB, free: 10.38 MB / 1.014 GB Notification: Performance of SimCode: time 1.112e-06/1.364, allocations: 0 / 1.301 GB, free: 10.38 MB / 1.014 GB Notification: Performance of Templates: time 0.04506/1.409, allocations: 25.99 MB / 1.327 GB, free: 2.199 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches