Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001798/0.001798, allocations: 172.7 kB / 15.95 MB, free: 208 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.429/1.429, allocations: 223.3 MB / 240 MB, free: 5.441 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.353/2.353, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003514, allocations: 12 kB / 0.8154 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6175/0.6179, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1483/0.7662, allocations: 135.1 MB / 1.086 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.7675, allocations: 1.06 MB / 1.087 GB, free: 7 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.424e-05/0.7676, allocations: 4 kB / 1.087 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.7678, allocations: 31.77 kB / 1.087 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005779/0.7684, allocations: 195 kB / 1.088 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.7687, allocations: 139.5 kB / 1.088 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003937/0.7691, allocations: 219.3 kB / 1.088 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.7692, allocations: 45.27 kB / 1.088 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.984e-05/0.7693, allocations: 35.8 kB / 1.088 GB, free: 6.344 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.576e-05/0.7693, allocations: 47.78 kB / 1.088 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.7694, allocations: 4 kB / 1.088 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000451/0.7698, allocations: 287.4 kB / 1.088 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.333e-05/0.7699, allocations: 19.92 kB / 1.088 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.7699, allocations: 49.64 kB / 1.088 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.7702, allocations: 197.5 kB / 1.089 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.7702, allocations: 4 kB / 1.089 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7702, allocations: 0 / 1.089 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.7702, allocations: 0 / 1.089 GB, free: 5.742 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005747/0.7708, allocations: 456.3 kB / 1.089 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.7708, allocations: 8.031 kB / 1.089 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.7711, allocations: 35.78 kB / 1.089 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.7713, allocations: 198.9 kB / 1.089 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.7713, allocations: 8 kB / 1.089 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.7714, allocations: 12 kB / 1.089 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.7716, allocations: 123.1 kB / 1.089 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.7716, allocations: 0 / 1.089 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.7717, allocations: 11.94 kB / 1.089 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.7717, allocations: 0 / 1.089 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.7719, allocations: 111.9 kB / 1.09 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006158/0.7725, allocations: 464 kB / 1.09 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.7728, allocations: 94.55 kB / 1.09 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.7729, allocations: 44.95 kB / 1.09 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.7729, allocations: 0 / 1.09 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.7729, allocations: 34.55 kB / 1.09 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.7729, allocations: 4 kB / 1.09 GB, free: 4.008 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.000417/0.7734, allocations: 165.4 kB / 1.09 GB, free: 3.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.7734, allocations: 55.41 kB / 1.09 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.7736, allocations: 178.9 kB / 1.091 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.7736, allocations: 25.7 kB / 1.091 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.56e-05/0.7736, allocations: 119.9 kB / 1.091 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.7737, allocations: 19.7 kB / 1.091 GB, free: 3.418 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.7737, allocations: 4 kB / 1.091 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.035e-05/0.7738, allocations: 322.8 kB / 1.091 GB, free: 3.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.7739, allocations: 35.98 kB / 1.091 GB, free: 3.055 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.538e-05/0.774, allocations: 39.97 kB / 1.091 GB, free: 3.016 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001076/0.7741, allocations: 35.98 kB / 1.091 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.7741, allocations: 4 kB / 1.091 GB, free: 2.977 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002514/0.7744, allocations: 130 kB / 1.091 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.7744, allocations: 4 kB / 1.091 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.7744, allocations: 80 / 1.091 GB, free: 2.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.7744, allocations: 3.953 kB / 1.091 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.7746, allocations: 19.98 kB / 1.091 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.7746, allocations: 11.98 kB / 1.091 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.46e-05/0.7747, allocations: 23.83 kB / 1.091 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.7747, allocations: 0 / 1.091 GB, free: 2.781 MB / 0.8419 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.73e-05/0.7748, allocations: 125.6 kB / 1.091 GB, free: 2.648 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.7748, allocations: 11.81 kB / 1.091 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.7751, allocations: 135 kB / 1.092 GB, free: 2.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.7752, allocations: 3.953 kB / 1.092 GB, free: 2.496 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.7752, allocations: 0 / 1.092 GB, free: 2.496 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7752, allocations: 7.938 kB / 1.092 GB, free: 2.488 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.7754, allocations: 221.6 kB / 1.092 GB, free: 2.223 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7754, allocations: 4 kB / 1.092 GB, free: 2.219 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.7755, allocations: 23.98 kB / 1.092 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.7755, allocations: 0 / 1.092 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.7755, allocations: 0 / 1.092 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.7755, allocations: 3.984 kB / 1.092 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.7755, allocations: 3.953 kB / 1.092 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.7758, allocations: 215.4 kB / 1.092 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.7759, allocations: 96.86 kB / 1.092 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.7759, allocations: 3.984 kB / 1.092 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.776, allocations: 8 kB / 1.092 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.7761, allocations: 11.98 kB / 1.092 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.7761, allocations: 3.953 kB / 1.092 GB, free: 1.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001072/0.7762, allocations: 133.2 kB / 1.092 GB, free: 1.691 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7762, allocations: 4 kB / 1.092 GB, free: 1.688 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000242/0.7765, allocations: 20 kB / 1.092 GB, free: 1.668 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001545/0.7766, allocations: 111.2 kB / 1.092 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002517/0.7769, allocations: 87.89 kB / 1.093 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.7769, allocations: 0 / 1.093 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.777, allocations: 39.97 kB / 1.093 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.7774, allocations: 39.06 kB / 1.093 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004951/0.7779, allocations: 317.3 kB / 1.093 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.7781, allocations: 0.7082 MB / 1.094 GB, free: 328 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.21e-05/0.7782, allocations: 8.891 kB / 1.094 GB, free: 320 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.825e-05/0.7783, allocations: 19.38 kB / 1.094 GB, free: 300 kB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.7783, allocations: 0 / 1.094 GB, free: 300 kB / 0.8419 GB Notification: Performance of Templates: time 0.003733/0.782, allocations: 1.413 MB / 1.095 GB, free: 14.9 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches