Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.00168/0.00168, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.002091/0.002091, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.407/1.407, 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 9.1.3-maint.9.1.x/package.mo): time 2.227/2.227, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.001461, allocations: 59.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8275/0.829, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow): time 0.2216/1.051, allocations: 198.4 MB / 1.282 GB, free: 7.246 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.008663/1.059, allocations: 5.154 MB / 1.287 GB, free: 2.082 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/1.061, allocations: 31.81 kB / 1.287 GB, free: 2.051 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001837/1.063, allocations: 0.6014 MB / 1.288 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004867/1.068, allocations: 1.877 MB / 1.29 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.004148/1.072, allocations: 1.652 MB / 1.291 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003961/1.076, allocations: 2.897 MB / 1.294 GB, free: 11.01 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002303/1.078, allocations: 1.448 MB / 1.296 GB, free: 9.547 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/1.08, allocations: 1.234 MB / 1.297 GB, free: 8.309 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/1.082, allocations: 1.152 MB / 1.298 GB, free: 7.152 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0006923/1.083, allocations: 192 kB / 1.298 GB, free: 6.965 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003023/1.086, allocations: 1.384 MB / 1.3 GB, free: 5.578 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0008228/1.087, allocations: 0.5374 MB / 1.3 GB, free: 5.039 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001483/1.088, allocations: 0.8476 MB / 1.301 GB, free: 4.188 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003649/1.092, allocations: 2.512 MB / 1.303 GB, free: 1.668 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.092, allocations: 0 / 1.303 GB, free: 1.668 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.798e-06/1.092, allocations: 0 / 1.303 GB, free: 1.668 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.6e-05/1.092, allocations: 7.938 kB / 1.303 GB, free: 1.66 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005938/1.098, allocations: 2.118 MB / 1.305 GB, free: 15.48 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/1.098, allocations: 12.03 kB / 1.305 GB, free: 15.47 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/1.099, allocations: 230 kB / 1.306 GB, free: 15.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/1.102, allocations: 1.345 MB / 1.307 GB, free: 13.85 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.071e-05/1.102, allocations: 61.31 kB / 1.307 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/1.102, allocations: 76 kB / 1.307 GB, free: 13.71 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/1.104, allocations: 0.8066 MB / 1.308 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/1.104, allocations: 3.938 kB / 1.308 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.639e-05/1.104, allocations: 24 kB / 1.308 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/1.104, allocations: 25.31 kB / 1.308 GB, free: 12.85 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/1.106, allocations: 0.8444 MB / 1.309 GB, free: 12 MB / 1.045 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.005581/1.111, allocations: 3.459 MB / 1.312 GB, free: 8.383 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/1.113, allocations: 0.7237 MB / 1.313 GB, free: 7.633 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007637/1.113, allocations: 453.8 kB / 1.313 GB, free: 7.188 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000377/1.114, allocations: 291.7 kB / 1.314 GB, free: 6.848 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/1.114, allocations: 43 kB / 1.314 GB, free: 6.797 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009472/1.115, allocations: 191.3 kB / 1.314 GB, free: 6.609 MB / 1.045 GB Notification: Performance of pre-optimization done (n=53): time 3.707e-06/1.115, allocations: 0 / 1.314 GB, free: 6.609 MB / 1.045 GB Notification: Performance of matching and sorting (n=53): time 0.002955/1.118, allocations: 1.302 MB / 1.315 GB, free: 5.297 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/1.118, allocations: 59.84 kB / 1.315 GB, free: 5.227 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/1.12, allocations: 1.637 MB / 1.317 GB, free: 3.574 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.000109/1.121, allocations: 41.7 kB / 1.317 GB, free: 3.527 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/1.121, allocations: 0.5229 MB / 1.317 GB, free: 3 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/1.121, allocations: 185.3 kB / 1.317 GB, free: 2.816 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/1.121, allocations: 154.2 kB / 1.318 GB, free: 2.66 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001034/1.122, allocations: 334 kB / 1.318 GB, free: 2.328 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007197/1.122, allocations: 350.9 kB / 1.318 GB, free: 1.98 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009843/1.123, allocations: 0.6162 MB / 1.319 GB, free: 1.262 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/1.125, allocations: 0.7727 MB / 1.32 GB, free: 500 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.125, allocations: 0 / 1.32 GB, free: 500 kB / 1.045 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.002129/1.127, allocations: 0.9738 MB / 1.321 GB, free: 15.5 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.127, allocations: 7.984 kB / 1.321 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/1.127, allocations: 0 / 1.321 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/1.127, allocations: 4 kB / 1.321 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008991/1.128, allocations: 159.8 kB / 1.321 GB, free: 15.33 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.128, allocations: 7.938 kB / 1.321 GB, free: 15.32 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/1.13, allocations: 119.8 kB / 1.321 GB, free: 15.21 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.732e-05/1.13, allocations: 39.95 kB / 1.321 GB, free: 15.17 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001088/1.131, allocations: 0.5713 MB / 1.321 GB, free: 14.59 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009804/1.132, allocations: 0.6203 MB / 1.322 GB, free: 13.86 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00147/1.133, allocations: 0.7622 MB / 1.323 GB, free: 13.09 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.194e-06/1.133, allocations: 3.938 kB / 1.323 GB, free: 13.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=57) (initialization_lambda0): time 0.002101/1.135, allocations: 0.9719 MB / 1.324 GB, free: 12.11 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/1.135, allocations: 7.984 kB / 1.324 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/1.135, allocations: 0 / 1.324 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.612e-06/1.135, allocations: 4 kB / 1.324 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/1.136, allocations: 163.7 kB / 1.324 GB, free: 11.94 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/1.136, allocations: 0 / 1.324 GB, free: 11.94 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/1.138, allocations: 164.4 kB / 1.324 GB, free: 11.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/1.138, allocations: 35.95 kB / 1.324 GB, free: 11.75 MB / 1.061 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.00026/1.139, allocations: 216.1 kB / 1.324 GB, free: 11.53 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003946/1.139, allocations: 126.4 kB / 1.324 GB, free: 11.4 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/1.141, allocations: 1.023 MB / 1.325 GB, free: 10.38 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/1.141, allocations: 11.94 kB / 1.325 GB, free: 10.36 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.141, allocations: 0 / 1.325 GB, free: 10.36 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/1.141, allocations: 3.984 kB / 1.325 GB, free: 10.36 MB / 1.061 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.004305/1.146, allocations: 2.474 MB / 1.328 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/1.146, allocations: 4 kB / 1.328 GB, free: 7.781 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/1.147, allocations: 127.8 kB / 1.328 GB, free: 7.656 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/1.147, allocations: 4 kB / 1.328 GB, free: 7.652 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/1.147, allocations: 27.92 kB / 1.328 GB, free: 7.625 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/1.147, allocations: 12.28 kB / 1.328 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.147, allocations: 0 / 1.328 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/1.149, allocations: 1.524 MB / 1.329 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006542/1.15, allocations: 351.3 kB / 1.33 GB, free: 5.676 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/1.15, allocations: 15.94 kB / 1.33 GB, free: 5.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.152, allocations: 79.89 kB / 1.33 GB, free: 5.582 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/1.152, allocations: 48.53 kB / 1.33 GB, free: 5.535 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/1.152, allocations: 23.98 kB / 1.33 GB, free: 5.512 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002084/1.154, allocations: 1.182 MB / 1.331 GB, free: 4.328 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.11e-07/1.154, allocations: 0 / 1.331 GB, free: 4.328 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001753/1.156, allocations: 0.5031 MB / 1.332 GB, free: 3.824 MB / 1.061 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.000584/1.157, allocations: 250.1 kB / 1.332 GB, free: 3.582 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002687/1.159, allocations: 1.234 MB / 1.333 GB, free: 2.348 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.159, allocations: 4 kB / 1.333 GB, free: 2.344 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000825/1.16, allocations: 423.3 kB / 1.333 GB, free: 1.93 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/1.163, allocations: 0.5162 MB / 1.334 GB, free: 1.418 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/1.166, allocations: 2.199 MB / 1.336 GB, free: 15.16 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007459/1.167, allocations: 1.145 MB / 1.337 GB, free: 13.98 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005713/1.168, allocations: 127.4 kB / 1.337 GB, free: 13.86 MB / 1.076 GB Notification: Performance of SimCode: time 4.71e-07/1.168, allocations: 0 / 1.337 GB, free: 13.86 MB / 1.076 GB Notification: Performance of Templates: time 0.02942/1.197, allocations: 20.89 MB / 1.358 GB, free: 9.168 MB / 1.092 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & ./Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches