Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_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.0007333/0.0007333, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004379/0.004379, allocations: 171.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.166/1.166, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.534/1.534, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0004396/0.0004397, allocations: 17.33 kB / 0.6744 GB, free: 25.78 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1665, allocations: 116.3 MB / 0.788 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.6001/0.7666, allocations: 321.9 MB / 1.102 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03163/0.7983, allocations: 29.7 MB / 1.131 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002872/0.8012, allocations: 87.44 kB / 1.131 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004306/0.8055, allocations: 1.761 MB / 1.133 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.8155, allocations: 4.662 MB / 1.138 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.007279/0.8228, allocations: 3.358 MB / 1.141 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.009295/0.8321, allocations: 9.606 MB / 1.15 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00333/0.8355, allocations: 2.355 MB / 1.153 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01058/0.8461, allocations: 4.678 MB / 1.157 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004166/0.8503, allocations: 2.382 MB / 1.16 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005851/0.8509, allocations: 140 kB / 1.16 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00885/0.8597, allocations: 5.58 MB / 1.165 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.8609, allocations: 0.8953 MB / 1.166 GB, free: 8.574 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002261/0.8631, allocations: 1.568 MB / 1.168 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008112/0.8713, allocations: 5.798 MB / 1.173 GB, free: 1.176 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.8713, allocations: 0 / 1.173 GB, free: 1.176 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.723e-06/0.8713, allocations: 0 / 1.173 GB, free: 1.176 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001083/0.8714, allocations: 4 kB / 1.173 GB, free: 1.172 MB / 0.8731 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.006417/0.8778, allocations: 3.055 MB / 1.176 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.8779, allocations: 12.03 kB / 1.176 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006/0.8785, allocations: 295.6 kB / 1.176 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008912/0.8874, allocations: 1.577 MB / 1.178 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.8907, allocations: 1.991 MB / 1.18 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001224/0.8919, allocations: 436.2 kB / 1.18 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/0.8922, allocations: 220 kB / 1.181 GB, free: 9.422 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005311/0.8976, allocations: 3.113 MB / 1.184 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/0.8976, allocations: 0 / 1.184 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.8978, allocations: 92 kB / 1.184 GB, free: 6.082 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.483e-05/0.8979, allocations: 84 kB / 1.184 GB, free: 5.996 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006451/0.9044, allocations: 3.228 MB / 1.187 GB, free: 2.75 MB / 0.8887 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.01941/0.9238, allocations: 14.3 MB / 1.201 GB, free: 3.348 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003624/0.9274, allocations: 1.7 MB / 1.203 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.9291, allocations: 0.799 MB / 1.203 GB, free: 0.8398 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/0.9296, allocations: 336.2 kB / 1.204 GB, free: 468 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.83e-05/0.9297, allocations: 47.56 kB / 1.204 GB, free: 408 kB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008837/0.9306, allocations: 198.1 kB / 1.204 GB, free: 208 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=110): time 2.515e-06/0.9306, allocations: 0 / 1.204 GB, free: 208 kB / 0.9044 GB Notification: Performance of matching and sorting (n=110): time 0.005309/0.936, allocations: 2.418 MB / 1.206 GB, free: 13.78 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.936, allocations: 64.41 kB / 1.206 GB, free: 13.7 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/0.9393, allocations: 2.556 MB / 1.209 GB, free: 11.13 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.9394, allocations: 65.58 kB / 1.209 GB, free: 11.06 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009915/0.9404, allocations: 1.272 MB / 1.21 GB, free: 9.773 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.9407, allocations: 394.4 kB / 1.211 GB, free: 9.383 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/0.941, allocations: 137.6 kB / 1.211 GB, free: 9.242 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 7.822e-05/0.9411, allocations: 309 kB / 1.211 GB, free: 8.938 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002402/0.9435, allocations: 1.003 MB / 1.212 GB, free: 7.934 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002965/0.9464, allocations: 1.645 MB / 1.214 GB, free: 6.016 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004616/0.9511, allocations: 2.335 MB / 1.216 GB, free: 3.48 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.9511, allocations: 8 kB / 1.216 GB, free: 3.473 MB / 0.92 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006038/0.9571, allocations: 2.894 MB / 1.219 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004005/0.9575, allocations: 0.5509 MB / 1.219 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.9576, allocations: 12 kB / 1.219 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.9576, allocations: 24 kB / 1.219 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/0.9604, allocations: 0.5968 MB / 1.22 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.9616, allocations: 2.387 MB / 1.222 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00318/0.9648, allocations: 443.6 kB / 1.223 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.965, allocations: 95.95 kB / 1.223 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.632e-06/0.965, allocations: 4 kB / 1.223 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005762/0.9708, allocations: 2.658 MB / 1.225 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.9708, allocations: 12 kB / 1.225 GB, free: 9.473 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.9708, allocations: 24 kB / 1.225 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/0.9731, allocations: 0.5387 MB / 1.226 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.9731, allocations: 27.94 kB / 1.226 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002765/0.9759, allocations: 387.2 kB / 1.226 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.976, allocations: 95.95 kB / 1.226 GB, free: 8.41 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcRev.i2_w,masExcRev.i1_w,masExcFor.i2_w,masExcFor.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.9771, allocations: 0.6177 MB / 1.227 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/0.9774, allocations: 256.8 kB / 1.227 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003969/0.9814, allocations: 1.886 MB / 1.229 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.9814, allocations: 11.98 kB / 1.229 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.9814, allocations: 3.938 kB / 1.229 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.9814, allocations: 7.984 kB / 1.229 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007391/0.9888, allocations: 4.52 MB / 1.233 GB, free: 0.9414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.9888, allocations: 11.94 kB / 1.233 GB, free: 0.9297 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/0.9904, allocations: 316.3 kB / 1.234 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.9904, allocations: 8 kB / 1.234 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.642e-05/0.9905, allocations: 35.98 kB / 1.234 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.9916, allocations: 2.368 MB / 1.236 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.9916, allocations: 7.938 kB / 1.236 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003612/0.9952, allocations: 2.014 MB / 1.238 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009411/0.9961, allocations: 0.5328 MB / 1.239 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.9964, allocations: 31.98 kB / 1.239 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002246/0.9987, allocations: 291.4 kB / 1.239 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.9988, allocations: 84.72 kB / 1.239 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.9989, allocations: 63.95 kB / 1.239 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002602/1.002, allocations: 1.766 MB / 1.241 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/1.002, allocations: 0 / 1.241 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002903/1.004, allocations: 1.302 MB / 1.242 GB, free: 7.91 MB / 0.9512 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 (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00441/1.009, allocations: 2.844 MB / 1.245 GB, free: 4.984 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00805/1.017, allocations: 3.718 MB / 1.248 GB, free: 1.227 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/1.017, allocations: 11.92 kB / 1.248 GB, free: 1.215 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001819/1.019, allocations: 0.8305 MB / 1.249 GB, free: 392 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007504/1.026, allocations: 1.296 MB / 1.251 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0368/1.063, allocations: 22.7 MB / 1.273 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/1.064, allocations: 1.691 MB / 1.274 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003249/1.068, allocations: 0.7896 MB / 1.275 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/1.069, allocations: 1.034 MB / 1.276 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of SimCode: time 4.9e-07/1.069, allocations: 0 / 1.276 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.216/5.285, allocations: 71.49 MB / 1.346 GB, free: 339.6 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/5.285, allocations: 277.6 kB / 1.346 GB, free: 339.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.178/9.463, allocations: 4 kB / 1.346 GB, free: 339.3 MB / 0.9825 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)