Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001665/0.001665, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.4 MB / 222.1 MB, free: 5.891 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.852/1.852, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005194/0.0005195, allocations: 19.59 kB / 0.6738 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2499, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6272/0.877, allocations: 135.1 MB / 0.9194 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.8784, allocations: 1.05 MB / 0.9204 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.8786, allocations: 2.062 kB / 0.9204 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.8789, allocations: 39.03 kB / 0.9204 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007142/0.8796, allocations: 191.2 kB / 0.9206 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003393/0.8799, allocations: 142.7 kB / 0.9207 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.8804, allocations: 219.9 kB / 0.921 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.8806, allocations: 41.31 kB / 0.921 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.233e-05/0.8806, allocations: 39.73 kB / 0.921 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.393e-05/0.8807, allocations: 45.8 kB / 0.9211 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.8808, allocations: 3.156 kB / 0.9211 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005541/0.8813, allocations: 289.4 kB / 0.9214 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.486e-05/0.8814, allocations: 17.98 kB / 0.9214 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003347/0.8817, allocations: 48.86 kB / 0.9214 GB, free: 21.82 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003377/0.8821, allocations: 191.1 kB / 0.9216 GB, free: 21.8 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.8821, allocations: 4 kB / 0.9216 GB, free: 21.8 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.773e-06/0.8821, allocations: 1.062 kB / 0.9216 GB, free: 21.8 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.8821, allocations: 0 / 0.9216 GB, free: 21.8 MB / 0.7325 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.0006272/0.8827, allocations: 456.4 kB / 0.922 GB, free: 21.39 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.8828, allocations: 8.969 kB / 0.922 GB, free: 21.39 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.276e-05/0.8828, allocations: 39.66 kB / 0.9221 GB, free: 21.35 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.8831, allocations: 46.64 kB / 0.9221 GB, free: 21.34 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.8834, allocations: 207 kB / 0.9223 GB, free: 21.13 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.8834, allocations: 7.531 kB / 0.9223 GB, free: 21.13 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.8834, allocations: 11.19 kB / 0.9223 GB, free: 21.13 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.8837, allocations: 123.7 kB / 0.9225 GB, free: 21.1 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.8837, allocations: 5.781 kB / 0.9225 GB, free: 21.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.8837, allocations: 6.703 kB / 0.9225 GB, free: 21.09 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.8838, allocations: 7.438 kB / 0.9225 GB, free: 21.09 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.884, allocations: 98.77 kB / 0.9226 GB, free: 21.09 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006682/0.8847, allocations: 465.4 kB / 0.923 GB, free: 20.79 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.8849, allocations: 98.28 kB / 0.9231 GB, free: 20.76 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.885, allocations: 46.05 kB / 0.9232 GB, free: 20.75 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.885, allocations: 0.7031 kB / 0.9232 GB, free: 20.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.8851, allocations: 33.12 kB / 0.9232 GB, free: 20.71 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.8851, allocations: 2.734 kB / 0.9232 GB, free: 20.71 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000407/0.8855, allocations: 158.5 kB / 0.9233 GB, free: 20.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.8855, allocations: 55.97 kB / 0.9234 GB, free: 20.61 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.8857, allocations: 178.6 kB / 0.9236 GB, free: 20.51 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.8857, allocations: 29.7 kB / 0.9236 GB, free: 20.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.941e-05/0.8858, allocations: 119.4 kB / 0.9237 GB, free: 20.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.8858, allocations: 27.25 kB / 0.9237 GB, free: 20.37 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.8858, allocations: 0 / 0.9237 GB, free: 20.37 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.886, allocations: 321.3 kB / 0.924 GB, free: 20.06 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.8861, allocations: 38.16 kB / 0.9241 GB, free: 20.06 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.114e-05/0.8862, allocations: 43.89 kB / 0.9241 GB, free: 20.05 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.928e-05/0.8863, allocations: 41.69 kB / 0.9242 GB, free: 20.05 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.8863, allocations: 0 / 0.9242 GB, free: 20.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002475/0.8866, allocations: 123 kB / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.8866, allocations: 6.984 kB / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8866, allocations: 0 / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.8866, allocations: 0 / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.8867, allocations: 23.78 kB / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.8868, allocations: 3.953 kB / 0.9243 GB, free: 20.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.53e-05/0.8869, allocations: 23.44 kB / 0.9243 GB, free: 20 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.8869, allocations: 2.938 kB / 0.9243 GB, free: 20 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.887, allocations: 123.1 kB / 0.9245 GB, free: 19.88 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.887, allocations: 10.41 kB / 0.9245 GB, free: 19.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000316/0.8874, allocations: 136.4 kB / 0.9246 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.8874, allocations: 0.7031 kB / 0.9246 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8874, allocations: 2.844 kB / 0.9246 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.8874, allocations: 4.609 kB / 0.9246 GB, free: 19.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.8876, allocations: 222.8 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.8876, allocations: 0.7031 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.8877, allocations: 17.91 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.8878, allocations: 5.375 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.8878, allocations: 8.109 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8878, allocations: 0 / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.8878, allocations: 0.7031 kB / 0.9248 GB, free: 19.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.8881, allocations: 218.6 kB / 0.9251 GB, free: 19.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.8881, allocations: 103.6 kB / 0.9251 GB, free: 19.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.8882, allocations: 4.547 kB / 0.9252 GB, free: 19.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.8883, allocations: 10.97 kB / 0.9252 GB, free: 19.39 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.8883, allocations: 5.344 kB / 0.9252 GB, free: 19.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.8884, allocations: 0 / 0.9252 GB, free: 19.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001054/0.8885, allocations: 139.3 kB / 0.9253 GB, free: 19.31 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8885, allocations: 0 / 0.9253 GB, free: 19.31 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002399/0.8887, allocations: 20.47 kB / 0.9253 GB, free: 19.31 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006156/0.8893, allocations: 0.7606 MB / 0.9261 GB, free: 18.64 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002454/0.8896, allocations: 89.06 kB / 0.9261 GB, free: 18.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.8896, allocations: 0 / 0.9261 GB, free: 18.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.8897, allocations: 44.38 kB / 0.9262 GB, free: 18.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.8901, allocations: 33.73 kB / 0.9262 GB, free: 18.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.8916, allocations: 0.8527 MB / 0.9271 GB, free: 18.21 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.892, allocations: 0.7103 MB / 0.9278 GB, free: 17.52 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.124e-05/0.8921, allocations: 15.39 kB / 0.9278 GB, free: 17.51 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.453e-05/0.8922, allocations: 41.06 kB / 0.9278 GB, free: 17.5 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.8922, allocations: 0 / 0.9278 GB, free: 17.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01575/0.9079, allocations: 2.872 MB / 0.9306 GB, free: 17.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.9082, allocations: 211.1 kB / 0.9308 GB, free: 17.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.833, allocations: 0 / 0.9308 GB, free: 17.01 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) Environment - environmentSimulation: