Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.511/2.511, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001514/0.001513, allocations: 176.8 kB / 487.4 MB, free: 5.02 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.564/1.564, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 103.7 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.885e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.284, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.208/1.492, allocations: 429 MB / 1.625 GB, free: 9.246 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/1.492, allocations: 88.2 kB / 1.625 GB, free: 9.203 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 2.799/4.291, allocations: 0.6341 GB / 2.259 GB, free: 249.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.625e-06/4.291, allocations: 0 / 2.259 GB, free: 249.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003947/4.291, allocations: 49.67 kB / 2.259 GB, free: 249.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.006984/4.298, allocations: 1.778 MB / 2.261 GB, free: 248.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.115e-05/4.298, allocations: 10.53 kB / 2.261 GB, free: 248.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004181/4.302, allocations: 0.6305 MB / 2.262 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00367/4.306, allocations: 1.673 MB / 2.263 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/4.306, allocations: 108 kB / 2.263 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/4.306, allocations: 62.06 kB / 2.263 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001547/4.308, allocations: 0.9223 MB / 2.264 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/4.31, allocations: 0.9989 MB / 2.265 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/4.31, allocations: 0 / 2.265 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.02e-05/4.31, allocations: 3.906 kB / 2.265 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/4.31, allocations: 25.97 kB / 2.265 GB, free: 248.2 MB / 1.151 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.006354/4.316, allocations: 5.255 MB / 2.27 GB, free: 245.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/4.317, allocations: 0.6743 MB / 2.271 GB, free: 245.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005711/4.318, allocations: 441.9 kB / 2.272 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007352/4.318, allocations: 1.24 MB / 2.273 GB, free: 244.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007193/4.319, allocations: 0.527 MB / 2.273 GB, free: 244.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=67): time 2.144e-06/4.319, allocations: 0 / 2.273 GB, free: 244.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=67): time 0.00197/4.321, allocations: 0.9141 MB / 2.274 GB, free: 244.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/4.321, allocations: 107.2 kB / 2.274 GB, free: 244.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/4.323, allocations: 1.047 MB / 2.275 GB, free: 244 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-05/4.323, allocations: 29.55 kB / 2.275 GB, free: 243.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/4.323, allocations: 0.6949 MB / 2.276 GB, free: 243.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000216/4.323, allocations: 219.4 kB / 2.276 GB, free: 243.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/4.324, allocations: 0 / 2.276 GB, free: 243.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.852e-05/4.324, allocations: 333.4 kB / 2.276 GB, free: 243.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/4.324, allocations: 357.5 kB / 2.277 GB, free: 243.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006945/4.325, allocations: 0.58 MB / 2.277 GB, free: 243.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009509/4.326, allocations: 433.6 kB / 2.278 GB, free: 243.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/4.326, allocations: 0 / 2.278 GB, free: 243.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001844/4.328, allocations: 1.024 MB / 2.279 GB, free: 242.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003029/4.328, allocations: 1.195 MB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/4.328, allocations: 2.875 kB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/4.328, allocations: 7.875 kB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/4.329, allocations: 280.8 kB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/4.329, allocations: 6.906 kB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/4.331, allocations: 205.5 kB / 2.28 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/4.331, allocations: 60.33 kB / 2.281 GB, free: 241.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/4.331, allocations: 5.656 kB / 2.281 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001627/4.333, allocations: 0.8537 MB / 2.281 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/4.333, allocations: 3.812 kB / 2.281 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.338e-06/4.333, allocations: 5.531 kB / 2.281 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/4.334, allocations: 274.1 kB / 2.282 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/4.334, allocations: 9.094 kB / 2.282 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/4.336, allocations: 198.4 kB / 2.282 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.511e-05/4.336, allocations: 51.78 kB / 2.282 GB, free: 241.7 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002582/4.336, allocations: 125.9 kB / 2.282 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001645/4.338, allocations: 0.9075 MB / 2.283 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/4.338, allocations: 146.5 kB / 2.283 GB, free: 241.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/4.34, allocations: 1.093 MB / 2.284 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/4.34, allocations: 14.25 kB / 2.284 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/4.34, allocations: 0 / 2.284 GB, free: 241.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001387/4.341, allocations: 0.9284 MB / 2.285 GB, free: 241.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004511/4.346, allocations: 2.985 MB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/4.346, allocations: 6.562 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/4.347, allocations: 238.6 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.289e-05/4.347, allocations: 7.562 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.661e-05/4.347, allocations: 33.22 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/4.347, allocations: 9.719 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/4.347, allocations: 6.938 kB / 2.288 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/4.35, allocations: 2.048 MB / 2.29 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000718/4.35, allocations: 475.7 kB / 2.291 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/4.351, allocations: 10.42 kB / 2.291 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/4.352, allocations: 165 kB / 2.291 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/4.352, allocations: 72.5 kB / 2.291 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.055e-05/4.352, allocations: 48.55 kB / 2.291 GB, free: 239.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001052/4.353, allocations: 0.7939 MB / 2.292 GB, free: 239.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.583e-06/4.353, allocations: 0 / 2.292 GB, free: 239.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002305/4.356, allocations: 0.843 MB / 2.293 GB, free: 239 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004226/4.36, allocations: 4.433 MB / 2.297 GB, free: 236.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002073/4.362, allocations: 1.429 MB / 2.298 GB, free: 236.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/4.362, allocations: 0 / 2.298 GB, free: 236.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006805/4.363, allocations: 0.4947 MB / 2.299 GB, free: 236.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003214/4.366, allocations: 0.6298 MB / 2.299 GB, free: 236.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/4.37, allocations: 2.344 MB / 2.302 GB, free: 235.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006559/4.371, allocations: 1.283 MB / 2.303 GB, free: 234.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002133/4.373, allocations: 460.8 kB / 2.303 GB, free: 234.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/4.374, allocations: 0.5694 MB / 2.304 GB, free: 234.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.353e-06/4.374, allocations: 3.25 kB / 2.304 GB, free: 234.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07781/4.452, allocations: 42.17 MB / 2.345 GB, free: 233.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/4.452, allocations: 181.8 kB / 2.345 GB, free: 233.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.464/7.916, allocations: 0 / 2.345 GB, free: 233.4 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat does not exist to compare? outputFormat=mat