Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 387.1 MB / 399.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 176.2 kB / 492.3 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008784/0.0008783, allocations: 91.89 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.601e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2911, allocations: 142.4 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.424/5.715, allocations: 2.217 GB / 3.429 GB, free: 84.17 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/5.715, allocations: 96.17 kB / 3.429 GB, free: 84.08 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 4.253/9.968, allocations: 1.06 GB / 4.49 GB, free: 190.5 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.196e-06/9.968, allocations: 0 / 4.49 GB, free: 190.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004346/9.969, allocations: 72.69 kB / 4.49 GB, free: 190.5 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.009579/9.978, allocations: 2.806 MB / 4.493 GB, free: 189.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/9.978, allocations: 14.86 kB / 4.493 GB, free: 189.3 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001055/9.979, allocations: 272.9 kB / 4.493 GB, free: 189.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007361/9.987, allocations: 1.021 MB / 4.494 GB, free: 189.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006892/9.994, allocations: 2.089 MB / 4.496 GB, free: 188.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003627/9.994, allocations: 218.3 kB / 4.496 GB, free: 188.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008604/9.995, allocations: 192.7 kB / 4.496 GB, free: 188.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006433/10, allocations: 2.171 MB / 4.499 GB, free: 188.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-05/10, allocations: 6.984 kB / 4.499 GB, free: 188.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005009/10, allocations: 80.7 kB / 4.499 GB, free: 188.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.63e-05/10, allocations: 71.94 kB / 4.499 GB, free: 188.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004464/10.01, allocations: 2.28 MB / 4.501 GB, free: 188.5 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.01689/10.02, allocations: 8.742 MB / 4.509 GB, free: 185.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006045/10.03, allocations: 2.058 MB / 4.511 GB, free: 185.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/10.03, allocations: 0.8427 MB / 4.512 GB, free: 185.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008435/10.03, allocations: 0.8816 MB / 4.513 GB, free: 184.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001906/10.03, allocations: 1.051 MB / 4.514 GB, free: 184.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=159): time 6.382e-06/10.03, allocations: 0 / 4.514 GB, free: 184.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=159): time 0.004779/10.04, allocations: 1.79 MB / 4.516 GB, free: 184.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/10.04, allocations: 305.4 kB / 4.516 GB, free: 183.9 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005273/10.04, allocations: 1.657 MB / 4.518 GB, free: 183.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0006052/10.04, allocations: 71.66 kB / 4.518 GB, free: 183.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001365/10.05, allocations: 1.039 MB / 4.519 GB, free: 183.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009468/10.05, allocations: 0.5237 MB / 4.519 GB, free: 183 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/10.05, allocations: 29.81 kB / 4.519 GB, free: 183 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001684/10.05, allocations: 362.8 kB / 4.52 GB, free: 182.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/10.05, allocations: 0.6322 MB / 4.52 GB, free: 182.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/10.05, allocations: 0.981 MB / 4.521 GB, free: 182.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/10.05, allocations: 0.7484 MB / 4.522 GB, free: 182.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/10.05, allocations: 3.781 kB / 4.522 GB, free: 182.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004366/10.06, allocations: 1.917 MB / 4.524 GB, free: 182.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000288/10.06, allocations: 1.066 MB / 4.525 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/10.06, allocations: 0 / 4.525 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006095/10.06, allocations: 91.92 kB / 4.525 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002172/10.06, allocations: 445.6 kB / 4.526 GB, free: 180.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/10.06, allocations: 2.125 MB / 4.528 GB, free: 179 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/10.06, allocations: 337 kB / 4.528 GB, free: 179 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/10.06, allocations: 77.66 kB / 4.528 GB, free: 179 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/10.06, allocations: 6.062 kB / 4.528 GB, free: 179 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003377/10.07, allocations: 1.702 MB / 4.53 GB, free: 178.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/10.07, allocations: 3.25 kB / 4.53 GB, free: 178.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005193/10.07, allocations: 86.34 kB / 4.53 GB, free: 178.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001945/10.07, allocations: 438.4 kB / 4.53 GB, free: 178.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/10.07, allocations: 1.53 MB / 4.532 GB, free: 177.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/10.08, allocations: 336.8 kB / 4.532 GB, free: 177.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/10.08, allocations: 75.16 kB / 4.532 GB, free: 177.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005878/10.08, allocations: 199.1 kB / 4.532 GB, free: 177.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008893/10.08, allocations: 240.6 kB / 4.532 GB, free: 177.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004971/10.08, allocations: 2.216 MB / 4.535 GB, free: 177.1 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/10.08, allocations: 26.16 kB / 4.535 GB, free: 177.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/10.08, allocations: 3.281 kB / 4.535 GB, free: 177.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003051/10.09, allocations: 1.963 MB / 4.537 GB, free: 176.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/10.1, allocations: 5.108 MB / 4.542 GB, free: 175.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/10.1, allocations: 3.875 kB / 4.542 GB, free: 175.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/10.1, allocations: 446.1 kB / 4.542 GB, free: 175.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005135/10.1, allocations: 89.77 kB / 4.542 GB, free: 175.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/10.1, allocations: 59.02 kB / 4.542 GB, free: 175.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/10.1, allocations: 2.157 MB / 4.544 GB, free: 173.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/10.1, allocations: 5.438 kB / 4.544 GB, free: 173.9 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/10.11, allocations: 3.501 MB / 4.548 GB, free: 173.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002043/10.11, allocations: 0.7035 MB / 4.548 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009238/10.11, allocations: 37.62 kB / 4.548 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002999/10.11, allocations: 262.6 kB / 4.549 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/10.11, allocations: 135.9 kB / 4.549 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/10.11, allocations: 83.17 kB / 4.549 GB, free: 172.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003137/10.12, allocations: 1.302 MB / 4.55 GB, free: 172.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 6.01e-07/10.12, allocations: 0 / 4.55 GB, free: 172.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.006969/10.12, allocations: 1.521 MB / 4.552 GB, free: 172.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (chi.vol1.dynBal.medium.Xi[1],chi.vol1.dynBal.U,chi.vol1.dynBal.m,chi.vol2.dynBal.U) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext,chi.on) * Number of discrete states: 3 (pulse.count,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01229/10.14, allocations: 7.403 MB / 4.559 GB, free: 169.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006065/10.14, allocations: 2.951 MB / 4.562 GB, free: 169.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/10.14, allocations: 4.094 kB / 4.562 GB, free: 169.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002022/10.14, allocations: 1.073 MB / 4.563 GB, free: 169 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006652/10.15, allocations: 1.092 MB / 4.564 GB, free: 169 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/10.16, allocations: 4.371 MB / 4.568 GB, free: 167.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/10.17, allocations: 1.721 MB / 4.57 GB, free: 167.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.006222/10.17, allocations: 1.008 MB / 4.571 GB, free: 167 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001765/10.17, allocations: 0.9983 MB / 4.572 GB, free: 167 MB / 1.167 GB Notification: Performance of SimCode: time 1.303e-06/10.17, allocations: 2.078 kB / 4.572 GB, free: 167 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1738/10.35, allocations: 101.6 MB / 4.671 GB, free: 137.1 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001968/10.35, allocations: 232.6 kB / 4.671 GB, free: 136.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.424/16.77, allocations: 0 / 4.671 GB, free: 136.8 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled_fmu --startTime=1.70208e+07 --stopTime=1.7064e+07 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricEIR_AirCooled.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_AirCooled_res.mat does not exist to compare? outputFormat=mat