Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",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.001335/0.001335, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001692/0.001692, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 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: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.343/2.343, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003236, allocations: 12 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6707/0.671, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.2936/0.9647, allocations: 265.4 MB / 1.213 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.03285/0.9976, allocations: 27.11 MB / 1.239 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003418/1.001, allocations: 75.5 kB / 1.239 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005277/1.006, allocations: 1.668 MB / 1.241 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01559/1.022, allocations: 4.833 MB / 1.246 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007792/1.03, allocations: 2.47 MB / 1.248 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.7029/1.733, allocations: 3.926 MB / 1.252 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005916/1.739, allocations: 2.237 MB / 1.254 GB, free: 28.48 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01101/1.75, allocations: 3.467 MB / 1.257 GB, free: 28.46 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004966/1.755, allocations: 1.603 MB / 1.259 GB, free: 28.45 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0014/1.756, allocations: 129.8 kB / 1.259 GB, free: 28.45 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009353/1.766, allocations: 2.206 MB / 1.261 GB, free: 28.45 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002456/1.768, allocations: 0.8231 MB / 1.262 GB, free: 28.45 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002728/1.771, allocations: 0.6291 MB / 1.263 GB, free: 28.42 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.007858/1.779, allocations: 3.62 MB / 1.266 GB, free: 28.14 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.779, allocations: 0 / 1.266 GB, free: 28.14 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.296e-06/1.779, allocations: 0.6875 kB / 1.266 GB, free: 28.14 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002039/1.779, allocations: 4 kB / 1.266 GB, free: 28.14 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01094/1.79, allocations: 3 MB / 1.269 GB, free: 26.59 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/1.79, allocations: 8.938 kB / 1.269 GB, free: 26.59 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001542/1.791, allocations: 304.8 kB / 1.269 GB, free: 26.54 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0112/1.803, allocations: 1.584 MB / 1.271 GB, free: 26.3 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006079/1.809, allocations: 1.904 MB / 1.273 GB, free: 25.81 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001521/1.81, allocations: 435.1 kB / 1.273 GB, free: 25.78 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009993/1.811, allocations: 229.3 kB / 1.274 GB, free: 25.77 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006794/1.818, allocations: 3.065 MB / 1.277 GB, free: 25.4 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.954e-05/1.818, allocations: 7.828 kB / 1.277 GB, free: 25.4 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002812/1.819, allocations: 90.94 kB / 1.277 GB, free: 25.4 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-05/1.819, allocations: 88.89 kB / 1.277 GB, free: 25.39 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007301/1.826, allocations: 3.206 MB / 1.28 GB, free: 25.31 MB / 1.014 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02594/1.852, allocations: 14.28 MB / 1.294 GB, free: 17.66 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003865/1.856, allocations: 1.712 MB / 1.295 GB, free: 17.59 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004719/1.856, allocations: 154.5 kB / 1.296 GB, free: 17.49 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/1.856, allocations: 49.28 kB / 1.296 GB, free: 17.45 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002227/1.859, allocations: 197 kB / 1.296 GB, free: 17.36 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 8.777e-06/1.859, allocations: 0 / 1.296 GB, free: 17.36 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.006396/1.865, allocations: 2.413 MB / 1.298 GB, free: 17.15 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/1.865, allocations: 66.08 kB / 1.298 GB, free: 17.09 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005486/1.871, allocations: 2.532 MB / 1.301 GB, free: 16.82 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0005373/1.871, allocations: 62.98 kB / 1.301 GB, free: 16.79 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001246/1.872, allocations: 1.265 MB / 1.302 GB, free: 16.33 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005626/1.873, allocations: 389.2 kB / 1.302 GB, free: 16.09 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/1.873, allocations: 34.09 kB / 1.302 GB, free: 16.09 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000242/1.874, allocations: 374.3 kB / 1.303 GB, free: 15.78 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002731/1.876, allocations: 0.9812 MB / 1.304 GB, free: 15.75 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/1.879, allocations: 1.611 MB / 1.305 GB, free: 15.01 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002906/1.882, allocations: 1.194 MB / 1.306 GB, free: 14.89 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/1.882, allocations: 2.844 kB / 1.306 GB, free: 14.89 MB / 1.014 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006845/1.889, allocations: 2.859 MB / 1.309 GB, free: 14.57 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.002392/1.892, allocations: 5.585 MB / 1.315 GB, free: 8.633 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/1.892, allocations: 15.81 kB / 1.315 GB, free: 8.633 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.682e-05/1.892, allocations: 21.59 kB / 1.315 GB, free: 8.633 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00309/1.895, allocations: 0.5729 MB / 1.315 GB, free: 8.617 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/1.896, allocations: 2.395 MB / 1.318 GB, free: 6.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004769/1.901, allocations: 442.5 kB / 1.318 GB, free: 6.219 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/1.902, allocations: 89.69 kB / 1.318 GB, free: 6.219 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/1.902, allocations: 5.875 kB / 1.318 GB, free: 6.219 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006295/1.908, allocations: 2.607 MB / 1.321 GB, free: 6.07 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.821e-05/1.908, allocations: 19.59 kB / 1.321 GB, free: 6.066 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.684e-05/1.908, allocations: 22.88 kB / 1.321 GB, free: 6.066 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/1.91, allocations: 0.5255 MB / 1.321 GB, free: 6.055 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.611e-05/1.911, allocations: 33.09 kB / 1.321 GB, free: 6.055 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003908/1.914, allocations: 372.7 kB / 1.322 GB, free: 6.012 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/1.915, allocations: 88.75 kB / 1.322 GB, free: 6.012 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001977/1.917, allocations: 0.6277 MB / 1.322 GB, free: 21.81 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007667/1.917, allocations: 258.7 kB / 1.323 GB, free: 21.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/1.922, allocations: 1.882 MB / 1.324 GB, free: 21.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/1.922, allocations: 10.53 kB / 1.324 GB, free: 21.55 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/1.922, allocations: 4 kB / 1.324 GB, free: 21.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/1.922, allocations: 11.36 kB / 1.324 GB, free: 21.54 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/1.933, allocations: 4.543 MB / 1.329 GB, free: 20.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/1.933, allocations: 5.281 kB / 1.329 GB, free: 20.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.934, allocations: 309 kB / 1.329 GB, free: 20.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-05/1.934, allocations: 10.56 kB / 1.329 GB, free: 20.94 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/1.935, allocations: 27.89 kB / 1.329 GB, free: 20.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/1.936, allocations: 2.37 MB / 1.332 GB, free: 18.6 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/1.936, allocations: 8.594 kB / 1.332 GB, free: 18.6 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005214/1.941, allocations: 2.509 MB / 1.334 GB, free: 17.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002367/1.944, allocations: 0.5409 MB / 1.335 GB, free: 17.18 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001246/1.945, allocations: 26.92 kB / 1.335 GB, free: 17.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003635/1.949, allocations: 286.9 kB / 1.335 GB, free: 17.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/1.949, allocations: 90.03 kB / 1.335 GB, free: 17.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000233/1.949, allocations: 63.72 kB / 1.335 GB, free: 17.13 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.004383/1.953, allocations: 1.75 MB / 1.337 GB, free: 16.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 6.71e-07/1.954, allocations: 0 / 1.337 GB, free: 16.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.007189/1.961, allocations: 1.304 MB / 1.338 GB, free: 16.85 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007008/1.968, allocations: 4.764 MB / 1.343 GB, free: 13.78 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.009153/1.977, allocations: 3.663 MB / 1.346 GB, free: 13.44 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.396e-05/1.977, allocations: 0 / 1.346 GB, free: 13.44 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001962/1.979, allocations: 0.8247 MB / 1.347 GB, free: 13.42 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007425/1.986, allocations: 1.223 MB / 1.348 GB, free: 13.31 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/2.007, allocations: 15.99 MB / 1.364 GB, free: 184 kB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00225/2.01, allocations: 1.746 MB / 1.366 GB, free: 15.15 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.005285/2.015, allocations: 0.7861 MB / 1.366 GB, free: 14.78 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001864/2.017, allocations: 1.012 MB / 1.367 GB, free: 14.68 MB / 1.045 GB Notification: Performance of SimCode: time 1.132e-06/2.017, allocations: 0 / 1.367 GB, free: 14.68 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/2.139, allocations: 66.11 MB / 1.432 GB, free: 5.34 MB / 1.092 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/2.139, allocations: 260 kB / 1.432 GB, free: 4.984 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.715/5.855, allocations: 3.938 kB / 1.432 GB, free: 4.98 MB / 1.092 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat does not exist to compare? outputFormat=mat