Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.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.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="Buildings_9_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="Buildings_9_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness",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.001256/0.001256, 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.00143/0.00143, 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.44/1.44, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.431/2.431, allocations: 390.3 MB / 0.6653 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003715, allocations: 16 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8375/0.8379, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.224/1.062, allocations: 176.7 MB / 1.126 GB, free: 15.09 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01263/1.075, allocations: 6.99 MB / 1.133 GB, free: 8.086 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/1.076, allocations: 31.75 kB / 1.133 GB, free: 8.055 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002579/1.079, allocations: 0.7194 MB / 1.134 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007879/1.087, allocations: 2.244 MB / 1.136 GB, free: 5.082 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003507/1.091, allocations: 1.073 MB / 1.137 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.004377/1.095, allocations: 1.638 MB / 1.138 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/1.097, allocations: 0.8275 MB / 1.139 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005252/1.102, allocations: 1.312 MB / 1.141 GB, free: 228 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/1.104, allocations: 0.6225 MB / 1.141 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000333/1.105, allocations: 48 kB / 1.141 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004256/1.109, allocations: 1.326 MB / 1.143 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004952/1.11, allocations: 318.9 kB / 1.143 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006028/1.11, allocations: 265.1 kB / 1.143 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002732/1.113, allocations: 1.609 MB / 1.145 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/1.113, allocations: 0 / 1.145 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.023e-06/1.113, allocations: 0 / 1.145 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.592e-05/1.113, allocations: 0 / 1.145 GB, free: 12.03 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.004337/1.117, allocations: 1.583 MB / 1.146 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.117, allocations: 12.03 kB / 1.146 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002342/1.118, allocations: 131.1 kB / 1.146 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003168/1.121, allocations: 0.5877 MB / 1.147 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/1.123, allocations: 0.929 MB / 1.148 GB, free: 8.684 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006262/1.124, allocations: 193.9 kB / 1.148 GB, free: 8.492 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/1.124, allocations: 83.98 kB / 1.148 GB, free: 8.41 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/1.127, allocations: 1.26 MB / 1.149 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/1.127, allocations: 3.953 kB / 1.149 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/1.127, allocations: 35.94 kB / 1.149 GB, free: 7.105 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.633e-05/1.127, allocations: 45.98 kB / 1.149 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003907/1.131, allocations: 1.612 MB / 1.151 GB, free: 5.445 MB / 0.9044 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.008613/1.139, allocations: 4.073 MB / 1.155 GB, free: 1.094 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/1.142, allocations: 1.072 MB / 1.156 GB, free: 12 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007875/1.143, allocations: 294.9 kB / 1.156 GB, free: 15.69 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/1.143, allocations: 43.22 kB / 1.156 GB, free: 15.64 MB / 0.92 GB Notification: Performance of pre-optimization done (n=76): time 3.286e-06/1.143, allocations: 0 / 1.156 GB, free: 15.64 MB / 0.92 GB Notification: Performance of matching and sorting (n=76): time 0.005073/1.148, allocations: 1.914 MB / 1.158 GB, free: 13.71 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/1.148, allocations: 60.06 kB / 1.158 GB, free: 13.64 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/1.149, allocations: 0.8076 MB / 1.159 GB, free: 12.81 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.45e-05/1.149, allocations: 49.62 kB / 1.159 GB, free: 12.76 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/1.149, allocations: 444.5 kB / 1.16 GB, free: 12.32 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/1.15, allocations: 260.2 kB / 1.16 GB, free: 12.06 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/1.15, allocations: 12 kB / 1.16 GB, free: 12.05 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.15, allocations: 337.9 kB / 1.16 GB, free: 11.71 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/1.151, allocations: 0.5602 MB / 1.161 GB, free: 11.15 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001525/1.153, allocations: 0.6832 MB / 1.161 GB, free: 10.43 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/1.154, allocations: 0.6139 MB / 1.162 GB, free: 9.812 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.154, allocations: 0 / 1.162 GB, free: 9.812 MB / 0.92 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003274/1.158, allocations: 1.411 MB / 1.163 GB, free: 8.387 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002322/1.158, allocations: 481.3 kB / 1.164 GB, free: 7.879 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.158, allocations: 0 / 1.164 GB, free: 7.879 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/1.158, allocations: 4 kB / 1.164 GB, free: 7.875 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/1.159, allocations: 279.6 kB / 1.164 GB, free: 7.602 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006964/1.16, allocations: 1.191 MB / 1.165 GB, free: 6.363 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/1.161, allocations: 187.4 kB / 1.165 GB, free: 6.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/1.162, allocations: 39.97 kB / 1.165 GB, free: 6.141 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/1.162, allocations: 4 kB / 1.165 GB, free: 6.137 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003075/1.165, allocations: 1.301 MB / 1.167 GB, free: 4.828 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/1.165, allocations: 8.062 kB / 1.167 GB, free: 4.82 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/1.165, allocations: 4 kB / 1.167 GB, free: 4.816 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.166, allocations: 243.7 kB / 1.167 GB, free: 4.578 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/1.166, allocations: 4 kB / 1.167 GB, free: 4.574 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/1.167, allocations: 199.2 kB / 1.167 GB, free: 4.379 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.153e-05/1.167, allocations: 39.94 kB / 1.167 GB, free: 4.34 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i1_w,hex.i2_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006251/1.168, allocations: 372.9 kB / 1.168 GB, free: 3.965 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/1.168, allocations: 102.8 kB / 1.168 GB, free: 3.863 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/1.171, allocations: 1.437 MB / 1.169 GB, free: 2.414 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/1.171, allocations: 8 kB / 1.169 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/1.171, allocations: 0 / 1.169 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/1.171, allocations: 3.984 kB / 1.169 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005618/1.177, allocations: 2.989 MB / 1.172 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/1.177, allocations: 4 kB / 1.172 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/1.178, allocations: 255.8 kB / 1.172 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/1.178, allocations: 8 kB / 1.172 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-05/1.178, allocations: 27.97 kB / 1.172 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006303/1.179, allocations: 1.199 MB / 1.173 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.179, allocations: 4 kB / 1.173 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003507/1.183, allocations: 1.753 MB / 1.175 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007372/1.183, allocations: 311.6 kB / 1.175 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/1.184, allocations: 20 kB / 1.175 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.185, allocations: 167.7 kB / 1.176 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/1.185, allocations: 60.39 kB / 1.176 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/1.185, allocations: 35.97 kB / 1.176 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.00091/1.186, allocations: 0.5661 MB / 1.176 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/1.186, allocations: 0 / 1.176 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001781/1.188, allocations: 0.5302 MB / 1.177 GB, free: 10.13 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004911/1.193, allocations: 3.636 MB / 1.18 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005586/1.198, allocations: 2.123 MB / 1.182 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.198, allocations: 0 / 1.182 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001826/1.2, allocations: 0.7146 MB / 1.183 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003143/1.203, allocations: 0.5214 MB / 1.184 GB, free: 2.984 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007244/1.211, allocations: 3.609 MB / 1.187 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008641/1.212, allocations: 1.118 MB / 1.188 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001899/1.214, allocations: 391.5 kB / 1.189 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007064/1.214, allocations: 395.3 kB / 1.189 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of SimCode: time 1.793e-06/1.214, allocations: 0 / 1.189 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05857/1.273, allocations: 28.47 MB / 1.217 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/1.273, allocations: 262.5 kB / 1.217 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.472/3.745, allocations: 0 / 1.217 GB, free: 0.9805 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.fmu > Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat does not exist to compare? outputFormat=mat