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.005706/0.005706, 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.001518/0.001518, allocations: 197.4 kB / 16.67 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.809/2.809, allocations: 482.4 MB / 0.7548 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 68.11 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2767, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6616/0.9383, allocations: 149 MB / 1.387 GB, free: 7.301 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.9398, allocations: 1.137 MB / 1.388 GB, free: 6.492 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.936e-05/0.9399, allocations: 2.562 kB / 1.388 GB, free: 6.492 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0003058/0.9403, allocations: 57.41 kB / 1.388 GB, free: 6.461 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.0006774/0.9409, allocations: 306.5 kB / 1.388 GB, free: 6.234 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003143/0.9413, allocations: 166.9 kB / 1.389 GB, free: 6.121 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.9417, allocations: 221.9 kB / 1.389 GB, free: 5.992 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.9418, allocations: 52.42 kB / 1.389 GB, free: 5.961 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 7.259e-05/0.9419, allocations: 54.64 kB / 1.389 GB, free: 5.926 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 8.12e-05/0.942, allocations: 53.5 kB / 1.389 GB, free: 5.891 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.942, allocations: 16.22 kB / 1.389 GB, free: 5.887 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005314/0.9425, allocations: 370.1 kB / 1.389 GB, free: 5.68 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 4.936e-05/0.9426, allocations: 32.59 kB / 1.389 GB, free: 5.652 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 6.184e-05/0.9426, allocations: 60.11 kB / 1.389 GB, free: 5.609 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.9431, allocations: 298.5 kB / 1.39 GB, free: 5.43 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.9431, allocations: 0 / 1.39 GB, free: 5.43 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9431, allocations: 1.344 kB / 1.39 GB, free: 5.43 MB / 1.092 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.9431, allocations: 0 / 1.39 GB, free: 5.43 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.0006234/0.9437, allocations: 481 kB / 1.39 GB, free: 4.965 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.9438, allocations: 9.875 kB / 1.39 GB, free: 4.965 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.9438, allocations: 37.19 kB / 1.39 GB, free: 4.922 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.9441, allocations: 39.91 kB / 1.39 GB, free: 4.902 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.9444, allocations: 206.6 kB / 1.39 GB, free: 4.676 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.9444, allocations: 11.78 kB / 1.39 GB, free: 4.668 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.9444, allocations: 14.2 kB / 1.39 GB, free: 4.66 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.9447, allocations: 119.7 kB / 1.391 GB, free: 4.578 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.9447, allocations: 1.531 kB / 1.391 GB, free: 4.578 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.9447, allocations: 4 kB / 1.391 GB, free: 4.574 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.9447, allocations: 2.562 kB / 1.391 GB, free: 4.574 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.945, allocations: 96.91 kB / 1.391 GB, free: 4.527 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006425/0.9456, allocations: 464.3 kB / 1.391 GB, free: 4.098 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.9458, allocations: 85.64 kB / 1.391 GB, free: 4.043 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.946, allocations: 38.78 kB / 1.391 GB, free: 4.02 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.946, allocations: 1.781 kB / 1.391 GB, free: 4.02 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.946, allocations: 42.5 kB / 1.391 GB, free: 3.969 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.946, allocations: 1.125 kB / 1.391 GB, free: 3.969 MB / 1.092 GB Notification: Performance of matching and sorting (n=7): time 0.000425/0.9465, allocations: 135.3 kB / 1.391 GB, free: 3.891 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.9465, allocations: 52.72 kB / 1.391 GB, free: 3.828 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.9467, allocations: 188.2 kB / 1.392 GB, free: 3.68 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.9467, allocations: 27.14 kB / 1.392 GB, free: 3.648 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 7.406e-05/0.9468, allocations: 113.9 kB / 1.392 GB, free: 3.539 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.9468, allocations: 26.62 kB / 1.392 GB, free: 3.516 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.9469, allocations: 19.59 kB / 1.392 GB, free: 3.496 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.947, allocations: 325.8 kB / 1.392 GB, free: 3.172 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.9471, allocations: 32.44 kB / 1.392 GB, free: 3.156 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.9473, allocations: 37.14 kB / 1.392 GB, free: 3.137 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.9475, allocations: 77.47 kB / 1.392 GB, free: 3.094 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.9475, allocations: 0.9375 kB / 1.392 GB, free: 3.094 MB / 1.092 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002796/0.9478, allocations: 117.9 kB / 1.392 GB, free: 3.02 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.9478, allocations: 5.906 kB / 1.392 GB, free: 3.02 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.9478, allocations: 5.344 kB / 1.392 GB, free: 3.016 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.9478, allocations: 0 / 1.392 GB, free: 3.016 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.9479, allocations: 18.08 kB / 1.392 GB, free: 3.012 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.948, allocations: 0 / 1.392 GB, free: 3.012 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.795e-05/0.9481, allocations: 29.59 kB / 1.392 GB, free: 2.988 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.9481, allocations: 1.188 kB / 1.392 GB, free: 2.988 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.506e-05/0.9482, allocations: 124.9 kB / 1.393 GB, free: 2.863 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.9482, allocations: 12.95 kB / 1.393 GB, free: 2.855 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000326/0.9486, allocations: 122.5 kB / 1.393 GB, free: 2.773 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.9486, allocations: 1.281 kB / 1.393 GB, free: 2.773 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.9486, allocations: 0.5 kB / 1.393 GB, free: 2.773 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.9486, allocations: 5.125 kB / 1.393 GB, free: 2.77 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.9488, allocations: 222.5 kB / 1.393 GB, free: 2.527 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9488, allocations: 1.5 kB / 1.393 GB, free: 2.527 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.9489, allocations: 20.77 kB / 1.393 GB, free: 2.52 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.949, allocations: 1.531 kB / 1.393 GB, free: 2.52 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.949, allocations: 0 / 1.393 GB, free: 2.52 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.949, allocations: 1.562 kB / 1.393 GB, free: 2.52 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.949, allocations: 1.562 kB / 1.393 GB, free: 2.52 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.9493, allocations: 213.5 kB / 1.393 GB, free: 2.34 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.9494, allocations: 96.14 kB / 1.393 GB, free: 2.23 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.9494, allocations: 0.9688 kB / 1.393 GB, free: 2.23 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.9495, allocations: 8.891 kB / 1.393 GB, free: 2.227 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.9496, allocations: 14.12 kB / 1.393 GB, free: 2.215 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.9496, allocations: 2.719 kB / 1.393 GB, free: 2.215 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0001115/0.9497, allocations: 134.6 kB / 1.393 GB, free: 2.113 MB / 1.092 GB Notification: Performance of sort global known variables: time 3.366e-06/0.9497, allocations: 5.125 kB / 1.393 GB, free: 2.109 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0002393/0.95, allocations: 26.53 kB / 1.393 GB, free: 2.102 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.0006414/0.9506, allocations: 0.7488 MB / 1.394 GB, free: 1.391 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002706/0.9509, allocations: 79.42 kB / 1.394 GB, free: 1.355 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.9509, allocations: 0 / 1.394 GB, free: 1.355 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.951, allocations: 39.25 kB / 1.394 GB, free: 1.34 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.9514, allocations: 37.91 kB / 1.394 GB, free: 1.316 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.9535, allocations: 1.749 MB / 1.396 GB, free: 15.85 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.9539, allocations: 0.7072 MB / 1.397 GB, free: 15.14 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 6.61e-05/0.9539, allocations: 11.75 kB / 1.397 GB, free: 15.14 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.954, allocations: 42.08 kB / 1.397 GB, free: 15.1 MB / 1.107 GB Notification: Performance of SimCode: time 2.7e-07/0.954, allocations: 0 / 1.397 GB, free: 15.1 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.9777, allocations: 3.209 MB / 1.4 GB, free: 13.5 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/8.532, allocations: 10.97 kB / 1.4 GB, free: 13.49 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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