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.001421/0.001421, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.417/1.417, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.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.49/2.49, allocations: 390.2 MB / 0.6647 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001435, allocations: 67.91 kB / 0.8125 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8092/0.8106, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.2211/1.032, allocations: 189.7 MB / 1.135 GB, free: 3.434 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008457/1.04, allocations: 4.286 MB / 1.139 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/1.042, allocations: 27.81 kB / 1.139 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001392/1.043, allocations: 0.5006 MB / 1.14 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003872/1.047, allocations: 1.57 MB / 1.141 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003374/1.05, allocations: 1.32 MB / 1.142 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00314/1.054, allocations: 2.26 MB / 1.145 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/1.055, allocations: 1.077 MB / 1.146 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/1.057, allocations: 0.9615 MB / 1.147 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001401/1.059, allocations: 0.86 MB / 1.147 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002866/1.059, allocations: 140 kB / 1.148 GB, free: 6.406 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/1.062, allocations: 1.239 MB / 1.149 GB, free: 5.164 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005246/1.063, allocations: 426.7 kB / 1.149 GB, free: 4.746 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0009218/1.063, allocations: 0.6453 MB / 1.15 GB, free: 4.098 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003202/1.067, allocations: 1.951 MB / 1.152 GB, free: 2.141 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/1.067, allocations: 3.938 kB / 1.152 GB, free: 2.137 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.134e-06/1.067, allocations: 0 / 1.152 GB, free: 2.137 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.593e-05/1.067, allocations: 0 / 1.152 GB, free: 2.137 MB / 0.9044 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.004706/1.071, allocations: 1.724 MB / 1.153 GB, free: 368 kB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/1.072, allocations: 8.031 kB / 1.153 GB, free: 360 kB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/1.073, allocations: 182.5 kB / 1.154 GB, free: 176 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/1.074, allocations: 1.037 MB / 1.155 GB, free: 15.08 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/1.075, allocations: 56.92 kB / 1.155 GB, free: 15.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/1.075, allocations: 56 kB / 1.155 GB, free: 14.97 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/1.076, allocations: 0.6115 MB / 1.155 GB, free: 14.35 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/1.076, allocations: 0 / 1.155 GB, free: 14.35 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/1.076, allocations: 20 kB / 1.155 GB, free: 14.33 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-05/1.076, allocations: 17 kB / 1.155 GB, free: 14.31 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/1.078, allocations: 0.6324 MB / 1.156 GB, free: 13.68 MB / 0.92 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.004834/1.083, allocations: 2.661 MB / 1.159 GB, free: 10.88 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/1.084, allocations: 0.5412 MB / 1.159 GB, free: 10.32 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000624/1.084, allocations: 348.6 kB / 1.159 GB, free: 9.98 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004458/1.085, allocations: 288 kB / 1.16 GB, free: 9.645 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/1.085, allocations: 42.55 kB / 1.16 GB, free: 9.594 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008023/1.086, allocations: 139.5 kB / 1.16 GB, free: 9.457 MB / 0.92 GB Notification: Performance of pre-optimization done (n=43): time 2.996e-06/1.086, allocations: 0 / 1.16 GB, free: 9.457 MB / 0.92 GB Notification: Performance of matching and sorting (n=43): time 0.00251/1.088, allocations: 1.02 MB / 1.161 GB, free: 8.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/1.088, allocations: 59.36 kB / 1.161 GB, free: 8.359 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/1.09, allocations: 1.279 MB / 1.162 GB, free: 7.062 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001186/1.091, allocations: 37.7 kB / 1.162 GB, free: 7.02 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003683/1.091, allocations: 441.7 kB / 1.163 GB, free: 6.582 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000146/1.091, allocations: 145.8 kB / 1.163 GB, free: 6.438 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/1.091, allocations: 125.9 kB / 1.163 GB, free: 6.309 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001215/1.091, allocations: 318 kB / 1.163 GB, free: 5.992 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/1.092, allocations: 274.2 kB / 1.163 GB, free: 5.723 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008167/1.093, allocations: 489.1 kB / 1.164 GB, free: 5.168 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/1.094, allocations: 0.5946 MB / 1.164 GB, free: 4.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.094, allocations: 0 / 1.164 GB, free: 4.57 MB / 0.92 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001951/1.096, allocations: 0.734 MB / 1.165 GB, free: 3.828 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/1.096, allocations: 4 kB / 1.165 GB, free: 3.824 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.096, allocations: 0 / 1.165 GB, free: 3.824 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/1.096, allocations: 4 kB / 1.165 GB, free: 3.82 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/1.097, allocations: 123.8 kB / 1.165 GB, free: 3.699 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/1.097, allocations: 4 kB / 1.165 GB, free: 3.695 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/1.098, allocations: 87.88 kB / 1.165 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.336e-05/1.098, allocations: 23.97 kB / 1.165 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000933/1.099, allocations: 471.9 kB / 1.166 GB, free: 3.121 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008093/1.1, allocations: 485.9 kB / 1.166 GB, free: 2.566 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001191/1.101, allocations: 0.5804 MB / 1.167 GB, free: 1.977 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.803e-06/1.101, allocations: 0 / 1.167 GB, free: 1.977 MB / 0.92 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001756/1.103, allocations: 0.7344 MB / 1.168 GB, free: 1.234 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/1.103, allocations: 10.03 kB / 1.168 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/1.103, allocations: 0 / 1.168 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/1.103, allocations: 0 / 1.168 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000639/1.104, allocations: 119.8 kB / 1.168 GB, free: 1.109 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/1.104, allocations: 7.938 kB / 1.168 GB, free: 1.102 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/1.105, allocations: 132.2 kB / 1.168 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.648e-05/1.105, allocations: 27.97 kB / 1.168 GB, free: 0.9453 MB / 0.92 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.0002496/1.106, allocations: 208.1 kB / 1.168 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/1.106, allocations: 102.7 kB / 1.168 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/1.108, allocations: 0.8033 MB / 1.169 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/1.108, allocations: 8 kB / 1.169 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.108, allocations: 0 / 1.169 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/1.108, allocations: 4 kB / 1.169 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003155/1.111, allocations: 1.956 MB / 1.171 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.111, allocations: 0 / 1.171 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006018/1.112, allocations: 112.1 kB / 1.171 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/1.112, allocations: 11.88 kB / 1.171 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/1.112, allocations: 19.98 kB / 1.171 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/1.112, allocations: 4 kB / 1.171 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.112, allocations: 4 kB / 1.171 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/1.114, allocations: 1.228 MB / 1.172 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005411/1.114, allocations: 283.6 kB / 1.172 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/1.115, allocations: 15.94 kB / 1.173 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.116, allocations: 71.97 kB / 1.173 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/1.116, allocations: 35.89 kB / 1.173 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.371e-05/1.116, allocations: 23.98 kB / 1.173 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001478/1.117, allocations: 0.9169 MB / 1.174 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.8e-07/1.117, allocations: 0 / 1.174 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001151/1.119, allocations: 411.4 kB / 1.174 GB, free: 10.59 MB / 0.9356 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.0004964/1.119, allocations: 226.2 kB / 1.174 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002168/1.121, allocations: 0.9981 MB / 1.175 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.121, allocations: 4 kB / 1.175 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0006844/1.122, allocations: 332.8 kB / 1.175 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/1.124, allocations: 437.6 kB / 1.176 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/1.127, allocations: 1.688 MB / 1.178 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/1.127, allocations: 1.045 MB / 1.179 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00114/1.128, allocations: 287.1 kB / 1.179 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/1.129, allocations: 95.38 kB / 1.179 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of SimCode: time 1.122e-06/1.129, allocations: 0 / 1.179 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of Templates: time 0.03913/1.168, allocations: 21.28 MB / 1.2 GB, free: 408 kB / 0.9512 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/jenkins/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