Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.46/2.46, allocations: 393.5 MB / 408.4 MB, free: 10.83 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.001903/0.001903, allocations: 191.9 kB / 0.4901 GB, free: 2.098 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.751/1.751, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.0009642/0.0009641, allocations: 104.2 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003733, allocations: 7.406 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.317, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.218/1.535, allocations: 431.7 MB / 1.651 GB, free: 13.84 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/1.536, allocations: 95.2 kB / 1.651 GB, free: 13.79 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 2.174/3.71, allocations: 0.64 GB / 2.291 GB, free: 29.16 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.886e-06/3.71, allocations: 0 / 2.291 GB, free: 29.16 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002621/3.71, allocations: 43.98 kB / 2.291 GB, free: 29.11 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.005872/3.716, allocations: 2.113 MB / 2.293 GB, free: 26.94 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/3.716, allocations: 8.031 kB / 2.293 GB, free: 26.93 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005272/3.716, allocations: 151.8 kB / 2.293 GB, free: 26.77 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003773/3.72, allocations: 0.5792 MB / 2.294 GB, free: 26.19 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004467/3.725, allocations: 1.692 MB / 2.295 GB, free: 24.45 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/3.725, allocations: 153.4 kB / 2.296 GB, free: 24.29 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003649/3.725, allocations: 104 kB / 2.296 GB, free: 24.18 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003216/3.729, allocations: 1.358 MB / 2.297 GB, free: 22.79 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/3.729, allocations: 4 kB / 2.297 GB, free: 22.79 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001321/3.729, allocations: 36 kB / 2.297 GB, free: 22.75 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.275e-05/3.729, allocations: 31.94 kB / 2.297 GB, free: 22.72 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003559/3.732, allocations: 1.417 MB / 2.298 GB, free: 21.3 MB / 1.167 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.008231/3.741, allocations: 5.564 MB / 2.304 GB, free: 15.39 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/3.743, allocations: 0.9643 MB / 2.305 GB, free: 14.41 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007506/3.744, allocations: 1.168 MB / 2.306 GB, free: 12.98 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001838/3.746, allocations: 0.7173 MB / 2.307 GB, free: 12.26 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 4.839e-06/3.746, allocations: 4 kB / 2.307 GB, free: 12.25 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.02373/3.77, allocations: 4.035 MB / 2.311 GB, free: 8.184 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/3.77, allocations: 67.95 kB / 2.311 GB, free: 8.105 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/3.772, allocations: 1.204 MB / 2.312 GB, free: 6.895 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003013/3.772, allocations: 41.7 kB / 2.312 GB, free: 6.848 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006515/3.773, allocations: 0.6976 MB / 2.313 GB, free: 6.141 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/3.773, allocations: 232.7 kB / 2.313 GB, free: 5.91 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.563e-05/3.773, allocations: 16 kB / 2.313 GB, free: 5.895 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.221e-05/3.773, allocations: 330 kB / 2.313 GB, free: 5.566 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/3.775, allocations: 0.5641 MB / 2.314 GB, free: 5.004 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/3.777, allocations: 0.8219 MB / 2.315 GB, free: 4.082 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/3.778, allocations: 0.6003 MB / 2.315 GB, free: 3.477 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/3.778, allocations: 0 / 2.315 GB, free: 3.477 MB / 1.167 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.007928/3.786, allocations: 1.973 MB / 2.317 GB, free: 1.484 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003531/3.787, allocations: 1.197 MB / 2.318 GB, free: 180 kB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/3.787, allocations: 0 / 2.318 GB, free: 180 kB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7983/4.585, allocations: 0.7587 MB / 2.319 GB, free: 241.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009488/4.586, allocations: 184.8 kB / 2.319 GB, free: 241.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005007/4.591, allocations: 1.465 MB / 2.321 GB, free: 241.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/4.593, allocations: 228 kB / 2.321 GB, free: 241.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/4.593, allocations: 48.19 kB / 2.321 GB, free: 241.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/4.593, allocations: 5.688 kB / 2.321 GB, free: 241.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007092/4.601, allocations: 1.805 MB / 2.323 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/4.601, allocations: 2 kB / 2.323 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002406/4.603, allocations: 0.752 MB / 2.323 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009205/4.604, allocations: 189.1 kB / 2.323 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/4.609, allocations: 1.458 MB / 2.325 GB, free: 240.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/4.611, allocations: 221.1 kB / 2.325 GB, free: 240.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/4.611, allocations: 48.55 kB / 2.325 GB, free: 240.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($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 (80): * Single equations (assignments): 78 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001018/4.612, allocations: 424.7 kB / 2.326 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/4.613, allocations: 153.4 kB / 2.326 GB, free: 240.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/4.625, allocations: 2.447 MB / 2.328 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.498e-05/4.625, allocations: 11.75 kB / 2.328 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/4.625, allocations: 4.938 kB / 2.328 GB, free: 240.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01304/4.638, allocations: 2.256 MB / 2.33 GB, free: 240 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/4.65, allocations: 3.721 MB / 2.334 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/4.65, allocations: 3.969 kB / 2.334 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007633/4.651, allocations: 162.4 kB / 2.334 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/4.653, allocations: 0.7557 MB / 2.335 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001947/4.654, allocations: 27.61 kB / 2.335 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00561/4.659, allocations: 1.467 MB / 2.336 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/4.659, allocations: 4.281 kB / 2.336 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007594/4.667, allocations: 2.977 MB / 2.339 GB, free: 238 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/4.668, allocations: 498.1 kB / 2.34 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005374/4.669, allocations: 20.67 kB / 2.34 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001682/4.671, allocations: 173.4 kB / 2.34 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/4.671, allocations: 71.08 kB / 2.34 GB, free: 237.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/4.671, allocations: 54.62 kB / 2.34 GB, free: 237.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.00186/4.673, allocations: 0.97 MB / 2.341 GB, free: 237.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.31e-07/4.673, allocations: 0.625 kB / 2.341 GB, free: 237.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003345/4.676, allocations: 0.8804 MB / 2.342 GB, free: 237.6 MB / 1.167 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 (66): * Single equations (assignments): 57 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.008706/4.685, allocations: 5.322 MB / 2.347 GB, free: 235.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.009312/4.694, allocations: 2.564 MB / 2.35 GB, free: 235 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/4.694, allocations: 0 / 2.35 GB, free: 235 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003808/4.698, allocations: 0.9736 MB / 2.35 GB, free: 235 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/4.702, allocations: 0.7529 MB / 2.351 GB, free: 235 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0265/4.728, allocations: 12.86 MB / 2.364 GB, free: 230 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007195/4.729, allocations: 1.286 MB / 2.365 GB, free: 229.3 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001778/4.731, allocations: 345.5 kB / 2.365 GB, free: 229.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007502/4.732, allocations: 0.5968 MB / 2.366 GB, free: 229.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.382e-06/4.732, allocations: 0 / 2.366 GB, free: 229.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09985/4.832, allocations: 52.9 MB / 2.418 GB, free: 227.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/4.832, allocations: 259.8 kB / 2.418 GB, free: 227.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.106/8.938, allocations: 6.672 kB / 2.418 GB, free: 227.2 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat does not exist to compare? outputFormat=mat