Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.628/2.628, allocations: 287.3 MB / 302.3 MB, free: 8.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001573, allocations: 175.7 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.4 MB / 0.6295 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 92.14 kB / 0.7428 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 15.25 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2318, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 1.127/1.359, allocations: 265.4 MB / 1.237 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.05722/1.416, allocations: 26.9 MB / 1.264 GB, free: 5.027 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004216/1.42, allocations: 79.44 kB / 1.264 GB, free: 4.949 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.008145/1.429, allocations: 1.668 MB / 1.265 GB, free: 3.273 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.01987/1.448, allocations: 4.541 MB / 1.27 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.01214/1.461, allocations: 2.609 MB / 1.272 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.011/1.472, allocations: 3.91 MB / 1.276 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006066/1.478, allocations: 2.246 MB / 1.278 GB, free: 5.941 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01578/1.494, allocations: 3.466 MB / 1.282 GB, free: 2.465 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006657/1.5, allocations: 1.584 MB / 1.283 GB, free: 0.875 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 0.001204/1.502, allocations: 132 kB / 1.283 GB, free: 0.7461 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009421/1.511, allocations: 2.208 MB / 1.286 GB, free: 14.54 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.002143/1.513, allocations: 0.8139 MB / 1.286 GB, free: 13.72 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.001809/1.515, allocations: 0.6329 MB / 1.287 GB, free: 13.08 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.008597/1.524, allocations: 3.612 MB / 1.291 GB, free: 9.457 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/1.524, allocations: 0 / 1.291 GB, free: 9.457 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.925e-06/1.524, allocations: 0 / 1.291 GB, free: 9.457 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0001567/1.524, allocations: 0 / 1.291 GB, free: 9.457 MB / 0.823 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.01098/1.535, allocations: 2.996 MB / 1.293 GB, free: 6.379 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/1.535, allocations: 12.03 kB / 1.293 GB, free: 6.367 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009816/1.536, allocations: 299.6 kB / 1.294 GB, free: 6.062 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01798/1.554, allocations: 1.581 MB / 1.295 GB, free: 4.477 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007082/1.561, allocations: 1.907 MB / 1.297 GB, free: 2.492 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002536/1.564, allocations: 428.2 kB / 1.298 GB, free: 2.07 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/1.565, allocations: 220 kB / 1.298 GB, free: 1.855 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01727/1.582, allocations: 3.074 MB / 1.301 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/1.583, allocations: 7.938 kB / 1.301 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009116/1.583, allocations: 84 kB / 1.301 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002347/1.584, allocations: 96 kB / 1.301 GB, free: 14.46 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02258/1.606, allocations: 3.209 MB / 1.304 GB, free: 11.23 MB / 0.8386 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.06029/1.667, allocations: 14.3 MB / 1.318 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00784/1.675, allocations: 1.699 MB / 1.32 GB, free: 10.12 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000795/1.675, allocations: 159 kB / 1.32 GB, free: 9.953 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.905e-05/1.676, allocations: 51.56 kB / 1.32 GB, free: 9.895 MB / 0.8542 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002069/1.678, allocations: 210 kB / 1.32 GB, free: 9.688 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=110): time 9.268e-06/1.678, allocations: 0 / 1.32 GB, free: 9.688 MB / 0.8542 GB Notification: Performance of matching and sorting (n=110): time 0.01151/1.689, allocations: 2.41 MB / 1.322 GB, free: 7.27 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/1.689, allocations: 64.36 kB / 1.323 GB, free: 7.191 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007343/1.697, allocations: 2.533 MB / 1.325 GB, free: 4.641 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0004563/1.697, allocations: 61.7 kB / 1.325 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001704/1.699, allocations: 1.268 MB / 1.326 GB, free: 3.289 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.000696/1.7, allocations: 386.5 kB / 1.327 GB, free: 2.906 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002696/1.7, allocations: 36 kB / 1.327 GB, free: 2.871 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002279/1.7, allocations: 373.9 kB / 1.327 GB, free: 2.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005031/1.705, allocations: 0.9954 MB / 1.328 GB, free: 1.504 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/1.711, allocations: 1.626 MB / 1.33 GB, free: 15.61 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005705/1.717, allocations: 1.212 MB / 1.331 GB, free: 14.38 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/1.717, allocations: 4 kB / 1.331 GB, free: 14.38 MB / 0.8698 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01297/1.73, allocations: 2.875 MB / 1.334 GB, free: 11.48 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.002848/1.733, allocations: 5.777 MB / 1.339 GB, free: 5.176 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-05/1.733, allocations: 12 kB / 1.339 GB, free: 5.164 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.24e-05/1.733, allocations: 24 kB / 1.339 GB, free: 5.141 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006099/1.739, allocations: 0.589 MB / 1.34 GB, free: 4.551 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/1.741, allocations: 2.391 MB / 1.342 GB, free: 2.066 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00698/1.748, allocations: 447.5 kB / 1.343 GB, free: 1.629 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000601/1.749, allocations: 91.95 kB / 1.343 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.749, allocations: 5.25 kB / 1.343 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01194/1.761, allocations: 2.642 MB / 1.345 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-05/1.761, allocations: 16 kB / 1.345 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.118e-05/1.761, allocations: 24 kB / 1.345 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005146/1.766, allocations: 0.5423 MB / 1.346 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.276e-05/1.766, allocations: 31.81 kB / 1.346 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005927/1.772, allocations: 383.3 kB / 1.346 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005799/1.773, allocations: 87.97 kB / 1.346 GB, free: 13.8 MB / 0.8855 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 (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 (214): * Single equations (assignments): 208 * 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.001928/1.775, allocations: 0.6332 MB / 1.347 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000785/1.776, allocations: 256.8 kB / 1.347 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007909/1.784, allocations: 1.874 MB / 1.349 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/1.784, allocations: 15.98 kB / 1.349 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/1.784, allocations: 0 / 1.349 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/1.784, allocations: 3.984 kB / 1.349 GB, free: 11 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01568/1.799, allocations: 4.52 MB / 1.353 GB, free: 6.332 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.8, allocations: 8 kB / 1.353 GB, free: 6.324 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/1.803, allocations: 327.9 kB / 1.354 GB, free: 6.004 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.527e-05/1.803, allocations: 8 kB / 1.354 GB, free: 5.996 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002204/1.803, allocations: 31.98 kB / 1.354 GB, free: 5.965 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/1.805, allocations: 2.371 MB / 1.356 GB, free: 3.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/1.805, allocations: 4 kB / 1.356 GB, free: 3.496 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008064/1.813, allocations: 2.51 MB / 1.359 GB, free: 0.6836 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/1.815, allocations: 0.5367 MB / 1.359 GB, free: 128 kB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008266/1.816, allocations: 27.94 kB / 1.359 GB, free: 100 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005242/1.821, allocations: 280.8 kB / 1.359 GB, free: 15.82 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/1.822, allocations: 84.8 kB / 1.36 GB, free: 15.74 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003282/1.822, allocations: 59.95 kB / 1.36 GB, free: 15.68 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.006967/1.829, allocations: 1.751 MB / 1.361 GB, free: 13.93 MB / 0.9011 GB Notification: Performance of sort global known variables: time 7.21e-07/1.829, allocations: 0 / 1.361 GB, free: 13.93 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00644/1.835, allocations: 1.302 MB / 1.363 GB, free: 12.62 MB / 0.9011 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.01564/1.851, allocations: 4.756 MB / 1.367 GB, free: 7.688 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02652/1.878, allocations: 3.706 MB / 1.371 GB, free: 3.938 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.905e-05/1.878, allocations: 0 / 1.371 GB, free: 3.938 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.006138/1.884, allocations: 0.8273 MB / 1.372 GB, free: 3.117 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01735/1.901, allocations: 1.189 MB / 1.373 GB, free: 1.941 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03306/1.934, allocations: 16.33 MB / 1.389 GB, free: 0.8711 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/1.937, allocations: 1.751 MB / 1.39 GB, free: 15.07 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.006822/1.944, allocations: 0.7896 MB / 1.391 GB, free: 14.28 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002877/1.947, allocations: 1.015 MB / 1.392 GB, free: 13.26 MB / 0.9323 GB Notification: Performance of SimCode: time 4.328e-06/1.947, allocations: 0 / 1.392 GB, free: 13.26 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8368/2.784, allocations: 65.57 MB / 1.456 GB, free: 361.7 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002936/2.784, allocations: 258.9 kB / 1.456 GB, free: 361.3 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.533/8.317, allocations: 0 / 1.456 GB, free: 361.3 MB / 0.9636 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1)