Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00125/0.00125, allocations: 118.8 kB / 17.16 MB, free: 5.914 MB / 14.72 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.001383/0.001383, allocations: 206.2 kB / 20.13 MB, free: 2.969 MB / 14.72 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 1.42/1.42, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.891/2.891, allocations: 0.49 GB / 0.7923 GB, free: 1.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 1.15 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8846/0.8866, allocations: 176.1 MB / 1.322 GB, free: 24.78 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1857/1.072, allocations: 152.3 MB / 1.47 GB, free: 9.672 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.001686/1.074, allocations: 1.152 MB / 1.471 GB, free: 8.742 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/1.074, allocations: 6.906 kB / 1.471 GB, free: 8.738 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.000333/1.074, allocations: 59.44 kB / 1.471 GB, free: 8.691 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.0008265/1.075, allocations: 315.2 kB / 1.472 GB, free: 8.461 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/1.076, allocations: 164.4 kB / 1.472 GB, free: 8.352 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.0004809/1.076, allocations: 221.7 kB / 1.472 GB, free: 8.223 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/1.076, allocations: 51.12 kB / 1.472 GB, free: 8.188 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/1.076, allocations: 52.84 kB / 1.472 GB, free: 8.156 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/1.076, allocations: 60.2 kB / 1.472 GB, free: 8.113 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 2.135e-05/1.076, allocations: 12.56 kB / 1.472 GB, free: 8.113 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006309/1.077, allocations: 393.3 kB / 1.473 GB, free: 7.887 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 6.219e-05/1.077, allocations: 29.62 kB / 1.473 GB, free: 7.863 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 6.893e-05/1.077, allocations: 60.42 kB / 1.473 GB, free: 7.82 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0005183/1.078, allocations: 302.8 kB / 1.473 GB, free: 7.633 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/1.078, allocations: 0 / 1.473 GB, free: 7.633 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.543e-06/1.078, allocations: 3.938 kB / 1.473 GB, free: 7.629 MB / 1.154 GB Notification: Performance of Transformations before backend: time 1.194e-05/1.078, allocations: 4 kB / 1.473 GB, free: 7.625 MB / 1.154 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.0007435/1.079, allocations: 478.3 kB / 1.473 GB, free: 7.164 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/1.079, allocations: 13.52 kB / 1.473 GB, free: 7.16 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.6e-05/1.079, allocations: 2.5 kB / 1.473 GB, free: 7.16 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.288e-05/1.079, allocations: 42.19 kB / 1.474 GB, free: 7.113 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/1.079, allocations: 50.23 kB / 1.474 GB, free: 7.09 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/1.079, allocations: 213.5 kB / 1.474 GB, free: 6.855 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/1.079, allocations: 11.94 kB / 1.474 GB, free: 6.848 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/1.079, allocations: 6.5 kB / 1.474 GB, free: 6.848 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/1.08, allocations: 122.1 kB / 1.474 GB, free: 6.766 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/1.08, allocations: 0 / 1.474 GB, free: 6.766 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/1.08, allocations: 5.594 kB / 1.474 GB, free: 6.762 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/1.08, allocations: 6.375 kB / 1.474 GB, free: 6.758 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/1.08, allocations: 88.28 kB / 1.474 GB, free: 6.719 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008451/1.081, allocations: 459.3 kB / 1.474 GB, free: 6.293 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/1.081, allocations: 91.02 kB / 1.475 GB, free: 6.23 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/1.081, allocations: 38.72 kB / 1.475 GB, free: 6.207 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/1.081, allocations: 1.531 kB / 1.475 GB, free: 6.207 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/1.081, allocations: 38.56 kB / 1.475 GB, free: 6.16 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/1.081, allocations: 1.562 kB / 1.475 GB, free: 6.16 MB / 1.154 GB Notification: Performance of matching and sorting (n=7): time 0.0004321/1.082, allocations: 133.4 kB / 1.475 GB, free: 6.082 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/1.082, allocations: 60.55 kB / 1.475 GB, free: 6.012 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/1.082, allocations: 182.2 kB / 1.475 GB, free: 5.871 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/1.082, allocations: 25.7 kB / 1.475 GB, free: 5.84 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/1.082, allocations: 123 kB / 1.475 GB, free: 5.723 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/1.082, allocations: 26.19 kB / 1.475 GB, free: 5.699 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/1.082, allocations: 18.59 kB / 1.475 GB, free: 5.68 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.082, allocations: 326.1 kB / 1.475 GB, free: 5.355 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/1.082, allocations: 37.41 kB / 1.475 GB, free: 5.336 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/1.083, allocations: 32.58 kB / 1.476 GB, free: 5.32 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/1.083, allocations: 78.05 kB / 1.476 GB, free: 5.277 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.083, allocations: 3.938 kB / 1.476 GB, free: 5.273 MB / 1.154 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000295/1.083, allocations: 118.8 kB / 1.476 GB, free: 5.199 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/1.083, allocations: 7.969 kB / 1.476 GB, free: 5.195 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/1.083, allocations: 1.469 kB / 1.476 GB, free: 5.195 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/1.083, allocations: 0 / 1.476 GB, free: 5.195 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/1.083, allocations: 17.77 kB / 1.476 GB, free: 5.191 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/1.083, allocations: 1.219 kB / 1.476 GB, free: 5.191 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/1.083, allocations: 20.72 kB / 1.476 GB, free: 5.176 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/1.083, allocations: 1.156 kB / 1.476 GB, free: 5.176 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.0001057/1.083, allocations: 124.5 kB / 1.476 GB, free: 5.051 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/1.083, allocations: 13.08 kB / 1.476 GB, free: 5.043 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003336/1.084, allocations: 126.2 kB / 1.476 GB, free: 4.957 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/1.084, allocations: 1.062 kB / 1.476 GB, free: 4.957 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.084, allocations: 1.125 kB / 1.476 GB, free: 4.957 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/1.084, allocations: 0 / 1.476 GB, free: 4.957 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/1.084, allocations: 227 kB / 1.476 GB, free: 4.711 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/1.084, allocations: 3.938 kB / 1.476 GB, free: 4.707 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/1.084, allocations: 17.11 kB / 1.476 GB, free: 4.703 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/1.084, allocations: 7.984 kB / 1.476 GB, free: 4.695 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/1.084, allocations: 1.062 kB / 1.476 GB, free: 4.695 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/1.084, allocations: 3.984 kB / 1.476 GB, free: 4.691 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.084, allocations: 1.125 kB / 1.476 GB, free: 4.691 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/1.085, allocations: 210.1 kB / 1.476 GB, free: 4.516 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/1.085, allocations: 91.92 kB / 1.477 GB, free: 4.41 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/1.085, allocations: 5.109 kB / 1.477 GB, free: 4.406 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/1.085, allocations: 8.031 kB / 1.477 GB, free: 4.402 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.964e-05/1.085, allocations: 10.48 kB / 1.477 GB, free: 4.395 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/1.085, allocations: 2.219 kB / 1.477 GB, free: 4.395 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0001299/1.085, allocations: 129.5 kB / 1.477 GB, free: 4.297 MB / 1.154 GB Notification: Performance of sort global known variables: time 7e-08/1.085, allocations: 0 / 1.477 GB, free: 4.297 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0002611/1.085, allocations: 26.62 kB / 1.477 GB, free: 4.289 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.0007044/1.086, allocations: 0.7531 MB / 1.477 GB, free: 3.574 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0002872/1.086, allocations: 69.02 kB / 1.478 GB, free: 3.547 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.086, allocations: 4 kB / 1.478 GB, free: 3.543 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/1.086, allocations: 42.12 kB / 1.478 GB, free: 3.523 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/1.087, allocations: 41.88 kB / 1.478 GB, free: 3.496 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/1.089, allocations: 1.761 MB / 1.479 GB, free: 2.016 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/1.089, allocations: 0.7106 MB / 1.48 GB, free: 1.301 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 7.283e-05/1.089, allocations: 12.55 kB / 1.48 GB, free: 1.297 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.908e-05/1.09, allocations: 36.92 kB / 1.48 GB, free: 1.27 MB / 1.154 GB Notification: Performance of SimCode: time 4.71e-07/1.09, allocations: 0 / 1.48 GB, free: 1.27 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/1.109, allocations: 3.247 MB / 1.483 GB, free: 15.64 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/9.016, allocations: 5.797 kB / 1.483 GB, free: 15.64 MB / 1.17 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.219845585001167]