Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_latest_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.0008783/0.0008783, allocations: 100.5 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.00091/0.00091, allocations: 177.3 kB / 15.94 MB, free: 228 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.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.517/2.517, allocations: 409.2 MB / 0.6838 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 12 kB / 0.8375 GB, free: 6.578 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8079/0.8083, allocations: 146.8 MB / 0.9809 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.3173/1.126, allocations: 265.4 MB / 1.24 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7008/1.826, allocations: 27.1 MB / 1.266 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005388/1.832, allocations: 78.62 kB / 1.267 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006942/1.839, allocations: 1.664 MB / 1.268 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01593/1.855, allocations: 4.84 MB / 1.273 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009071/1.864, allocations: 2.47 MB / 1.275 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009284/1.873, allocations: 3.93 MB / 1.279 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006494/1.88, allocations: 2.239 MB / 1.281 GB, free: 26.05 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01147/1.891, allocations: 3.469 MB / 1.285 GB, free: 26.04 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004971/1.896, allocations: 1.599 MB / 1.286 GB, free: 26.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001575/1.898, allocations: 131.1 kB / 1.286 GB, free: 26.02 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008744/1.907, allocations: 2.204 MB / 1.289 GB, free: 26.02 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001946/1.909, allocations: 0.8182 MB / 1.289 GB, free: 26.02 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001889/1.911, allocations: 0.6394 MB / 1.29 GB, free: 25.98 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005752/1.916, allocations: 3.621 MB / 1.294 GB, free: 25.71 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/1.916, allocations: 3.062 kB / 1.294 GB, free: 25.71 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.054e-06/1.916, allocations: 0 / 1.294 GB, free: 25.71 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.117e-05/1.916, allocations: 0 / 1.294 GB, free: 25.71 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.006259/1.923, allocations: 2.99 MB / 1.296 GB, free: 24.16 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/1.923, allocations: 13.78 kB / 1.296 GB, free: 24.16 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004796/1.923, allocations: 299.8 kB / 1.297 GB, free: 24.11 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009274/1.933, allocations: 1.586 MB / 1.298 GB, free: 23.87 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005148/1.938, allocations: 1.913 MB / 1.3 GB, free: 23.38 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001267/1.939, allocations: 429 kB / 1.301 GB, free: 23.35 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005996/1.94, allocations: 225.6 kB / 1.301 GB, free: 23.34 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006078/1.946, allocations: 3.066 MB / 1.304 GB, free: 22.97 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.19e-05/1.946, allocations: 5.719 kB / 1.304 GB, free: 22.97 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002819/1.946, allocations: 89.66 kB / 1.304 GB, free: 22.97 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/1.946, allocations: 90.48 kB / 1.304 GB, free: 22.96 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007925/1.954, allocations: 3.21 MB / 1.307 GB, free: 22.88 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.02546/1.98, allocations: 14.28 MB / 1.321 GB, free: 15.22 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/1.983, allocations: 1.703 MB / 1.323 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000422/1.984, allocations: 164.1 kB / 1.323 GB, free: 15.06 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.869e-05/1.984, allocations: 51.97 kB / 1.323 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001375/1.985, allocations: 197 kB / 1.323 GB, free: 14.93 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 6.532e-06/1.985, allocations: 0 / 1.323 GB, free: 14.93 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.006318/1.992, allocations: 2.412 MB / 1.325 GB, free: 14.71 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/1.992, allocations: 61.81 kB / 1.326 GB, free: 14.65 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004066/1.996, allocations: 2.535 MB / 1.328 GB, free: 14.39 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002484/1.996, allocations: 55.55 kB / 1.328 GB, free: 14.36 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008422/1.997, allocations: 1.268 MB / 1.329 GB, free: 13.9 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002953/1.997, allocations: 385.9 kB / 1.33 GB, free: 13.66 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/1.997, allocations: 35.09 kB / 1.33 GB, free: 13.66 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002184/1.998, allocations: 371.4 kB / 1.33 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002465/2, allocations: 0.9867 MB / 1.331 GB, free: 13.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002908/2.003, allocations: 1.607 MB / 1.333 GB, free: 12.59 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/2.006, allocations: 1.191 MB / 1.334 GB, free: 12.46 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/2.006, allocations: 2.625 kB / 1.334 GB, free: 12.46 MB / 1.014 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006196/2.012, allocations: 2.856 MB / 1.337 GB, free: 11.85 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.003111/2.015, allocations: 5.59 MB / 1.342 GB, free: 5.887 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.649e-05/2.015, allocations: 13.75 kB / 1.342 GB, free: 5.887 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.969e-05/2.015, allocations: 24.72 kB / 1.342 GB, free: 5.887 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/2.018, allocations: 0.5865 MB / 1.343 GB, free: 5.754 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/2.02, allocations: 2.38 MB / 1.345 GB, free: 19.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004461/2.024, allocations: 451.1 kB / 1.345 GB, free: 19.24 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/2.025, allocations: 94.52 kB / 1.345 GB, free: 19.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/2.025, allocations: 2.938 kB / 1.345 GB, free: 19.23 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006075/2.031, allocations: 2.602 MB / 1.348 GB, free: 18.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.807e-05/2.031, allocations: 14.59 kB / 1.348 GB, free: 18.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/2.031, allocations: 22.62 kB / 1.348 GB, free: 18.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/2.033, allocations: 0.5245 MB / 1.349 GB, free: 18.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-05/2.033, allocations: 30.98 kB / 1.349 GB, free: 18.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/2.037, allocations: 379.1 kB / 1.349 GB, free: 18.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/2.037, allocations: 90.02 kB / 1.349 GB, free: 18.46 MB / 1.029 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.001495/2.038, allocations: 0.6263 MB / 1.35 GB, free: 18.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00072/2.039, allocations: 264.1 kB / 1.35 GB, free: 18.1 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004363/2.043, allocations: 1.88 MB / 1.352 GB, free: 17.63 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/2.043, allocations: 11.97 kB / 1.352 GB, free: 17.63 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/2.043, allocations: 0 / 1.352 GB, free: 17.63 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/2.044, allocations: 7.969 kB / 1.352 GB, free: 17.62 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/2.052, allocations: 4.536 MB / 1.356 GB, free: 16.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/2.052, allocations: 2.938 kB / 1.356 GB, free: 16.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/2.053, allocations: 311.7 kB / 1.356 GB, free: 16.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.427e-05/2.053, allocations: 14.53 kB / 1.356 GB, free: 16.01 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.836e-05/2.053, allocations: 32.11 kB / 1.357 GB, free: 16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/2.055, allocations: 2.365 MB / 1.359 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/2.055, allocations: 13.62 kB / 1.359 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004326/2.059, allocations: 2.514 MB / 1.361 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/2.06, allocations: 0.5378 MB / 1.362 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003357/2.061, allocations: 35.64 kB / 1.362 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/2.063, allocations: 285.5 kB / 1.362 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/2.063, allocations: 84.97 kB / 1.362 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/2.063, allocations: 62.52 kB / 1.362 GB, free: 11.75 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002941/2.066, allocations: 1.757 MB / 1.364 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 4.21e-07/2.066, allocations: 0 / 1.364 GB, free: 11.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003301/2.07, allocations: 1.294 MB / 1.365 GB, free: 11.18 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.005289/2.075, allocations: 4.764 MB / 1.37 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.008378/2.083, allocations: 3.664 MB / 1.373 GB, free: 6.988 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/2.083, allocations: 2.906 kB / 1.373 GB, free: 6.988 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001928/2.085, allocations: 0.8332 MB / 1.374 GB, free: 6.844 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006238/2.092, allocations: 1.207 MB / 1.375 GB, free: 6.438 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/2.108, allocations: 16 MB / 1.391 GB, free: 8.695 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/2.109, allocations: 1.748 MB / 1.393 GB, free: 7.52 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.003972/2.113, allocations: 0.7843 MB / 1.394 GB, free: 7.137 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/2.115, allocations: 1.016 MB / 1.395 GB, free: 6.879 MB / 1.045 GB Notification: Performance of SimCode: time 7.51e-07/2.115, allocations: 0 / 1.395 GB, free: 6.879 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/2.228, allocations: 66.1 MB / 1.459 GB, free: 5.75 MB / 1.107 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/2.229, allocations: 276.8 kB / 1.459 GB, free: 5.387 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.886/6.115, allocations: 0 / 1.459 GB, free: 5.387 MB / 1.107 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat does not exist to compare? outputFormat=mat