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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8871/0.8871, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.765/1.765, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.755e-06/2.755e-06, allocations: 0 / 0.9997 GB, free: 13.45 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.676e-05, allocations: 4.672 kB / 0.9997 GB, free: 13.44 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6041/0.6041, allocations: 131 MB / 1.128 GB, free: 2.801 MB / 0.9948 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.6051, allocations: 1.044 MB / 1.129 GB, free: 2.113 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.626e-05/0.6052, allocations: 6.125 kB / 1.129 GB, free: 2.109 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.6056, allocations: 46.31 kB / 1.129 GB, free: 2.09 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 0.0005763/0.6061, allocations: 320.3 kB / 1.129 GB, free: 1.934 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.6064, allocations: 170.5 kB / 1.129 GB, free: 1.848 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.6067, allocations: 232.2 kB / 1.129 GB, free: 1.738 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.6068, allocations: 43 kB / 1.129 GB, free: 1.719 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 8.964e-05/0.6069, allocations: 74.5 kB / 1.13 GB, free: 1.688 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.142e-05/0.607, allocations: 48.66 kB / 1.13 GB, free: 1.668 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.607, allocations: 11.56 kB / 1.13 GB, free: 1.668 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.6073, allocations: 240.2 kB / 1.13 GB, free: 1.594 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 4.884e-05/0.6073, allocations: 26.53 kB / 1.13 GB, free: 1.578 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.6074, allocations: 48.94 kB / 1.13 GB, free: 1.551 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.6077, allocations: 280.3 kB / 1.13 GB, free: 1.453 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6077, allocations: 1.344 kB / 1.13 GB, free: 1.453 MB / 0.9948 GB Notification: Performance of FrontEnd: time 2.194e-06/0.6077, allocations: 0.7969 kB / 1.13 GB, free: 1.453 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.6077, allocations: 3.938 kB / 1.13 GB, free: 1.449 MB / 0.9948 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.0004403/0.6082, allocations: 402.6 kB / 1.131 GB, free: 1.105 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.6082, allocations: 10.03 kB / 1.131 GB, free: 1.105 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.866e-05/0.6082, allocations: 44.58 kB / 1.131 GB, free: 1.059 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002798/0.6085, allocations: 50.06 kB / 1.131 GB, free: 1.047 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.6087, allocations: 151.7 kB / 1.131 GB, free: 0.8945 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.6087, allocations: 12.25 kB / 1.131 GB, free: 0.8867 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.6088, allocations: 6.656 kB / 1.131 GB, free: 0.8867 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.6089, allocations: 117.7 kB / 1.131 GB, free: 0.8242 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6089, allocations: 0 / 1.131 GB, free: 0.8242 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.6089, allocations: 5.25 kB / 1.131 GB, free: 0.8203 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.609, allocations: 3.406 kB / 1.131 GB, free: 0.8203 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.6091, allocations: 95.66 kB / 1.131 GB, free: 0.7891 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.6096, allocations: 398.1 kB / 1.131 GB, free: 476 kB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.6097, allocations: 89.67 kB / 1.131 GB, free: 424 kB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.564e-05/0.6098, allocations: 36.81 kB / 1.132 GB, free: 408 kB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.6098, allocations: 1.094 kB / 1.132 GB, free: 408 kB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.393e-05/0.6098, allocations: 43.41 kB / 1.132 GB, free: 360 kB / 0.9948 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.6098, allocations: 0 / 1.132 GB, free: 360 kB / 0.9948 GB Notification: Performance of matching and sorting (n=7): time 0.0002687/0.6101, allocations: 133.1 kB / 1.132 GB, free: 300 kB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.882e-05/0.6101, allocations: 53.3 kB / 1.132 GB, free: 236 kB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.6102, allocations: 183.7 kB / 1.132 GB, free: 104 kB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.6102, allocations: 31.92 kB / 1.132 GB, free: 68 kB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.6103, allocations: 109.8 kB / 1.132 GB, free: 15.96 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.6103, allocations: 28.95 kB / 1.132 GB, free: 15.94 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.6103, allocations: 23.7 kB / 1.132 GB, free: 15.92 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 8.264e-05/0.6104, allocations: 327.5 kB / 1.132 GB, free: 15.6 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.466e-05/0.6105, allocations: 30.62 kB / 1.132 GB, free: 15.59 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.953e-05/0.6105, allocations: 38.61 kB / 1.132 GB, free: 15.58 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.6107, allocations: 75.31 kB / 1.133 GB, free: 15.55 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6107, allocations: 0 / 1.133 GB, free: 15.55 MB / 1.01 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001603/0.6108, allocations: 118.8 kB / 1.133 GB, free: 15.49 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.6108, allocations: 9.531 kB / 1.133 GB, free: 15.48 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.6108, allocations: 0 / 1.133 GB, free: 15.48 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.6108, allocations: 1.469 kB / 1.133 GB, free: 15.48 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-05/0.6109, allocations: 21 kB / 1.133 GB, free: 15.48 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.6109, allocations: 2 kB / 1.133 GB, free: 15.48 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.713e-05/0.611, allocations: 19.27 kB / 1.133 GB, free: 15.47 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.611, allocations: 5.922 kB / 1.133 GB, free: 15.46 MB / 1.01 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 6.869e-05/0.6111, allocations: 125.1 kB / 1.133 GB, free: 15.34 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.6111, allocations: 13.66 kB / 1.133 GB, free: 15.33 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.6113, allocations: 124.9 kB / 1.133 GB, free: 15.27 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.6113, allocations: 6.062 kB / 1.133 GB, free: 15.27 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6113, allocations: 0 / 1.133 GB, free: 15.27 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.6113, allocations: 2.031 kB / 1.133 GB, free: 15.27 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.6114, allocations: 179.4 kB / 1.133 GB, free: 15.09 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6114, allocations: 0 / 1.133 GB, free: 15.09 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.087e-05/0.6115, allocations: 16.38 kB / 1.133 GB, free: 15.09 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.6115, allocations: 5.219 kB / 1.133 GB, free: 15.08 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.6115, allocations: 0.7031 kB / 1.133 GB, free: 15.08 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.6115, allocations: 5.125 kB / 1.133 GB, free: 15.08 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6115, allocations: 0 / 1.133 GB, free: 15.08 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.6117, allocations: 205.3 kB / 1.133 GB, free: 14.92 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 1.812e-05/0.6117, allocations: 12.83 kB / 1.133 GB, free: 14.91 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.6117, allocations: 5.734 kB / 1.133 GB, free: 14.91 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.572e-05/0.6118, allocations: 10.14 kB / 1.133 GB, free: 14.91 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.6118, allocations: 5.438 kB / 1.133 GB, free: 14.91 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-06/0.6118, allocations: 5.312 kB / 1.133 GB, free: 14.9 MB / 1.01 GB Notification: Performance of sorting global known variables: time 8.268e-05/0.6119, allocations: 139.2 kB / 1.134 GB, free: 14.81 MB / 1.01 GB Notification: Performance of sort global known variables: time 6e-08/0.6119, allocations: 0 / 1.134 GB, free: 14.81 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0001617/0.612, allocations: 22.75 kB / 1.134 GB, free: 14.8 MB / 1.01 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.0004055/0.6125, allocations: 0.7478 MB / 1.134 GB, free: 14.11 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0001717/0.6126, allocations: 81.83 kB / 1.134 GB, free: 14.09 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.6126, allocations: 0 / 1.134 GB, free: 14.09 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 6.236e-05/0.6127, allocations: 35.42 kB / 1.134 GB, free: 14.08 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.6129, allocations: 35.25 kB / 1.134 GB, free: 14.07 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.6144, allocations: 1.769 MB / 1.136 GB, free: 12.69 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.906e-05/0.6145, allocations: 97.08 kB / 1.136 GB, free: 12.61 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.6145, allocations: 9.5 kB / 1.136 GB, free: 12.61 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.297e-05/0.6146, allocations: 41.78 kB / 1.136 GB, free: 12.58 MB / 1.01 GB Notification: Performance of SimCode: time 7.92e-07/0.6146, allocations: 1.125 kB / 1.136 GB, free: 12.58 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.631, allocations: 4.003 MB / 1.14 GB, free: 11.5 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.232/7.863, allocations: 7.609 kB / 1.14 GB, free: 11.5 MB / 1.01 GB " [Timeout remaining time 292] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 11.999404221773148]