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.001259/0.001259, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001373/0.001373, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.341/1.341, allocations: 230.6 MB / 256 MB, free: 8.035 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.953/2.953, allocations: 0.49 GB / 0.7951 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 177] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",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.001929/0.001929, allocations: 67.52 kB / 1.154 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3018, allocations: 176.1 MB / 1.326 GB, free: 1.934 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1689/0.4707, allocations: 152.3 MB / 1.475 GB, free: 9.023 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.4723, allocations: 1.172 MB / 1.476 GB, free: 7.848 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.4724, allocations: 4 kB / 1.476 GB, free: 7.844 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0003383/0.4727, allocations: 63.59 kB / 1.476 GB, free: 7.781 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.0007324/0.4735, allocations: 306.7 kB / 1.476 GB, free: 7.48 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.4738, allocations: 171.3 kB / 1.476 GB, free: 7.312 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.4743, allocations: 223.3 kB / 1.477 GB, free: 7.094 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.4744, allocations: 45.3 kB / 1.477 GB, free: 7.051 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 8.039e-05/0.4745, allocations: 59.72 kB / 1.477 GB, free: 6.992 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.4746, allocations: 59.69 kB / 1.477 GB, free: 6.934 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.4746, allocations: 12 kB / 1.477 GB, free: 6.922 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005802/0.4752, allocations: 387.2 kB / 1.477 GB, free: 6.543 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/0.4752, allocations: 27.91 kB / 1.477 GB, free: 6.516 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.4753, allocations: 63.67 kB / 1.477 GB, free: 6.453 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0004424/0.4757, allocations: 299 kB / 1.477 GB, free: 6.16 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4757, allocations: 0 / 1.477 GB, free: 6.16 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4757, allocations: 0 / 1.477 GB, free: 6.16 MB / 1.17 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.4757, allocations: 8 kB / 1.477 GB, free: 6.152 MB / 1.17 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.0006533/0.4764, allocations: 397.3 kB / 1.478 GB, free: 5.734 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.4764, allocations: 12.03 kB / 1.478 GB, free: 5.723 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.257e-05/0.4765, allocations: 42.73 kB / 1.478 GB, free: 5.672 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000447/0.4769, allocations: 48.8 kB / 1.478 GB, free: 5.625 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.4772, allocations: 163.4 kB / 1.478 GB, free: 5.441 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.4772, allocations: 12 kB / 1.478 GB, free: 5.43 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.4772, allocations: 8 kB / 1.478 GB, free: 5.422 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.4775, allocations: 117.6 kB / 1.478 GB, free: 5.301 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4775, allocations: 0 / 1.478 GB, free: 5.301 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.4775, allocations: 0 / 1.478 GB, free: 5.301 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.4775, allocations: 4 kB / 1.478 GB, free: 5.297 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.4778, allocations: 99.88 kB / 1.478 GB, free: 5.199 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006727/0.4784, allocations: 427.2 kB / 1.479 GB, free: 4.738 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.4787, allocations: 90.55 kB / 1.479 GB, free: 4.641 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.4788, allocations: 44.81 kB / 1.479 GB, free: 4.594 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4788, allocations: 0 / 1.479 GB, free: 4.594 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.4788, allocations: 30.56 kB / 1.479 GB, free: 4.555 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.4788, allocations: 0 / 1.479 GB, free: 4.555 MB / 1.17 GB Notification: Performance of matching and sorting (n=7): time 0.0004326/0.4792, allocations: 141.6 kB / 1.479 GB, free: 4.41 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.4793, allocations: 51.41 kB / 1.479 GB, free: 4.348 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4795, allocations: 178.8 kB / 1.479 GB, free: 4.164 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.4795, allocations: 29.7 kB / 1.479 GB, free: 4.129 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 7.755e-05/0.4796, allocations: 124 kB / 1.479 GB, free: 4.004 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.4796, allocations: 19.8 kB / 1.479 GB, free: 3.984 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/0.4796, allocations: 25.7 kB / 1.479 GB, free: 3.953 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4798, allocations: 326.8 kB / 1.48 GB, free: 3.625 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.4799, allocations: 35.91 kB / 1.48 GB, free: 3.59 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.255e-05/0.48, allocations: 39.97 kB / 1.48 GB, free: 3.551 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.4802, allocations: 72.83 kB / 1.48 GB, free: 3.477 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4802, allocations: 0 / 1.48 GB, free: 3.477 MB / 1.17 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002541/0.4804, allocations: 114 kB / 1.48 GB, free: 3.359 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4805, allocations: 5.406 kB / 1.48 GB, free: 3.355 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.4805, allocations: 0 / 1.48 GB, free: 3.355 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.4805, allocations: 7.984 kB / 1.48 GB, free: 3.348 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.4806, allocations: 23.92 kB / 1.48 GB, free: 3.324 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.4806, allocations: 4.062 kB / 1.48 GB, free: 3.32 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.77e-05/0.4807, allocations: 7.953 kB / 1.48 GB, free: 3.312 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.4807, allocations: 4 kB / 1.48 GB, free: 3.309 MB / 1.17 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.0001011/0.4808, allocations: 122.3 kB / 1.48 GB, free: 3.18 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.4808, allocations: 15.94 kB / 1.48 GB, free: 3.164 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003104/0.4812, allocations: 127 kB / 1.48 GB, free: 3.031 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.4812, allocations: 4 kB / 1.48 GB, free: 3.027 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4812, allocations: 0 / 1.48 GB, free: 3.027 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4812, allocations: 0 / 1.48 GB, free: 3.027 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.4814, allocations: 204.4 kB / 1.481 GB, free: 2.785 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.4814, allocations: 3.938 kB / 1.481 GB, free: 2.781 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.4815, allocations: 19.98 kB / 1.481 GB, free: 2.762 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.4815, allocations: 0 / 1.481 GB, free: 2.762 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.4815, allocations: 4 kB / 1.481 GB, free: 2.758 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4815, allocations: 4 kB / 1.481 GB, free: 2.754 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4815, allocations: 4 kB / 1.481 GB, free: 2.75 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.4818, allocations: 203.4 kB / 1.481 GB, free: 2.535 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 2.936e-05/0.4818, allocations: 15.89 kB / 1.481 GB, free: 2.52 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.4819, allocations: 4 kB / 1.481 GB, free: 2.516 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.482, allocations: 4 kB / 1.481 GB, free: 2.512 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.482, allocations: 19.86 kB / 1.481 GB, free: 2.492 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.482, allocations: 0 / 1.481 GB, free: 2.492 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001215/0.4821, allocations: 139.2 kB / 1.481 GB, free: 2.355 MB / 1.17 GB Notification: Performance of sort global known variables: time 9e-08/0.4821, allocations: 0 / 1.481 GB, free: 2.355 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002319/0.4824, allocations: 16 kB / 1.481 GB, free: 2.34 MB / 1.17 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.0006417/0.483, allocations: 0.7514 MB / 1.482 GB, free: 1.559 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.4833, allocations: 71.89 kB / 1.482 GB, free: 1.488 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4833, allocations: 0 / 1.482 GB, free: 1.488 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.4834, allocations: 39.98 kB / 1.482 GB, free: 1.449 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.4837, allocations: 27.97 kB / 1.482 GB, free: 1.422 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.4859, allocations: 1.769 MB / 1.484 GB, free: 15.57 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.4862, allocations: 0.7117 MB / 1.484 GB, free: 14.84 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 6.855e-05/0.4863, allocations: 12.97 kB / 1.484 GB, free: 14.82 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.606e-05/0.4863, allocations: 35.44 kB / 1.484 GB, free: 14.79 MB / 1.186 GB Notification: Performance of SimCode: time 3.81e-07/0.4863, allocations: 3.938 kB / 1.484 GB, free: 14.79 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.5163, allocations: 3.332 MB / 1.488 GB, free: 11.61 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.95, allocations: 6.344 kB / 1.488 GB, free: 11.61 MB / 1.186 GB " [Timeout remaining time 289] (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: 16.989606891060248]