Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) 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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001258/0.001258, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 193.8 kB / 16.14 MB, free: 6.703 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.88/2.88, allocations: 472.6 MB / 0.7447 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 66.2 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3572, allocations: 159.9 MB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1665/0.5238, allocations: 146.7 MB / 1.211 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001679/0.5255, allocations: 1.149 MB / 1.212 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.5256, allocations: 0 / 1.212 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.526, allocations: 47.8 kB / 1.212 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007096/0.5267, allocations: 278.9 kB / 1.212 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.5271, allocations: 151.5 kB / 1.212 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.5276, allocations: 235.3 kB / 1.213 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.5277, allocations: 57.34 kB / 1.213 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.954e-05/0.5278, allocations: 47.8 kB / 1.213 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.077e-05/0.5279, allocations: 55.77 kB / 1.213 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.5279, allocations: 4 kB / 1.213 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006266/0.5285, allocations: 419.1 kB / 1.213 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.056e-05/0.5286, allocations: 27.84 kB / 1.213 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.493e-05/0.5287, allocations: 55.67 kB / 1.213 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004575/0.5292, allocations: 299.2 kB / 1.214 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.5292, allocations: 0 / 1.214 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5292, allocations: 0 / 1.214 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.5292, allocations: 0 / 1.214 GB, free: 4.879 MB / 0.9669 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.0007517/0.53, allocations: 472.8 kB / 1.214 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.53, allocations: 8.031 kB / 1.214 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003032/0.5303, allocations: 36.72 kB / 1.214 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.5305, allocations: 208 kB / 1.214 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.5306, allocations: 11.94 kB / 1.214 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.5306, allocations: 8 kB / 1.214 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.5309, allocations: 123.5 kB / 1.214 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.5309, allocations: 0 / 1.214 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.5309, allocations: 4 kB / 1.214 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.5309, allocations: 7.938 kB / 1.214 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002636/0.5312, allocations: 87.94 kB / 1.214 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007076/0.5319, allocations: 460.1 kB / 1.215 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.5322, allocations: 90.48 kB / 1.215 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.5323, allocations: 48.94 kB / 1.215 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.5324, allocations: 0 / 1.215 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.5324, allocations: 38.55 kB / 1.215 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.545e-06/0.5324, allocations: 0 / 1.215 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004694/0.5329, allocations: 149.4 kB / 1.215 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.5329, allocations: 51.41 kB / 1.215 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.5331, allocations: 180.1 kB / 1.215 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.5331, allocations: 29.7 kB / 1.215 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.826e-05/0.5332, allocations: 116 kB / 1.216 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.5332, allocations: 23.64 kB / 1.216 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.5333, allocations: 21.66 kB / 1.216 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5334, allocations: 330.8 kB / 1.216 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.5335, allocations: 31.97 kB / 1.216 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.5336, allocations: 35.98 kB / 1.216 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.5339, allocations: 76.8 kB / 1.216 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.5339, allocations: 0 / 1.216 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002712/0.5342, allocations: 117.5 kB / 1.216 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.5342, allocations: 4 kB / 1.216 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.5342, allocations: 0 / 1.216 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.5342, allocations: 4 kB / 1.216 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.5344, allocations: 23.92 kB / 1.216 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.5344, allocations: 0 / 1.216 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.5345, allocations: 7.984 kB / 1.216 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.5345, allocations: 4 kB / 1.216 GB, free: 1.906 MB / 0.9669 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.0001121/0.5346, allocations: 125.7 kB / 1.216 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.5347, allocations: 15.81 kB / 1.216 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003486/0.535, allocations: 127 kB / 1.216 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.535, allocations: 7.938 kB / 1.216 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5351, allocations: 0 / 1.216 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5351, allocations: 0 / 1.216 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.5353, allocations: 221.5 kB / 1.217 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.5353, allocations: 0 / 1.217 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.5354, allocations: 15.98 kB / 1.217 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.5355, allocations: 4 kB / 1.217 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.5355, allocations: 0 / 1.217 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5355, allocations: 0 / 1.217 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5355, allocations: 7.984 kB / 1.217 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.5358, allocations: 211.3 kB / 1.217 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.5359, allocations: 88.95 kB / 1.217 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.5359, allocations: 7.938 kB / 1.217 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.536, allocations: 11.92 kB / 1.217 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.5361, allocations: 11.98 kB / 1.217 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.5361, allocations: 0 / 1.217 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001132/0.5362, allocations: 140.2 kB / 1.217 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5362, allocations: 0 / 1.217 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002555/0.5365, allocations: 16 kB / 1.217 GB, free: 0.8125 MB / 0.9669 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.0001939/0.5367, allocations: 107.2 kB / 1.217 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000287/0.537, allocations: 80.59 kB / 1.217 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.537, allocations: 0 / 1.217 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.5371, allocations: 47.89 kB / 1.217 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.5376, allocations: 36.95 kB / 1.217 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006206/0.5383, allocations: 286.5 kB / 1.218 GB, free: 236 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.5386, allocations: 0.7083 MB / 1.218 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.896e-05/0.5387, allocations: 12.88 kB / 1.218 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.5388, allocations: 15.44 kB / 1.218 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.5388, allocations: 0 / 1.218 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.005243/0.544, allocations: 1.473 MB / 1.22 GB, free: 14.01 MB / 0.9825 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)