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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 103.9 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001939/0.001939, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.883/2.883, allocations: 497.2 MB / 0.7812 GB, free: 11.93 MB / 0.6231 GB " [Timeout remaining time 176] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 67.89 kB / 1.134 GB, free: 13.14 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9116/0.9137, allocations: 173.9 MB / 1.304 GB, free: 32.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1774/1.091, allocations: 149.4 MB / 1.45 GB, free: 3.496 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.00172/1.093, allocations: 1.14 MB / 1.451 GB, free: 2.688 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/1.093, allocations: 1.562 kB / 1.451 GB, free: 2.688 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.0003862/1.093, allocations: 59.73 kB / 1.451 GB, free: 2.656 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.0009406/1.094, allocations: 318 kB / 1.451 GB, free: 2.488 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004562/1.095, allocations: 167.2 kB / 1.452 GB, free: 2.406 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.0005111/1.095, allocations: 223 kB / 1.452 GB, free: 2.305 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/1.095, allocations: 48.97 kB / 1.452 GB, free: 2.277 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/1.095, allocations: 49.11 kB / 1.452 GB, free: 2.254 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/1.096, allocations: 61.17 kB / 1.452 GB, free: 2.223 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/1.096, allocations: 11.88 kB / 1.452 GB, free: 2.223 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007222/1.096, allocations: 380.8 kB / 1.452 GB, free: 2.09 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 6.513e-05/1.096, allocations: 28.75 kB / 1.452 GB, free: 2.074 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 7.35e-05/1.096, allocations: 64.12 kB / 1.452 GB, free: 2.031 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.0005523/1.097, allocations: 296.9 kB / 1.453 GB, free: 1.918 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/1.097, allocations: 0.75 kB / 1.453 GB, free: 1.918 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.483e-06/1.097, allocations: 0 / 1.453 GB, free: 1.918 MB / 1.139 GB Notification: Performance of Transformations before backend: time 6.772e-06/1.097, allocations: 5.094 kB / 1.453 GB, free: 1.914 MB / 1.139 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.0007982/1.098, allocations: 474.4 kB / 1.453 GB, free: 1.477 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/1.098, allocations: 8.5 kB / 1.453 GB, free: 1.477 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/1.098, allocations: 41.39 kB / 1.453 GB, free: 1.434 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002966/1.098, allocations: 43.72 kB / 1.453 GB, free: 1.418 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/1.099, allocations: 222 kB / 1.453 GB, free: 1.184 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/1.099, allocations: 4.188 kB / 1.453 GB, free: 1.184 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/1.099, allocations: 10.91 kB / 1.453 GB, free: 1.18 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/1.099, allocations: 116.3 kB / 1.454 GB, free: 1.117 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/1.099, allocations: 0 / 1.454 GB, free: 1.117 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/1.099, allocations: 5.125 kB / 1.454 GB, free: 1.113 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/1.099, allocations: 3.25 kB / 1.454 GB, free: 1.113 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/1.099, allocations: 96.72 kB / 1.454 GB, free: 1.082 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007838/1.1, allocations: 458.9 kB / 1.454 GB, free: 0.7148 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/1.1, allocations: 88.55 kB / 1.454 GB, free: 0.6641 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/1.1, allocations: 39.61 kB / 1.454 GB, free: 0.6445 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/1.1, allocations: 1.75 kB / 1.454 GB, free: 0.6445 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/1.1, allocations: 32.38 kB / 1.454 GB, free: 0.6055 MB / 1.139 GB Notification: Performance of pre-optimization done (n=7): time 3.196e-06/1.1, allocations: 5.141 kB / 1.454 GB, free: 0.6016 MB / 1.139 GB Notification: Performance of matching and sorting (n=7): time 0.0004608/1.101, allocations: 143.7 kB / 1.454 GB, free: 0.5312 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/1.101, allocations: 53.16 kB / 1.454 GB, free: 480 kB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/1.101, allocations: 181 kB / 1.455 GB, free: 352 kB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/1.101, allocations: 30.27 kB / 1.455 GB, free: 316 kB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/1.101, allocations: 118.8 kB / 1.455 GB, free: 204 kB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/1.101, allocations: 25.3 kB / 1.455 GB, free: 184 kB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/1.101, allocations: 20.56 kB / 1.455 GB, free: 164 kB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001718/1.101, allocations: 325.5 kB / 1.455 GB, free: 15.84 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/1.102, allocations: 31.38 kB / 1.455 GB, free: 15.83 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/1.102, allocations: 35.88 kB / 1.455 GB, free: 15.82 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/1.102, allocations: 75.17 kB / 1.455 GB, free: 15.79 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/1.102, allocations: 0 / 1.455 GB, free: 15.79 MB / 1.154 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004345/1.102, allocations: 119.5 kB / 1.455 GB, free: 15.73 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/1.102, allocations: 7.188 kB / 1.455 GB, free: 15.73 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/1.102, allocations: 0 / 1.455 GB, free: 15.73 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/1.102, allocations: 5.812 kB / 1.455 GB, free: 15.72 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/1.102, allocations: 17.16 kB / 1.455 GB, free: 15.72 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/1.102, allocations: 1.219 kB / 1.455 GB, free: 15.72 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/1.103, allocations: 11.02 kB / 1.455 GB, free: 15.72 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/1.103, allocations: 7.359 kB / 1.455 GB, free: 15.71 MB / 1.154 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.0001156/1.103, allocations: 120.1 kB / 1.456 GB, free: 15.59 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/1.103, allocations: 14.34 kB / 1.456 GB, free: 15.59 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003596/1.103, allocations: 133.4 kB / 1.456 GB, free: 15.51 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/1.103, allocations: 0.5625 kB / 1.456 GB, free: 15.51 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.103, allocations: 1.281 kB / 1.456 GB, free: 15.51 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.103, allocations: 0.5156 kB / 1.456 GB, free: 15.51 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/1.103, allocations: 219.1 kB / 1.456 GB, free: 15.3 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/1.103, allocations: 5.062 kB / 1.456 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/1.104, allocations: 20.3 kB / 1.456 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/1.104, allocations: 3.938 kB / 1.456 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/1.104, allocations: 1.688 kB / 1.456 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/1.104, allocations: 0 / 1.456 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.104, allocations: 4.984 kB / 1.456 GB, free: 15.28 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/1.104, allocations: 216.4 kB / 1.456 GB, free: 15.11 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 8.078e-05/1.104, allocations: 98.08 kB / 1.456 GB, free: 15 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/1.104, allocations: 0.5156 kB / 1.456 GB, free: 15 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/1.104, allocations: 11.16 kB / 1.456 GB, free: 15 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/1.104, allocations: 12.48 kB / 1.456 GB, free: 14.99 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/1.104, allocations: 2.312 kB / 1.456 GB, free: 14.99 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0001476/1.104, allocations: 143.5 kB / 1.456 GB, free: 14.89 MB / 1.154 GB Notification: Performance of sort global known variables: time 7e-08/1.104, allocations: 0 / 1.456 GB, free: 14.89 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0002573/1.105, allocations: 18.28 kB / 1.456 GB, free: 14.89 MB / 1.154 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.0007468/1.105, allocations: 0.7497 MB / 1.457 GB, free: 14.2 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0004662/1.106, allocations: 73.88 kB / 1.457 GB, free: 14.18 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/1.106, allocations: 0 / 1.457 GB, free: 14.18 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/1.106, allocations: 40.2 kB / 1.457 GB, free: 14.16 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/1.106, allocations: 32 kB / 1.457 GB, free: 14.15 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/1.109, allocations: 1.77 MB / 1.459 GB, free: 12.76 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/1.109, allocations: 0.7052 MB / 1.46 GB, free: 12.07 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 8.293e-05/1.109, allocations: 19.2 kB / 1.46 GB, free: 12.06 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.393e-05/1.109, allocations: 36.39 kB / 1.46 GB, free: 12.03 MB / 1.154 GB Notification: Performance of SimCode: time 5.41e-07/1.109, allocations: 0 / 1.46 GB, free: 12.03 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/1.137, allocations: 3.202 MB / 1.463 GB, free: 11.57 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.832/8.97, allocations: 10.34 kB / 1.463 GB, free: 11.56 MB / 1.154 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.264000107068568]