Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.365/1.365, allocations: 251.5 MB / 266.7 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009585/0.0009583, allocations: 176.5 kB / 325.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205 MB / 0.576 GB, free: 20.95 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007897/0.0007897, allocations: 86.3 kB / 0.6797 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003119, allocations: 11.59 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1672, allocations: 105.4 MB / 0.8962 GB, free: 68.03 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1271/0.2944, allocations: 146.4 MB / 1.039 GB, free: 1.047 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.2958, allocations: 1.145 MB / 1.04 GB, free: 15.89 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.296, allocations: 0 / 1.04 GB, free: 15.89 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.2963, allocations: 47.73 kB / 1.04 GB, free: 15.85 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0007747/0.2971, allocations: 290.9 kB / 1.041 GB, free: 15.56 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.2975, allocations: 147.5 kB / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0004283/0.2979, allocations: 231.2 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.298, allocations: 57.08 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.137e-05/0.2981, allocations: 39.78 kB / 1.041 GB, free: 15.1 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.809e-05/0.2982, allocations: 47.72 kB / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.2982, allocations: 0 / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005883/0.2988, allocations: 423.1 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.758e-05/0.2989, allocations: 15.92 kB / 1.042 GB, free: 14.62 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.291e-05/0.2989, allocations: 51.67 kB / 1.042 GB, free: 14.57 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.2994, allocations: 295.1 kB / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2994, allocations: 0 / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2994, allocations: 0 / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.2994, allocations: 0 / 1.042 GB, free: 14.28 MB / 0.698 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.0006311/0.3, allocations: 455 kB / 1.042 GB, free: 13.79 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.3001, allocations: 8.031 kB / 1.042 GB, free: 13.78 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.075e-05/0.3001, allocations: 42.75 kB / 1.042 GB, free: 13.73 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003059/0.3005, allocations: 36.72 kB / 1.042 GB, free: 13.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.3007, allocations: 220.8 kB / 1.043 GB, free: 13.44 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.3007, allocations: 11.94 kB / 1.043 GB, free: 13.43 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.3008, allocations: 4 kB / 1.043 GB, free: 13.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.3011, allocations: 126.3 kB / 1.043 GB, free: 13.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3011, allocations: 0 / 1.043 GB, free: 13.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3011, allocations: 4 kB / 1.043 GB, free: 13.29 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3011, allocations: 7.938 kB / 1.043 GB, free: 13.29 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.3014, allocations: 103.9 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.3021, allocations: 460.1 kB / 1.043 GB, free: 12.68 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.3023, allocations: 94.55 kB / 1.043 GB, free: 12.58 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3024, allocations: 48.94 kB / 1.043 GB, free: 12.53 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.3024, allocations: 0 / 1.043 GB, free: 12.53 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.3025, allocations: 34.56 kB / 1.043 GB, free: 12.49 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.3025, allocations: 0 / 1.043 GB, free: 12.49 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004188/0.3029, allocations: 165.5 kB / 1.044 GB, free: 12.32 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.3029, allocations: 55.41 kB / 1.044 GB, free: 12.25 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.3031, allocations: 186.6 kB / 1.044 GB, free: 12.06 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3031, allocations: 25.7 kB / 1.044 GB, free: 12.03 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.3032, allocations: 116 kB / 1.044 GB, free: 11.91 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.3032, allocations: 23.64 kB / 1.044 GB, free: 11.89 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.3033, allocations: 13.72 kB / 1.044 GB, free: 11.87 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3034, allocations: 326.8 kB / 1.044 GB, free: 11.54 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.3035, allocations: 39.97 kB / 1.044 GB, free: 11.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.3036, allocations: 35.98 kB / 1.044 GB, free: 11.47 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.3038, allocations: 92.75 kB / 1.044 GB, free: 11.38 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3038, allocations: 3.938 kB / 1.044 GB, free: 11.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002611/0.3041, allocations: 125.5 kB / 1.045 GB, free: 11.24 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3041, allocations: 4 kB / 1.045 GB, free: 11.24 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3041, allocations: 4 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3042, allocations: 0 / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.3043, allocations: 19.98 kB / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3043, allocations: 4 kB / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.3044, allocations: 23.83 kB / 1.045 GB, free: 11.19 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.3044, allocations: 0 / 1.045 GB, free: 11.19 MB / 0.698 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.219e-05/0.3045, allocations: 121.7 kB / 1.045 GB, free: 11.06 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.3046, allocations: 23.81 kB / 1.045 GB, free: 11.04 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.3049, allocations: 131 kB / 1.045 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3049, allocations: 0 / 1.045 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3049, allocations: 4 kB / 1.045 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.305, allocations: 0 / 1.045 GB, free: 10.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.3052, allocations: 225.5 kB / 1.045 GB, free: 10.63 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3052, allocations: 0 / 1.045 GB, free: 10.63 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.3053, allocations: 19.98 kB / 1.045 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3053, allocations: 0 / 1.045 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.3053, allocations: 3.938 kB / 1.045 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3053, allocations: 4 kB / 1.045 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3053, allocations: 0 / 1.045 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.3056, allocations: 231.2 kB / 1.045 GB, free: 10.36 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-05/0.3057, allocations: 92.89 kB / 1.045 GB, free: 10.25 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.3057, allocations: 4 kB / 1.045 GB, free: 10.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.3058, allocations: 7.984 kB / 1.045 GB, free: 10.24 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.3059, allocations: 11.98 kB / 1.046 GB, free: 10.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.3059, allocations: 0 / 1.046 GB, free: 10.23 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001008/0.306, allocations: 135.2 kB / 1.046 GB, free: 10.09 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.41e-07/0.306, allocations: 0 / 1.046 GB, free: 10.09 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002226/0.3062, allocations: 20 kB / 1.046 GB, free: 10.07 MB / 0.698 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.0006292/0.3069, allocations: 0.7597 MB / 1.046 GB, free: 9.285 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002678/0.3072, allocations: 100 kB / 1.046 GB, free: 9.188 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3072, allocations: 0 / 1.046 GB, free: 9.188 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.3073, allocations: 43.91 kB / 1.047 GB, free: 9.145 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.3077, allocations: 41.97 kB / 1.047 GB, free: 9.105 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.3099, allocations: 1.799 MB / 1.048 GB, free: 7.234 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.3101, allocations: 0.7043 MB / 1.049 GB, free: 6.504 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.178e-05/0.3102, allocations: 16.88 kB / 1.049 GB, free: 6.484 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.3103, allocations: 35.42 kB / 1.049 GB, free: 6.449 MB / 0.698 GB Notification: Performance of SimCode: time 4.4e-07/0.3103, allocations: 0 / 1.049 GB, free: 6.449 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2027/0.513, allocations: 2.863 MB / 1.052 GB, free: 3.762 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.5132, allocations: 231.5 kB / 1.052 GB, free: 3.504 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.204, allocations: 0 / 1.052 GB, free: 3.504 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)