Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001217, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.2 MB / 0.6646 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 0.8125 GB, free: 14.44 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5698/0.5711, allocations: 140.4 MB / 0.9496 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1547/0.7258, allocations: 149 MB / 1.095 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.7273, allocations: 1.133 MB / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.7275, allocations: 4 kB / 1.096 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.7278, allocations: 55.66 kB / 1.096 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006736/0.7285, allocations: 298.7 kB / 1.097 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.7288, allocations: 163.4 kB / 1.097 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.7292, allocations: 235.2 kB / 1.097 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.7294, allocations: 59.05 kB / 1.097 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.643e-05/0.7294, allocations: 51.8 kB / 1.097 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.177e-05/0.7295, allocations: 63.69 kB / 1.097 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.7296, allocations: 12 kB / 1.097 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.7301, allocations: 371.2 kB / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.956e-05/0.7302, allocations: 23.92 kB / 1.097 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.258e-05/0.7302, allocations: 59.67 kB / 1.098 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.7306, allocations: 291.2 kB / 1.098 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.7307, allocations: 0 / 1.098 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.062e-06/0.7307, allocations: 0 / 1.098 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.7307, allocations: 4 kB / 1.098 GB, free: 9.539 MB / 0.8575 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.0006175/0.7313, allocations: 470.8 kB / 1.098 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.7313, allocations: 8.031 kB / 1.098 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.7316, allocations: 36.75 kB / 1.098 GB, free: 8.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.7318, allocations: 211.4 kB / 1.098 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.7319, allocations: 12 kB / 1.098 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.7319, allocations: 8 kB / 1.099 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.7322, allocations: 115.6 kB / 1.099 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.7322, allocations: 0 / 1.099 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.7322, allocations: 4 kB / 1.099 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.7322, allocations: 7.938 kB / 1.099 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.7325, allocations: 95.86 kB / 1.099 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006404/0.7331, allocations: 460.1 kB / 1.099 GB, free: 8 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.7333, allocations: 90.53 kB / 1.099 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.7335, allocations: 36.95 kB / 1.099 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.7335, allocations: 4 kB / 1.099 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.7335, allocations: 38.5 kB / 1.099 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.7335, allocations: 0 / 1.099 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004297/0.734, allocations: 137.4 kB / 1.099 GB, free: 7.672 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.734, allocations: 55.41 kB / 1.1 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.7342, allocations: 183.9 kB / 1.1 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.7342, allocations: 25.7 kB / 1.1 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.7343, allocations: 120 kB / 1.1 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.7343, allocations: 15.72 kB / 1.1 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.7344, allocations: 29.61 kB / 1.1 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.7345, allocations: 322.8 kB / 1.1 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.7346, allocations: 39.98 kB / 1.1 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.7347, allocations: 36.22 kB / 1.1 GB, free: 6.816 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.735, allocations: 76.95 kB / 1.1 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.735, allocations: 4 kB / 1.1 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000276/0.7352, allocations: 109.6 kB / 1.1 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.7353, allocations: 8 kB / 1.1 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.7353, allocations: 4 kB / 1.1 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.7353, allocations: 0 / 1.1 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.7354, allocations: 19.98 kB / 1.1 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.7354, allocations: 3.938 kB / 1.1 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.952e-05/0.7355, allocations: 19.83 kB / 1.1 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.7356, allocations: 7.875 kB / 1.1 GB, free: 6.559 MB / 0.8575 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.256e-05/0.7357, allocations: 121.8 kB / 1.101 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.7357, allocations: 7.906 kB / 1.101 GB, free: 6.422 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.736, allocations: 135 kB / 1.101 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.736, allocations: 0 / 1.101 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.7361, allocations: 0 / 1.101 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.7361, allocations: 0 / 1.101 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.7363, allocations: 225.4 kB / 1.101 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7363, allocations: 0 / 1.101 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.7364, allocations: 19.92 kB / 1.101 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.7364, allocations: 0 / 1.101 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.7364, allocations: 4 kB / 1.101 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.7364, allocations: 0 / 1.101 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7365, allocations: 4 kB / 1.101 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.7368, allocations: 211.3 kB / 1.101 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.7368, allocations: 92.86 kB / 1.101 GB, free: 5.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.7369, allocations: 0 / 1.101 GB, free: 5.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.737, allocations: 15.92 kB / 1.101 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.737, allocations: 8 kB / 1.101 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.737, allocations: 0 / 1.101 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001126/0.7372, allocations: 144.2 kB / 1.101 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7372, allocations: 3.938 kB / 1.101 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00025/0.7374, allocations: 24 kB / 1.101 GB, free: 5.465 MB / 0.8575 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.0001408/0.7376, allocations: 103.2 kB / 1.102 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.7379, allocations: 83.94 kB / 1.102 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.7379, allocations: 0 / 1.102 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.738, allocations: 35.92 kB / 1.102 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.7384, allocations: 42.7 kB / 1.102 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005016/0.7389, allocations: 246.8 kB / 1.102 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.7392, allocations: 0.708 MB / 1.103 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.367e-05/0.7393, allocations: 16.88 kB / 1.103 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.7393, allocations: 11.44 kB / 1.103 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.7393, allocations: 0 / 1.103 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of Templates: time 0.004115/0.7435, allocations: 1.58 MB / 1.104 GB, free: 2.609 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches