Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",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.001904/0.001904, allocations: 99.31 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.002667/0.002667, 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 2.487/2.487, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.922/4.922, allocations: 409.2 MB / 0.6838 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006484/0.0006484, allocations: 8 kB / 0.8375 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.377/1.378, allocations: 146.8 MB / 0.9809 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.0884/1.466, allocations: 50.76 MB / 1.03 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03679/1.503, allocations: 11.34 MB / 1.042 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005765/1.509, allocations: 59.56 kB / 1.042 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.008278/1.517, allocations: 0.9213 MB / 1.042 GB, free: 6.984 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01915/1.537, allocations: 2.289 MB / 1.045 GB, free: 4.691 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.01246/1.549, allocations: 1.728 MB / 1.046 GB, free: 2.992 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01446/1.564, allocations: 2.582 MB / 1.049 GB, free: 416 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005198/1.569, allocations: 0.9993 MB / 1.05 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007817/1.577, allocations: 1.175 MB / 1.051 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004021/1.581, allocations: 0.8049 MB / 1.052 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0009899/1.582, allocations: 60 kB / 1.052 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007391/1.59, allocations: 0.9165 MB / 1.053 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.00148/1.591, allocations: 302.8 kB / 1.053 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.002115/1.593, allocations: 360.8 kB / 1.053 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.007118/1.6, allocations: 1.894 MB / 1.055 GB, free: 9.867 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.6, allocations: 0 / 1.055 GB, free: 9.867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.412e-06/1.6, allocations: 4 kB / 1.055 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001506/1.601, allocations: 0 / 1.055 GB, free: 9.863 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.009742/1.61, allocations: 1.886 MB / 1.057 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 8.361e-05/1.611, allocations: 12.03 kB / 1.057 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007507/1.611, allocations: 147.8 kB / 1.057 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007419/1.619, allocations: 0.5793 MB / 1.058 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006279/1.625, allocations: 1.263 MB / 1.059 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004507/1.626, allocations: 149.4 kB / 1.059 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005618/1.626, allocations: 96 kB / 1.059 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007175/1.633, allocations: 1.354 MB / 1.061 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-05/1.634, allocations: 7.859 kB / 1.061 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/1.634, allocations: 48 kB / 1.061 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.965e-05/1.634, allocations: 24 kB / 1.061 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006797/1.641, allocations: 1.39 MB / 1.062 GB, free: 2.742 MB / 0.8106 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.01498/1.656, allocations: 5.489 MB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008868/1.665, allocations: 1.513 MB / 1.069 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001594/1.666, allocations: 1.239 MB / 1.07 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0034/1.67, allocations: 0.6796 MB / 1.071 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=71): time 9.488e-06/1.67, allocations: 4 kB / 1.071 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=71): time 0.03582/1.706, allocations: 3.785 MB / 1.074 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/1.706, allocations: 64.02 kB / 1.075 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003941/1.71, allocations: 1.271 MB / 1.076 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004404/1.71, allocations: 45.7 kB / 1.076 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001456/1.712, allocations: 0.6581 MB / 1.076 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000817/1.713, allocations: 244.5 kB / 1.077 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.27e-05/1.713, allocations: 16 kB / 1.077 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002459/1.713, allocations: 337.9 kB / 1.077 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/1.716, allocations: 0.5367 MB / 1.078 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003796/1.72, allocations: 0.7726 MB / 1.078 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003348/1.723, allocations: 0.5941 MB / 1.079 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/1.723, allocations: 3.938 kB / 1.079 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01959/1.743, allocations: 2.169 MB / 1.081 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.00124/1.744, allocations: 1.281 MB / 1.082 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/1.744, allocations: 4 kB / 1.082 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003339/1.748, allocations: 496.4 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/1.75, allocations: 215.6 kB / 1.083 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02493/1.775, allocations: 3.978 MB / 1.087 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/1.779, allocations: 247 kB / 1.087 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004/1.779, allocations: 35.98 kB / 1.087 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/1.779, allocations: 4 kB / 1.087 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01463/1.794, allocations: 2.02 MB / 1.089 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.732e-05/1.794, allocations: 4.312 kB / 1.089 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/1.797, allocations: 0.4887 MB / 1.09 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/1.798, allocations: 211.7 kB / 1.09 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02612/1.825, allocations: 3.966 MB / 1.094 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004002/1.829, allocations: 235.2 kB / 1.094 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/1.829, allocations: 39.97 kB / 1.094 GB, free: 0.8594 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (fal.y,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001749/1.831, allocations: 412.9 kB / 1.094 GB, free: 456 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007843/1.832, allocations: 146.2 kB / 1.094 GB, free: 308 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01558/1.847, allocations: 2.227 MB / 1.097 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001173/1.848, allocations: 12 kB / 1.097 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/1.848, allocations: 0 / 1.097 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01502/1.863, allocations: 1.995 MB / 1.099 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02635/1.889, allocations: 3.971 MB / 1.102 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-05/1.889, allocations: 4 kB / 1.102 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/1.891, allocations: 176.2 kB / 1.103 GB, free: 7.699 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002989/1.894, allocations: 0.4926 MB / 1.103 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/1.894, allocations: 23.98 kB / 1.103 GB, free: 7.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02745/1.922, allocations: 3.971 MB / 1.107 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.561e-05/1.922, allocations: 4 kB / 1.107 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02027/1.942, allocations: 3.286 MB / 1.11 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002498/1.945, allocations: 378.8 kB / 1.111 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008466/1.946, allocations: 20 kB / 1.111 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003101/1.949, allocations: 175.3 kB / 1.111 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003605/1.949, allocations: 84.34 kB / 1.111 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.95, allocations: 43.97 kB / 1.111 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.002828/1.952, allocations: 0.8973 MB / 1.112 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of sort global known variables: time 8.12e-07/1.952, allocations: 4 kB / 1.112 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.006262/1.959, allocations: 0.8578 MB / 1.113 GB, free: 13.07 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02407/1.983, allocations: 5.394 MB / 1.118 GB, free: 7.531 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01257/1.995, allocations: 2.602 MB / 1.12 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.839e-05/1.996, allocations: 4 kB / 1.12 GB, free: 4.879 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.004934/2.001, allocations: 0.975 MB / 1.121 GB, free: 3.891 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007315/2.008, allocations: 0.7437 MB / 1.122 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01919/2.027, allocations: 6.143 MB / 1.128 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002244/2.03, allocations: 1.276 MB / 1.129 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.003773/2.033, allocations: 346.9 kB / 1.13 GB, free: 11.19 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/2.035, allocations: 0.5774 MB / 1.13 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of SimCode: time 3.256e-06/2.035, allocations: 0 / 1.13 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1832/2.219, allocations: 51.68 MB / 1.181 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003935/2.219, allocations: 256.3 kB / 1.181 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.732/8.951, allocations: 4 kB / 1.181 GB, free: 7.16 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat does not exist to compare? outputFormat=mat