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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004643/0.004643, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001357/0.001357, allocations: 198.6 kB / 16.68 MB, free: 5.973 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.56/2.56, allocations: 482.6 MB / 0.7551 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 76.09 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2594, allocations: 162.3 MB / 1.242 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6215/0.881, allocations: 149 MB / 1.387 GB, free: 6.805 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.8824, allocations: 1.133 MB / 1.388 GB, free: 5.961 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.8826, allocations: 1.812 kB / 1.388 GB, free: 5.961 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.8829, allocations: 58.69 kB / 1.389 GB, free: 5.914 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.0006967/0.8836, allocations: 308.1 kB / 1.389 GB, free: 5.688 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.884, allocations: 166.2 kB / 1.389 GB, free: 5.574 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.8844, allocations: 218.3 kB / 1.389 GB, free: 5.449 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.8845, allocations: 59.7 kB / 1.389 GB, free: 5.41 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 8.452e-05/0.8846, allocations: 55.5 kB / 1.389 GB, free: 5.375 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 9.21e-05/0.8847, allocations: 61.11 kB / 1.389 GB, free: 5.332 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.8848, allocations: 10.78 kB / 1.389 GB, free: 5.332 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005599/0.8853, allocations: 365.9 kB / 1.39 GB, free: 5.129 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 5.544e-05/0.8854, allocations: 33.62 kB / 1.39 GB, free: 5.102 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 6.446e-05/0.8855, allocations: 65.36 kB / 1.39 GB, free: 5.055 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.8859, allocations: 296.6 kB / 1.39 GB, free: 4.875 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.8859, allocations: 0 / 1.39 GB, free: 4.875 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8859, allocations: 4 kB / 1.39 GB, free: 4.871 MB / 1.092 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.8859, allocations: 0 / 1.39 GB, free: 4.871 MB / 1.092 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.00063/0.8866, allocations: 470 kB / 1.391 GB, free: 4.418 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.8866, allocations: 9.906 kB / 1.391 GB, free: 4.418 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.366e-05/0.8867, allocations: 45.77 kB / 1.391 GB, free: 4.367 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.8869, allocations: 37.81 kB / 1.391 GB, free: 4.352 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002717/0.8872, allocations: 216.2 kB / 1.391 GB, free: 4.117 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.8872, allocations: 8.344 kB / 1.391 GB, free: 4.113 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.8872, allocations: 10.94 kB / 1.391 GB, free: 4.109 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.8875, allocations: 112.1 kB / 1.391 GB, free: 4.035 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.8875, allocations: 0 / 1.391 GB, free: 4.035 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.8875, allocations: 5 kB / 1.391 GB, free: 4.031 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.8875, allocations: 2.156 kB / 1.391 GB, free: 4.031 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.8878, allocations: 97.19 kB / 1.391 GB, free: 3.984 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006338/0.8884, allocations: 463.2 kB / 1.392 GB, free: 3.555 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.8886, allocations: 86.72 kB / 1.392 GB, free: 3.5 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.8888, allocations: 46.42 kB / 1.392 GB, free: 3.469 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.8888, allocations: 1.125 kB / 1.392 GB, free: 3.469 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.8888, allocations: 35.77 kB / 1.392 GB, free: 3.426 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.8888, allocations: 5.281 kB / 1.392 GB, free: 3.422 MB / 1.092 GB Notification: Performance of matching and sorting (n=7): time 0.0004061/0.8892, allocations: 138.4 kB / 1.392 GB, free: 3.34 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.8893, allocations: 56.53 kB / 1.392 GB, free: 3.273 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.8894, allocations: 184.5 kB / 1.392 GB, free: 3.129 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.8895, allocations: 25.7 kB / 1.392 GB, free: 3.098 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.8896, allocations: 118.1 kB / 1.392 GB, free: 2.984 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.8896, allocations: 19.17 kB / 1.392 GB, free: 2.969 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.8896, allocations: 23.55 kB / 1.392 GB, free: 2.945 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8897, allocations: 332.9 kB / 1.393 GB, free: 2.613 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.8899, allocations: 29.36 kB / 1.393 GB, free: 2.602 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.89, allocations: 39.81 kB / 1.393 GB, free: 2.582 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.8902, allocations: 72.09 kB / 1.393 GB, free: 2.543 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.8902, allocations: 0 / 1.393 GB, free: 2.543 MB / 1.092 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002594/0.8904, allocations: 122 kB / 1.393 GB, free: 2.465 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.8905, allocations: 7.438 kB / 1.393 GB, free: 2.465 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-06/0.8905, allocations: 0 / 1.393 GB, free: 2.465 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.8905, allocations: 5.344 kB / 1.393 GB, free: 2.461 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.8906, allocations: 21.27 kB / 1.393 GB, free: 2.453 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.8906, allocations: 0 / 1.393 GB, free: 2.453 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.666e-05/0.8907, allocations: 13.89 kB / 1.393 GB, free: 2.445 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.8907, allocations: 1.219 kB / 1.393 GB, free: 2.445 MB / 1.092 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 9.25e-05/0.8908, allocations: 127.4 kB / 1.393 GB, free: 2.316 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.8909, allocations: 10.08 kB / 1.393 GB, free: 2.312 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002976/0.8912, allocations: 126.3 kB / 1.393 GB, free: 2.227 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.8912, allocations: 5.109 kB / 1.393 GB, free: 2.223 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.8912, allocations: 0 / 1.393 GB, free: 2.223 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.8912, allocations: 1.156 kB / 1.393 GB, free: 2.223 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.8914, allocations: 227.2 kB / 1.393 GB, free: 1.977 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.8914, allocations: 0.875 kB / 1.393 GB, free: 1.977 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.8915, allocations: 15.89 kB / 1.393 GB, free: 1.973 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.8915, allocations: 5.703 kB / 1.393 GB, free: 1.969 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.8916, allocations: 0 / 1.393 GB, free: 1.969 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.8916, allocations: 1.406 kB / 1.393 GB, free: 1.969 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.8916, allocations: 4 kB / 1.393 GB, free: 1.965 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.8919, allocations: 212.3 kB / 1.394 GB, free: 1.789 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.8919, allocations: 102.8 kB / 1.394 GB, free: 1.676 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.892, allocations: 1.438 kB / 1.394 GB, free: 1.676 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.8921, allocations: 11.39 kB / 1.394 GB, free: 1.668 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.678e-05/0.8921, allocations: 6.219 kB / 1.394 GB, free: 1.664 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.8921, allocations: 2.812 kB / 1.394 GB, free: 1.664 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0001111/0.8922, allocations: 137.4 kB / 1.394 GB, free: 1.559 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8922, allocations: 1.125 kB / 1.394 GB, free: 1.559 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0002351/0.8925, allocations: 21.81 kB / 1.394 GB, free: 1.555 MB / 1.092 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.0005999/0.8931, allocations: 0.7575 MB / 1.395 GB, free: 0.8359 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002409/0.8933, allocations: 70.11 kB / 1.395 GB, free: 0.8086 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.8934, allocations: 1.219 kB / 1.395 GB, free: 0.8086 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.8935, allocations: 42.47 kB / 1.395 GB, free: 0.7891 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.8938, allocations: 35.73 kB / 1.395 GB, free: 0.7695 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.8958, allocations: 1.755 MB / 1.396 GB, free: 15.3 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.8961, allocations: 0.7113 MB / 1.397 GB, free: 14.58 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 7.425e-05/0.8962, allocations: 15.75 kB / 1.397 GB, free: 14.57 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.8963, allocations: 36.7 kB / 1.397 GB, free: 14.54 MB / 1.107 GB Notification: Performance of SimCode: time 2.31e-07/0.8963, allocations: 0 / 1.397 GB, free: 14.54 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.553/4.45, allocations: 3.216 MB / 1.4 GB, free: 12.93 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/19.58, allocations: 6.031 kB / 1.4 GB, free: 12.93 MB / 1.107 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > 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