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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_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.0007456/0.0007457, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.004535/0.004535, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.208/2.208, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.000374, allocations: 12 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6252/0.6256, allocations: 142.4 MB / 0.9552 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1423/0.7679, allocations: 144.9 MB / 1.097 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.7695, allocations: 1.122 MB / 1.098 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.7697, allocations: 4 kB / 1.098 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.77, allocations: 51.73 kB / 1.098 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008153/0.7708, allocations: 274.9 kB / 1.098 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.7712, allocations: 155.5 kB / 1.098 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.7717, allocations: 235.3 kB / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.7718, allocations: 55.33 kB / 1.098 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.957e-05/0.7719, allocations: 35.8 kB / 1.098 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.64e-05/0.772, allocations: 47.72 kB / 1.099 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.772, allocations: 4 kB / 1.099 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006269/0.7727, allocations: 415.1 kB / 1.099 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.326e-05/0.7727, allocations: 19.92 kB / 1.099 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.084e-05/0.7728, allocations: 73.38 kB / 1.099 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000477/0.7733, allocations: 295.1 kB / 1.099 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.7733, allocations: 4 kB / 1.099 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7733, allocations: 0 / 1.099 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.7733, allocations: 0 / 1.099 GB, free: 11.2 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006129/0.774, allocations: 454.9 kB / 1.1 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.774, allocations: 8.031 kB / 1.1 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.98e-05/0.7741, allocations: 42.69 kB / 1.1 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002941/0.7744, allocations: 44.72 kB / 1.1 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.7746, allocations: 204.7 kB / 1.1 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.7746, allocations: 11.94 kB / 1.1 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.7747, allocations: 12 kB / 1.1 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.7749, allocations: 123.6 kB / 1.1 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.775, allocations: 4 kB / 1.1 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.775, allocations: 0 / 1.1 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.775, allocations: 4 kB / 1.1 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.7753, allocations: 107.8 kB / 1.1 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.7759, allocations: 468 kB / 1.101 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.7762, allocations: 94.55 kB / 1.101 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.7763, allocations: 40.94 kB / 1.101 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.7763, allocations: 4 kB / 1.101 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.7763, allocations: 34.5 kB / 1.101 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.7764, allocations: 0 / 1.101 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004496/0.7768, allocations: 157.5 kB / 1.101 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.7769, allocations: 55.39 kB / 1.101 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.777, allocations: 174.9 kB / 1.101 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.777, allocations: 33.7 kB / 1.101 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.7771, allocations: 119.9 kB / 1.101 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.7771, allocations: 19.7 kB / 1.101 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.7772, allocations: 13.72 kB / 1.101 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.7773, allocations: 326.8 kB / 1.102 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.7774, allocations: 39.97 kB / 1.102 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.7775, allocations: 36.3 kB / 1.102 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.7777, allocations: 92.89 kB / 1.102 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7777, allocations: 0 / 1.102 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002746/0.778, allocations: 129.5 kB / 1.102 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.778, allocations: 4 kB / 1.102 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.7781, allocations: 0 / 1.102 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.7781, allocations: 0 / 1.102 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.7782, allocations: 23.98 kB / 1.102 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.7782, allocations: 8 kB / 1.102 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.974e-05/0.7783, allocations: 27.7 kB / 1.102 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.7783, allocations: 7.938 kB / 1.102 GB, free: 8.105 MB / 0.8575 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 8.608e-05/0.7784, allocations: 117.8 kB / 1.102 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.7785, allocations: 11.91 kB / 1.102 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003223/0.7788, allocations: 139 kB / 1.102 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.7788, allocations: 0 / 1.102 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.7788, allocations: 0 / 1.102 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.7788, allocations: 3.938 kB / 1.102 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.779, allocations: 225.5 kB / 1.103 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.7791, allocations: 0 / 1.103 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.7792, allocations: 27.92 kB / 1.103 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.7792, allocations: 3.938 kB / 1.103 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.7792, allocations: 0 / 1.103 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.7792, allocations: 0 / 1.103 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7792, allocations: 3.984 kB / 1.103 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.7795, allocations: 219.4 kB / 1.103 GB, free: 7.289 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.7796, allocations: 92.86 kB / 1.103 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.7796, allocations: 0 / 1.103 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.7797, allocations: 11.98 kB / 1.103 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.049e-05/0.7798, allocations: 11.98 kB / 1.103 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.7798, allocations: 3.938 kB / 1.103 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001095/0.7799, allocations: 137.2 kB / 1.103 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7799, allocations: 4 kB / 1.103 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002401/0.7801, allocations: 20 kB / 1.103 GB, free: 6.996 MB / 0.8575 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.0005994/0.7807, allocations: 0.763 MB / 1.104 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002633/0.781, allocations: 83.89 kB / 1.104 GB, free: 6.125 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.781, allocations: 4 kB / 1.104 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.7812, allocations: 43.97 kB / 1.104 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.7816, allocations: 36.53 kB / 1.104 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.7836, allocations: 1.82 MB / 1.106 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.7839, allocations: 0.7043 MB / 1.106 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.084e-05/0.784, allocations: 12.88 kB / 1.106 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.08e-05/0.784, allocations: 39.42 kB / 1.107 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of SimCode: time 2.284e-06/0.7841, allocations: 0 / 1.107 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5348/1.319, allocations: 2.85 MB / 1.109 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/1.319, allocations: 222.1 kB / 1.11 GB, free: 420 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/3.015, allocations: 0 / 1.11 GB, free: 420 kB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > 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/jenkins1/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