Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001359/0.001359, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.321/2.321, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6964/0.6968, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.2909/0.9877, allocations: 265.4 MB / 1.213 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.04329/1.031, allocations: 27.1 MB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004849/1.036, allocations: 79.44 kB / 1.239 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.007298/1.043, allocations: 1.657 MB / 1.241 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01989/1.063, allocations: 4.837 MB / 1.246 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009769/1.073, allocations: 2.481 MB / 1.248 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.6732/1.746, allocations: 3.918 MB / 1.252 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005229/1.751, allocations: 2.241 MB / 1.254 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01255/1.764, allocations: 3.474 MB / 1.257 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005234/1.769, allocations: 1.595 MB / 1.259 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001366/1.771, allocations: 131.6 kB / 1.259 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008048/1.779, allocations: 2.206 MB / 1.261 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001802/1.781, allocations: 0.821 MB / 1.262 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002347/1.783, allocations: 0.6314 MB / 1.263 GB, free: 28.72 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.006876/1.79, allocations: 3.622 MB / 1.266 GB, free: 28.44 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/1.79, allocations: 0 / 1.266 GB, free: 28.44 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.094e-06/1.79, allocations: 0 / 1.266 GB, free: 28.44 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001749/1.79, allocations: 4.938 kB / 1.266 GB, free: 28.44 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.008942/1.799, allocations: 3.002 MB / 1.269 GB, free: 26.88 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/1.799, allocations: 9.031 kB / 1.269 GB, free: 26.88 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/1.81, allocations: 1.586 MB / 1.271 GB, free: 26.64 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007654/1.818, allocations: 1.907 MB / 1.273 GB, free: 26.16 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001551/1.819, allocations: 430.3 kB / 1.273 GB, free: 26.12 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/1.821, allocations: 218.6 kB / 1.273 GB, free: 26.12 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009277/1.83, allocations: 3.078 MB / 1.276 GB, free: 25.75 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.042e-05/1.83, allocations: 5.375 kB / 1.276 GB, free: 25.75 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003732/1.83, allocations: 88.59 kB / 1.276 GB, free: 25.75 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.825e-05/1.83, allocations: 89.45 kB / 1.276 GB, free: 25.74 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007609/1.838, allocations: 3.205 MB / 1.279 GB, free: 25.66 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.02509/1.863, allocations: 14.27 MB / 1.293 GB, free: 18 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/1.867, allocations: 1.704 MB / 1.295 GB, free: 17.95 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000409/1.867, allocations: 164.1 kB / 1.295 GB, free: 17.85 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/1.867, allocations: 49.62 kB / 1.295 GB, free: 17.81 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001768/1.869, allocations: 199.9 kB / 1.295 GB, free: 17.71 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 4.588e-06/1.869, allocations: 0 / 1.295 GB, free: 17.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.005467/1.875, allocations: 2.412 MB / 1.298 GB, free: 17.5 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/1.875, allocations: 63.78 kB / 1.298 GB, free: 17.44 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003739/1.878, allocations: 2.53 MB / 1.3 GB, free: 17.18 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002843/1.879, allocations: 57.89 kB / 1.3 GB, free: 17.15 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007292/1.879, allocations: 1.269 MB / 1.302 GB, free: 16.68 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/1.88, allocations: 393.1 kB / 1.302 GB, free: 16.45 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/1.88, allocations: 36.05 kB / 1.302 GB, free: 16.45 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.88, allocations: 372.6 kB / 1.302 GB, free: 16.14 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002328/1.882, allocations: 0.9845 MB / 1.303 GB, free: 16.11 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/1.885, allocations: 1.607 MB / 1.305 GB, free: 15.37 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00251/1.888, allocations: 1.201 MB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/1.888, allocations: 3.125 kB / 1.306 GB, free: 15.24 MB / 1.014 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00771/1.895, allocations: 2.843 MB / 1.309 GB, free: 14.93 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.002197/1.898, allocations: 5.59 MB / 1.314 GB, free: 8.992 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/1.898, allocations: 18 kB / 1.314 GB, free: 8.988 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.155e-05/1.898, allocations: 22.56 kB / 1.314 GB, free: 8.988 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003371/1.901, allocations: 0.5786 MB / 1.315 GB, free: 8.969 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/1.902, allocations: 2.392 MB / 1.317 GB, free: 6.621 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004844/1.907, allocations: 441.5 kB / 1.318 GB, free: 6.574 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004136/1.908, allocations: 89.83 kB / 1.318 GB, free: 6.574 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/1.908, allocations: 8.938 kB / 1.318 GB, free: 6.57 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006169/1.914, allocations: 2.603 MB / 1.32 GB, free: 22.42 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/1.914, allocations: 14.84 kB / 1.32 GB, free: 22.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/1.914, allocations: 22.75 kB / 1.32 GB, free: 22.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002456/1.916, allocations: 0.5333 MB / 1.321 GB, free: 22.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.183e-05/1.916, allocations: 29.25 kB / 1.321 GB, free: 22.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/1.92, allocations: 374.9 kB / 1.321 GB, free: 22.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/1.92, allocations: 90.39 kB / 1.321 GB, free: 22.36 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001436/1.922, allocations: 0.6283 MB / 1.322 GB, free: 22.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/1.922, allocations: 257.2 kB / 1.322 GB, free: 22.03 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00392/1.926, allocations: 1.882 MB / 1.324 GB, free: 21.9 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/1.926, allocations: 9 kB / 1.324 GB, free: 21.9 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/1.926, allocations: 2.531 kB / 1.324 GB, free: 21.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/1.926, allocations: 10.75 kB / 1.324 GB, free: 21.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009013/1.935, allocations: 4.54 MB / 1.329 GB, free: 21.31 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/1.935, allocations: 12.02 kB / 1.329 GB, free: 21.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.937, allocations: 304.8 kB / 1.329 GB, free: 21.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.618e-05/1.937, allocations: 18.55 kB / 1.329 GB, free: 21.29 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-05/1.937, allocations: 32.09 kB / 1.329 GB, free: 21.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/1.938, allocations: 2.37 MB / 1.331 GB, free: 18.95 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.938, allocations: 12.55 kB / 1.331 GB, free: 18.95 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004681/1.943, allocations: 2.506 MB / 1.334 GB, free: 17.75 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/1.945, allocations: 0.5426 MB / 1.334 GB, free: 17.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/1.945, allocations: 22.53 kB / 1.334 GB, free: 17.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.948, allocations: 286 kB / 1.334 GB, free: 17.49 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/1.948, allocations: 85.84 kB / 1.335 GB, free: 17.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.948, allocations: 68.03 kB / 1.335 GB, free: 17.48 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002847/1.951, allocations: 1.751 MB / 1.336 GB, free: 17.32 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/1.951, allocations: 3.188 kB / 1.336 GB, free: 17.32 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003915/1.955, allocations: 1.298 MB / 1.338 GB, free: 17.2 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008134/1.955, allocations: 370.7 kB / 1.338 GB, free: 17.06 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00878/1.964, allocations: 3.669 MB / 1.342 GB, free: 16.72 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.715e-05/1.964, allocations: 2.375 kB / 1.342 GB, free: 16.72 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.002045/1.966, allocations: 0.8249 MB / 1.342 GB, free: 16.7 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007359/1.974, allocations: 1.222 MB / 1.344 GB, free: 16.6 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008223/1.982, allocations: 4.992 MB / 1.348 GB, free: 14.21 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/1.983, allocations: 1.749 MB / 1.35 GB, free: 13.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.004034/1.987, allocations: 0.785 MB / 1.351 GB, free: 13.23 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005879/1.988, allocations: 196 kB / 1.351 GB, free: 13.22 MB / 1.029 GB Notification: Performance of SimCode: time 9.41e-07/1.988, allocations: 4 kB / 1.351 GB, free: 13.21 MB / 1.029 GB Notification: Performance of Templates: time 0.07869/2.067, allocations: 44.91 MB / 1.395 GB, free: 10.27 MB / 1.061 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches