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.001367/0.001367, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001687/0.001687, allocations: 168.7 kB / 15.95 MB, free: 204 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.52/1.52, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.513/2.513, allocations: 409.4 MB / 0.684 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 11.94 kB / 0.8378 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8154/0.8158, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.05562/0.8715, allocations: 55.93 MB / 1.036 GB, free: 14.17 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01844/0.89, allocations: 12.35 MB / 1.048 GB, free: 1.797 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00284/0.8929, allocations: 63.56 kB / 1.048 GB, free: 1.734 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.8954, allocations: 0.7181 MB / 1.049 GB, free: 1.012 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006603/0.902, allocations: 1.829 MB / 1.05 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003978/0.906, allocations: 1.172 MB / 1.052 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.007012/0.913, allocations: 4.793 MB / 1.056 GB, free: 9.207 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002485/0.9155, allocations: 0.9874 MB / 1.057 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.9189, allocations: 1.291 MB / 1.058 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002669/0.9216, allocations: 1.108 MB / 1.059 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0005846/0.9223, allocations: 63.94 kB / 1.06 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/0.926, allocations: 1.01 MB / 1.061 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0008269/0.9268, allocations: 318.6 kB / 1.061 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0009474/0.9278, allocations: 364.8 kB / 1.061 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003199/0.931, allocations: 1.972 MB / 1.063 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.931, allocations: 0 / 1.063 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.913e-06/0.931, allocations: 0 / 1.063 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.881e-05/0.9311, allocations: 4 kB / 1.063 GB, free: 2.059 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.004014/0.9351, allocations: 1.894 MB / 1.065 GB, free: 100 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.9352, allocations: 12.03 kB / 1.065 GB, free: 88 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002358/0.9354, allocations: 147.9 kB / 1.065 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00326/0.9387, allocations: 0.5831 MB / 1.066 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003111/0.9418, allocations: 1.354 MB / 1.067 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.942, allocations: 145.4 kB / 1.067 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.9422, allocations: 104 kB / 1.067 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002914/0.9452, allocations: 1.358 MB / 1.069 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.9452, allocations: 11.86 kB / 1.069 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.9453, allocations: 43.97 kB / 1.069 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.247e-05/0.9454, allocations: 28 kB / 1.069 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/0.9488, allocations: 1.397 MB / 1.07 GB, free: 10.82 MB / 0.8262 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.007635/0.9564, allocations: 5.481 MB / 1.075 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005024/0.9615, allocations: 1.488 MB / 1.077 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.9631, allocations: 0.6159 MB / 1.077 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009348/0.964, allocations: 1.236 MB / 1.079 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001708/0.9657, allocations: 0.6873 MB / 1.079 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=71): time 3.537e-06/0.9657, allocations: 0 / 1.079 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=71): time 0.01884/0.9846, allocations: 3.784 MB / 1.083 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.9847, allocations: 60.06 kB / 1.083 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/0.9869, allocations: 1.267 MB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002434/0.9871, allocations: 45.7 kB / 1.084 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006652/0.9878, allocations: 0.6581 MB / 1.085 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003096/0.9881, allocations: 244.4 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.409e-05/0.9882, allocations: 16 kB / 1.085 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.9884, allocations: 342 kB / 1.086 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/0.9899, allocations: 0.5367 MB / 1.086 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.9915, allocations: 0.7805 MB / 1.087 GB, free: 8.742 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.993, allocations: 0.5941 MB / 1.087 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.993, allocations: 0 / 1.087 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00879/1.002, allocations: 2.161 MB / 1.09 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002009/1.002, allocations: 216.1 kB / 1.09 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/1.002, allocations: 4 kB / 1.09 GB, free: 5.695 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/1.004, allocations: 496.5 kB / 1.09 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/1.004, allocations: 203.7 kB / 1.09 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/1.018, allocations: 3.81 MB / 1.094 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/1.02, allocations: 243.1 kB / 1.094 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/1.021, allocations: 40.17 kB / 1.094 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/1.021, allocations: 4.781 kB / 1.094 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008461/1.029, allocations: 2.012 MB / 1.096 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/1.029, allocations: 4 kB / 1.096 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/1.031, allocations: 0.4967 MB / 1.097 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/1.031, allocations: 199.8 kB / 1.097 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01383/1.045, allocations: 3.798 MB / 1.101 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/1.047, allocations: 231.1 kB / 1.101 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/1.048, allocations: 39.98 kB / 1.101 GB, free: 9.859 MB / 0.8575 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.00091/1.048, allocations: 416.8 kB / 1.101 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004586/1.049, allocations: 146.2 kB / 1.102 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008785/1.058, allocations: 2.235 MB / 1.104 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.293e-05/1.058, allocations: 8 kB / 1.104 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.058, allocations: 0 / 1.104 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00814/1.066, allocations: 1.996 MB / 1.106 GB, free: 5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/1.078, allocations: 3.972 MB / 1.11 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-05/1.078, allocations: 11.97 kB / 1.11 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000783/1.079, allocations: 167.8 kB / 1.11 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/1.081, allocations: 492.5 kB / 1.11 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/1.081, allocations: 27.94 kB / 1.11 GB, free: 192 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/1.095, allocations: 3.791 MB / 1.114 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/1.095, allocations: 11.92 kB / 1.114 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/1.105, allocations: 3.014 MB / 1.117 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/1.106, allocations: 374.8 kB / 1.117 GB, free: 8.766 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004578/1.107, allocations: 19.98 kB / 1.117 GB, free: 8.746 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.109, allocations: 179.7 kB / 1.117 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/1.109, allocations: 84.3 kB / 1.118 GB, free: 8.488 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/1.109, allocations: 39.95 kB / 1.118 GB, free: 8.449 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001734/1.111, allocations: 0.9012 MB / 1.118 GB, free: 7.551 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.111, allocations: 0 / 1.118 GB, free: 7.551 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.003074/1.114, allocations: 0.8423 MB / 1.119 GB, free: 6.707 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.01219/1.126, allocations: 3.931 MB / 1.123 GB, free: 2.703 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00812/1.134, allocations: 2.594 MB / 1.126 GB, free: 64 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.134, allocations: 8.062 kB / 1.126 GB, free: 56 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.003052/1.137, allocations: 0.967 MB / 1.127 GB, free: 15.08 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004548/1.142, allocations: 0.7476 MB / 1.127 GB, free: 14.34 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02875/1.171, allocations: 10.58 MB / 1.138 GB, free: 3.336 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000983/1.172, allocations: 1.237 MB / 1.139 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001693/1.173, allocations: 343.5 kB / 1.139 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008696/1.174, allocations: 0.5852 MB / 1.14 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of SimCode: time 6.71e-07/1.174, allocations: 0 / 1.14 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09686/1.271, allocations: 52.24 MB / 1.191 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003522/1.272, allocations: 269.8 kB / 1.191 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.594/4.866, allocations: 4 kB / 1.191 GB, free: 13.12 MB / 0.9512 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