Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",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.44/2.44, allocations: 390.5 MB / 398 MB, free: 10.89 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.0012/0.0012, allocations: 183.9 kB / 491.2 MB, free: 1.539 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.532/1.532, allocations: 221.5 MB / 0.7868 GB, free: 13.25 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.0009122/0.0009121, allocations: 91.88 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.562e-05/2.564e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2631, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.213/1.476, allocations: 431 MB / 1.633 GB, free: 15.73 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/1.476, allocations: 87.48 kB / 1.633 GB, free: 15.68 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.796/4.273, allocations: 0.634 GB / 2.267 GB, free: 249.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.825e-06/4.273, allocations: 0 / 2.267 GB, free: 249.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003469/4.273, allocations: 46.02 kB / 2.267 GB, free: 249.3 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.006103/4.279, allocations: 1.772 MB / 2.269 GB, free: 248.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/4.279, allocations: 12.86 kB / 2.269 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004293/4.283, allocations: 0.565 MB / 2.27 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004594/4.288, allocations: 1.658 MB / 2.271 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/4.288, allocations: 113.5 kB / 2.271 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004005/4.289, allocations: 60.22 kB / 2.271 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002049/4.291, allocations: 0.9571 MB / 2.272 GB, free: 248.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/4.293, allocations: 1.021 MB / 2.273 GB, free: 248 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/4.293, allocations: 4 kB / 2.273 GB, free: 248 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.785e-05/4.293, allocations: 0 / 2.273 GB, free: 248 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.154e-05/4.293, allocations: 29.39 kB / 2.273 GB, free: 248 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.007976/4.301, allocations: 5.33 MB / 2.279 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004304/4.305, allocations: 1.095 MB / 2.28 GB, free: 245.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000689/4.306, allocations: 446.9 kB / 2.28 GB, free: 245.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008511/4.307, allocations: 1.169 MB / 2.281 GB, free: 244.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008121/4.308, allocations: 0.5402 MB / 2.282 GB, free: 244.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 3.547e-06/4.308, allocations: 0 / 2.282 GB, free: 244.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.009666/4.317, allocations: 1.699 MB / 2.283 GB, free: 244 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/4.317, allocations: 117.3 kB / 2.284 GB, free: 243.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001879/4.319, allocations: 1.001 MB / 2.284 GB, free: 243.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002329/4.319, allocations: 29.61 kB / 2.285 GB, free: 243.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007316/4.32, allocations: 0.6896 MB / 2.285 GB, free: 243.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003029/4.32, allocations: 217.6 kB / 2.285 GB, free: 243.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/4.321, allocations: 0 / 2.285 GB, free: 243.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000135/4.321, allocations: 331.2 kB / 2.286 GB, free: 243.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005485/4.321, allocations: 361.9 kB / 2.286 GB, free: 243.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007409/4.322, allocations: 0.5909 MB / 2.287 GB, free: 242.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/4.323, allocations: 416.5 kB / 2.287 GB, free: 242.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/4.323, allocations: 3.781 kB / 2.287 GB, free: 242.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.009345/4.332, allocations: 1.812 MB / 2.289 GB, free: 242.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003036/4.333, allocations: 1.197 MB / 2.29 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/4.333, allocations: 3.719 kB / 2.29 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008219/4.334, allocations: 491.5 kB / 2.29 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000837/4.334, allocations: 192.9 kB / 2.291 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/4.347, allocations: 3.298 MB / 2.294 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/4.349, allocations: 200.2 kB / 2.294 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003501/4.35, allocations: 49.48 kB / 2.294 GB, free: 240.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/4.35, allocations: 7 kB / 2.294 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00966/4.36, allocations: 1.64 MB / 2.296 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/4.36, allocations: 3.969 kB / 2.296 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007651/4.36, allocations: 496.5 kB / 2.296 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008218/4.361, allocations: 189.4 kB / 2.296 GB, free: 240.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/4.373, allocations: 3.3 MB / 2.3 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002312/4.376, allocations: 194.5 kB / 2.3 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/4.376, allocations: 49.55 kB / 2.3 GB, free: 239 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 (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 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004666/4.377, allocations: 127.4 kB / 2.3 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009923/4.387, allocations: 1.699 MB / 2.302 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/4.387, allocations: 137.8 kB / 2.302 GB, free: 238.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009974/4.397, allocations: 1.871 MB / 2.304 GB, free: 238.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/4.397, allocations: 15.48 kB / 2.304 GB, free: 238.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/4.397, allocations: 0 / 2.304 GB, free: 238.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008979/4.406, allocations: 1.719 MB / 2.305 GB, free: 238.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/4.42, allocations: 3.805 MB / 2.309 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-05/4.42, allocations: 6.5 kB / 2.309 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/4.421, allocations: 156.6 kB / 2.309 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007641/4.421, allocations: 499.7 kB / 2.31 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/4.422, allocations: 28.7 kB / 2.31 GB, free: 237.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/4.435, allocations: 3.398 MB / 2.313 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/4.435, allocations: 11.09 kB / 2.313 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/4.446, allocations: 2.845 MB / 2.316 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/4.448, allocations: 473.4 kB / 2.316 GB, free: 235.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/4.448, allocations: 10.94 kB / 2.316 GB, free: 235.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/4.45, allocations: 155.8 kB / 2.316 GB, free: 235.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/4.45, allocations: 75 kB / 2.316 GB, free: 235.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/4.45, allocations: 52.89 kB / 2.316 GB, free: 235.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001485/4.452, allocations: 0.7618 MB / 2.317 GB, free: 235.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.41e-07/4.452, allocations: 0 / 2.317 GB, free: 235.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004196/4.456, allocations: 0.9286 MB / 2.318 GB, free: 235 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 (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.01312/4.469, allocations: 5.248 MB / 2.323 GB, free: 232.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005635/4.475, allocations: 1.914 MB / 2.325 GB, free: 232.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/4.475, allocations: 0 / 2.325 GB, free: 232.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003246/4.478, allocations: 0.873 MB / 2.326 GB, free: 232 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003992/4.482, allocations: 0.6357 MB / 2.327 GB, free: 232 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007705/4.49, allocations: 2.502 MB / 2.329 GB, free: 231.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000972/4.491, allocations: 1.274 MB / 2.33 GB, free: 230.5 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002313/4.493, allocations: 420 kB / 2.331 GB, free: 230.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007251/4.494, allocations: 0.5512 MB / 2.331 GB, free: 230.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.393e-06/4.494, allocations: 2.938 kB / 2.331 GB, free: 230.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09978/4.594, allocations: 53.81 MB / 2.384 GB, free: 226 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/4.594, allocations: 172.6 kB / 2.384 GB, free: 225.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.074/8.668, allocations: 0 / 2.384 GB, free: 225.8 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat does not exist to compare? outputFormat=mat