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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001289/0.001289, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 71.88 kB / 0.8127 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5317/0.5329, allocations: 140.4 MB / 0.9497 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1301/0.663, allocations: 149 MB / 1.095 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.6643, allocations: 1.129 MB / 1.096 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.395e-05/0.6644, allocations: 4 kB / 1.096 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.6647, allocations: 51.67 kB / 1.096 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005947/0.6653, allocations: 302.6 kB / 1.097 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.6656, allocations: 171.2 kB / 1.097 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.666, allocations: 223.3 kB / 1.097 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.6661, allocations: 59.34 kB / 1.097 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.08e-05/0.6661, allocations: 51.84 kB / 1.097 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.818e-05/0.6662, allocations: 63.69 kB / 1.097 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.6663, allocations: 16 kB / 1.097 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004789/0.6667, allocations: 367.2 kB / 1.098 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.108e-05/0.6668, allocations: 31.86 kB / 1.098 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.338e-05/0.6669, allocations: 59.67 kB / 1.098 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003431/0.6672, allocations: 287.2 kB / 1.098 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6672, allocations: 0 / 1.098 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6672, allocations: 0 / 1.098 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.6672, allocations: 0 / 1.098 GB, free: 9.496 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.0005326/0.6678, allocations: 486.7 kB / 1.098 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.6678, allocations: 8.031 kB / 1.098 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.6678, allocations: 42.75 kB / 1.098 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002382/0.6681, allocations: 32.81 kB / 1.098 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.6683, allocations: 212.8 kB / 1.099 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.6683, allocations: 8 kB / 1.099 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.6683, allocations: 12 kB / 1.099 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002303/0.6686, allocations: 119.6 kB / 1.099 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.6686, allocations: 0 / 1.099 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.6686, allocations: 4 kB / 1.099 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.6686, allocations: 0 / 1.099 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.6688, allocations: 95.88 kB / 1.099 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005589/0.6694, allocations: 464 kB / 1.099 GB, free: 7.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.6696, allocations: 90.48 kB / 1.099 GB, free: 7.797 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.6697, allocations: 40.94 kB / 1.099 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.6697, allocations: 4 kB / 1.099 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.6698, allocations: 38.56 kB / 1.1 GB, free: 7.703 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.6698, allocations: 0 / 1.1 GB, free: 7.703 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003932/0.6702, allocations: 141.5 kB / 1.1 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.6702, allocations: 55.39 kB / 1.1 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.6704, allocations: 176.6 kB / 1.1 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.6704, allocations: 33.7 kB / 1.1 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.426e-05/0.6704, allocations: 116 kB / 1.1 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.6705, allocations: 23.61 kB / 1.1 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.6705, allocations: 25.72 kB / 1.1 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.6706, allocations: 322.8 kB / 1.1 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.6707, allocations: 31.97 kB / 1.1 GB, free: 6.746 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.054e-05/0.6708, allocations: 31.98 kB / 1.1 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.671, allocations: 84.75 kB / 1.101 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.671, allocations: 0 / 1.101 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002441/0.6713, allocations: 113.5 kB / 1.101 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.6713, allocations: 4 kB / 1.101 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.6713, allocations: 0 / 1.101 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.258e-06/0.6713, allocations: 4 kB / 1.101 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.6714, allocations: 19.98 kB / 1.101 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.948e-06/0.6714, allocations: 0 / 1.101 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.919e-05/0.6715, allocations: 27.7 kB / 1.101 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.6715, allocations: 0 / 1.101 GB, free: 6.457 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 7.617e-05/0.6716, allocations: 117.8 kB / 1.101 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.383e-05/0.6717, allocations: 11.91 kB / 1.101 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002861/0.672, allocations: 131 kB / 1.101 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.672, allocations: 4 kB / 1.101 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.672, allocations: 0 / 1.101 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.672, allocations: 7.922 kB / 1.101 GB, free: 6.176 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.6722, allocations: 221.5 kB / 1.101 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.6722, allocations: 0 / 1.101 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.992e-05/0.6723, allocations: 15.98 kB / 1.101 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.6723, allocations: 0 / 1.101 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.6723, allocations: 4 kB / 1.101 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.6723, allocations: 3.984 kB / 1.101 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6723, allocations: 0 / 1.101 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002653/0.6726, allocations: 215.3 kB / 1.101 GB, free: 5.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.6726, allocations: 92.86 kB / 1.101 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.6727, allocations: 7.984 kB / 1.101 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.6728, allocations: 4 kB / 1.101 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.6728, allocations: 7.984 kB / 1.101 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.6728, allocations: 3.938 kB / 1.101 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.797e-05/0.6729, allocations: 143.5 kB / 1.102 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.673, allocations: 0 / 1.102 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002267/0.6732, allocations: 20 kB / 1.102 GB, free: 5.367 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.0005188/0.6737, allocations: 0.7443 MB / 1.102 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002447/0.674, allocations: 84 kB / 1.102 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.674, allocations: 0 / 1.102 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.6741, allocations: 39.86 kB / 1.102 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.6745, allocations: 51.78 kB / 1.103 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.6763, allocations: 1.745 MB / 1.104 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.6765, allocations: 0.7119 MB / 1.105 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.568e-05/0.6766, allocations: 8.891 kB / 1.105 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.341e-05/0.6766, allocations: 35.42 kB / 1.105 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.6766, allocations: 0 / 1.105 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7466/1.423, allocations: 3.144 MB / 1.108 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.74/9.163, allocations: 9.562 kB / 1.108 GB, free: 14.78 MB / 0.8731 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