Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001402/0.001402, allocations: 103.2 kB / 16.35 MB, free: 5.824 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.001533/0.001533, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.4/2.4, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 68.17 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2542, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.5861/0.8403, allocations: 149 MB / 1.172 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.8418, allocations: 1.131 MB / 1.173 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.8419, allocations: 1.219 kB / 1.173 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000303/0.8423, allocations: 60.61 kB / 1.173 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0007903/0.8431, allocations: 300 kB / 1.174 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.8435, allocations: 170.3 kB / 1.174 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.844, allocations: 220.4 kB / 1.174 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.8441, allocations: 62.34 kB / 1.174 GB, free: 10.4 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.432e-05/0.8442, allocations: 48.06 kB / 1.174 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.249e-05/0.8443, allocations: 59.22 kB / 1.174 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.8443, allocations: 13.06 kB / 1.174 GB, free: 10.35 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006335/0.845, allocations: 373.6 kB / 1.175 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.876e-05/0.845, allocations: 31.52 kB / 1.175 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.947e-05/0.8451, allocations: 60.59 kB / 1.175 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000501/0.8456, allocations: 294.5 kB / 1.175 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.8456, allocations: 5.25 kB / 1.175 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8456, allocations: 4 kB / 1.175 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.8457, allocations: 0 / 1.175 GB, free: 10.04 MB / 0.8887 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.0007561/0.8464, allocations: 470 kB / 1.175 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.8465, allocations: 9.312 kB / 1.175 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.8468, allocations: 34.36 kB / 1.175 GB, free: 9.605 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.8471, allocations: 215.2 kB / 1.176 GB, free: 9.379 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.8471, allocations: 12.84 kB / 1.176 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.8471, allocations: 6.188 kB / 1.176 GB, free: 9.371 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.8474, allocations: 117.1 kB / 1.176 GB, free: 9.309 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.8474, allocations: 3.938 kB / 1.176 GB, free: 9.305 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.8474, allocations: 5.156 kB / 1.176 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.8474, allocations: 3.219 kB / 1.176 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.8477, allocations: 90.33 kB / 1.176 GB, free: 9.277 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007552/0.8485, allocations: 460 kB / 1.176 GB, free: 8.91 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.8487, allocations: 89.16 kB / 1.176 GB, free: 8.859 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.8488, allocations: 42.3 kB / 1.176 GB, free: 8.84 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.8489, allocations: 9.656 kB / 1.176 GB, free: 8.832 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.8489, allocations: 33.31 kB / 1.176 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.8489, allocations: 0 / 1.176 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004287/0.8493, allocations: 138.6 kB / 1.177 GB, free: 8.73 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.8494, allocations: 52.44 kB / 1.177 GB, free: 8.668 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.8496, allocations: 183.7 kB / 1.177 GB, free: 8.539 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.8496, allocations: 25.7 kB / 1.177 GB, free: 8.508 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.8497, allocations: 121 kB / 1.177 GB, free: 8.398 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.8497, allocations: 18.75 kB / 1.177 GB, free: 8.383 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.8498, allocations: 21.44 kB / 1.177 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.8499, allocations: 335.1 kB / 1.177 GB, free: 8.035 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.85, allocations: 29.64 kB / 1.177 GB, free: 8.027 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.769e-05/0.8501, allocations: 41.53 kB / 1.177 GB, free: 8.012 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.8503, allocations: 76.47 kB / 1.177 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.8503, allocations: 0 / 1.177 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002663/0.8506, allocations: 113.2 kB / 1.178 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.8506, allocations: 5.625 kB / 1.178 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.8507, allocations: 0.5469 kB / 1.178 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.8507, allocations: 1.125 kB / 1.178 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.8508, allocations: 25.16 kB / 1.178 GB, free: 7.914 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.8508, allocations: 5 kB / 1.178 GB, free: 7.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.8509, allocations: 18.36 kB / 1.178 GB, free: 7.902 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.851, allocations: 1.281 kB / 1.178 GB, free: 7.902 MB / 0.8887 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001211/0.8511, allocations: 123.8 kB / 1.178 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.8511, allocations: 9.531 kB / 1.178 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003412/0.8515, allocations: 127.9 kB / 1.178 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.8515, allocations: 1.156 kB / 1.178 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.8515, allocations: 3.438 kB / 1.178 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.8515, allocations: 0 / 1.178 GB, free: 7.707 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.8518, allocations: 228.2 kB / 1.178 GB, free: 7.484 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.8518, allocations: 1.094 kB / 1.178 GB, free: 7.484 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.8519, allocations: 17.72 kB / 1.178 GB, free: 7.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.8519, allocations: 1.25 kB / 1.178 GB, free: 7.48 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.8519, allocations: 7.391 kB / 1.178 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.8519, allocations: 1.188 kB / 1.178 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.852, allocations: 4 kB / 1.178 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.8523, allocations: 208.4 kB / 1.178 GB, free: 7.312 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 6.354e-05/0.8524, allocations: 91.48 kB / 1.178 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.8524, allocations: 3.281 kB / 1.178 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.8525, allocations: 11.12 kB / 1.178 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.142e-05/0.8526, allocations: 4.438 kB / 1.178 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-06/0.8526, allocations: 6.625 kB / 1.178 GB, free: 7.199 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001396/0.8528, allocations: 138.5 kB / 1.179 GB, free: 7.102 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8528, allocations: 0 / 1.179 GB, free: 7.102 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002658/0.853, allocations: 18.56 kB / 1.179 GB, free: 7.102 MB / 0.8887 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 (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.0001763/0.8532, allocations: 107.6 kB / 1.179 GB, free: 7.012 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002731/0.8535, allocations: 83.61 kB / 1.179 GB, free: 6.973 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.8535, allocations: 0 / 1.179 GB, free: 6.973 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.8536, allocations: 43.59 kB / 1.179 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.854, allocations: 40.25 kB / 1.179 GB, free: 6.934 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000538/0.8545, allocations: 255 kB / 1.179 GB, free: 6.742 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.8548, allocations: 0.7037 MB / 1.18 GB, free: 6.035 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 7.442e-05/0.8549, allocations: 14.88 kB / 1.18 GB, free: 6.027 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.8549, allocations: 14 kB / 1.18 GB, free: 6.02 MB / 0.8887 GB Notification: Performance of SimCode: time 2.5e-07/0.8549, allocations: 0 / 1.18 GB, free: 6.02 MB / 0.8887 GB Notification: Performance of Templates: time 0.004594/0.8595, allocations: 1.594 MB / 1.181 GB, free: 5.219 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches