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.00191/0.00191, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.00207/0.00207, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.402/1.402, allocations: 222.9 MB / 240.9 MB, free: 15.28 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.604/2.604, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 64.42 kB / 0.8132 GB, free: 33.11 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2553, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.6519/0.9073, allocations: 189.7 MB / 1.136 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.009324/0.9166, allocations: 4.287 MB / 1.14 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.9181, allocations: 29.09 kB / 1.14 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.9195, allocations: 0.4977 MB / 1.14 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.9236, allocations: 1.57 MB / 1.142 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004035/0.9277, allocations: 1.321 MB / 1.143 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003324/0.931, allocations: 2.255 MB / 1.145 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.9326, allocations: 1.085 MB / 1.146 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.9345, allocations: 0.9402 MB / 1.147 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.9356, allocations: 0.8681 MB / 1.148 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002598/0.9359, allocations: 139.9 kB / 1.148 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.9389, allocations: 1.247 MB / 1.149 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004699/0.9394, allocations: 424.8 kB / 1.15 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007164/0.9401, allocations: 0.6452 MB / 1.15 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.9427, allocations: 1.954 MB / 1.152 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.9427, allocations: 0 / 1.152 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.794e-06/0.9427, allocations: 0 / 1.152 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.011e-05/0.9428, allocations: 1.156 kB / 1.152 GB, free: 2.289 MB / 0.8575 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.004475/0.9472, allocations: 1.724 MB / 1.154 GB, free: 17.25 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.9473, allocations: 12.84 kB / 1.154 GB, free: 17.25 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009079/0.9482, allocations: 183.5 kB / 1.154 GB, free: 17.18 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001826/0.9501, allocations: 1.038 MB / 1.155 GB, free: 16.57 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.9502, allocations: 53.94 kB / 1.155 GB, free: 16.55 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.9503, allocations: 61.38 kB / 1.155 GB, free: 16.53 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.9516, allocations: 0.6126 MB / 1.156 GB, free: 16.3 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.9517, allocations: 5.062 kB / 1.156 GB, free: 16.3 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.659e-05/0.9517, allocations: 24.98 kB / 1.156 GB, free: 16.28 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.9518, allocations: 18.34 kB / 1.156 GB, free: 16.28 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.9532, allocations: 0.6245 MB / 1.157 GB, free: 16.08 MB / 0.8731 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.00448/0.9577, allocations: 2.654 MB / 1.159 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.959, allocations: 0.547 MB / 1.16 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006938/0.9597, allocations: 342.5 kB / 1.16 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004474/0.9602, allocations: 295.4 kB / 1.16 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.9602, allocations: 36.88 kB / 1.16 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008426/0.9611, allocations: 141.8 kB / 1.161 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=43): time 3.146e-06/0.9611, allocations: 0 / 1.161 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43): time 0.002682/0.9638, allocations: 1.022 MB / 1.161 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.9639, allocations: 63.83 kB / 1.162 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.9662, allocations: 1.272 MB / 1.163 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.9664, allocations: 39.86 kB / 1.163 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000412/0.9668, allocations: 432.2 kB / 1.163 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.967, allocations: 144 kB / 1.163 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.9672, allocations: 122.7 kB / 1.164 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.9674, allocations: 323.4 kB / 1.164 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006275/0.968, allocations: 271.9 kB / 1.164 GB, free: 12 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008804/0.9689, allocations: 491.2 kB / 1.165 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.9702, allocations: 0.5782 MB / 1.165 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.9702, allocations: 5.156 kB / 1.165 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001759/0.972, allocations: 0.7382 MB / 1.166 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.972, allocations: 4.938 kB / 1.166 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.972, allocations: 0.5 kB / 1.166 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.9721, allocations: 2.594 kB / 1.166 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.9727, allocations: 125.4 kB / 1.166 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.9727, allocations: 6.094 kB / 1.166 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.9741, allocations: 98.33 kB / 1.166 GB, free: 11.15 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.375e-05/0.9742, allocations: 28.2 kB / 1.166 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008721/0.9751, allocations: 468.6 kB / 1.167 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007459/0.9758, allocations: 479.8 kB / 1.167 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001128/0.977, allocations: 0.5913 MB / 1.168 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-06/0.977, allocations: 1.75 kB / 1.168 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001621/0.9786, allocations: 0.7287 MB / 1.168 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.9786, allocations: 4.562 kB / 1.168 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.9786, allocations: 1.125 kB / 1.168 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.064e-06/0.9787, allocations: 1.781 kB / 1.168 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006457/0.9793, allocations: 124.8 kB / 1.168 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.9793, allocations: 2.25 kB / 1.168 GB, free: 10.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.9807, allocations: 125.8 kB / 1.169 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.9808, allocations: 23.42 kB / 1.169 GB, free: 10.07 MB / 0.8731 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.0002348/0.981, allocations: 210.1 kB / 1.169 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000229/0.9813, allocations: 104.6 kB / 1.169 GB, free: 9.809 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/0.983, allocations: 0.805 MB / 1.17 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.983, allocations: 5.5 kB / 1.17 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.983, allocations: 4 kB / 1.17 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.9831, allocations: 3.344 kB / 1.17 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.9861, allocations: 1.943 MB / 1.172 GB, free: 8.504 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.9862, allocations: 7 kB / 1.172 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.9867, allocations: 110.6 kB / 1.172 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/0.9867, allocations: 6.656 kB / 1.172 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.9869, allocations: 20.59 kB / 1.172 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.9869, allocations: 5.344 kB / 1.172 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.9869, allocations: 6.75 kB / 1.172 GB, free: 8.449 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.9889, allocations: 1.222 MB / 1.173 GB, free: 7.715 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004965/0.9895, allocations: 293.2 kB / 1.173 GB, free: 7.457 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.9896, allocations: 20.97 kB / 1.173 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009653/0.9906, allocations: 63.55 kB / 1.173 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.9907, allocations: 41.97 kB / 1.173 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.9908, allocations: 21.69 kB / 1.173 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001365/0.9921, allocations: 0.9203 MB / 1.174 GB, free: 6.867 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9921, allocations: 0 / 1.174 GB, free: 6.867 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001223/0.9934, allocations: 406.7 kB / 1.175 GB, free: 6.805 MB / 0.8731 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.0005015/0.9939, allocations: 229.8 kB / 1.175 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002151/0.996, allocations: 0.9982 MB / 1.176 GB, free: 6.195 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.9961, allocations: 2.25 kB / 1.176 GB, free: 6.195 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.9967, allocations: 338.6 kB / 1.176 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.9989, allocations: 440.6 kB / 1.177 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/1.002, allocations: 1.734 MB / 1.178 GB, free: 4.719 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006904/1.003, allocations: 1.045 MB / 1.179 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/1.003, allocations: 96.48 kB / 1.179 GB, free: 3.828 MB / 0.8731 GB Notification: Performance of SimCode: time 7.62e-07/1.003, allocations: 0 / 1.179 GB, free: 3.828 MB / 0.8731 GB Notification: Performance of Templates: time 0.02556/1.029, allocations: 16.21 MB / 1.195 GB, free: 11.45 MB / 0.8887 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