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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 86.72 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.001543/0.001543, 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.387/1.387, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.516/2.516, allocations: 409.4 MB / 0.684 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004729, allocations: 11.94 kB / 0.8378 GB, free: 6.555 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7376/0.7381, allocations: 146.8 MB / 0.9811 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05906/0.7972, allocations: 55.91 MB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01861/0.8158, allocations: 12.4 MB / 1.048 GB, free: 1.832 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004781/0.8207, allocations: 63.56 kB / 1.048 GB, free: 1.77 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003071/0.8238, allocations: 0.7143 MB / 1.049 GB, free: 1.051 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006878/0.8307, allocations: 1.834 MB / 1.05 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004128/0.8348, allocations: 1.181 MB / 1.052 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006914/0.8418, allocations: 4.785 MB / 1.056 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002032/0.8438, allocations: 0.9911 MB / 1.057 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.847, allocations: 1.287 MB / 1.058 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00216/0.8492, allocations: 1.104 MB / 1.06 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0004294/0.8497, allocations: 60 kB / 1.06 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00339/0.8531, allocations: 1.037 MB / 1.061 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0005979/0.8537, allocations: 326.6 kB / 1.061 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0007112/0.8544, allocations: 364.8 kB / 1.061 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.8573, allocations: 1.999 MB / 1.063 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.8574, allocations: 4 kB / 1.063 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.947e-06/0.8574, allocations: 0 / 1.063 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.594e-05/0.8575, allocations: 3.938 kB / 1.063 GB, free: 2.035 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.003875/0.8613, allocations: 1.938 MB / 1.065 GB, free: 32 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.8614, allocations: 8.031 kB / 1.065 GB, free: 24 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003069/0.8617, allocations: 143.8 kB / 1.065 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003363/0.8651, allocations: 0.5832 MB / 1.066 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.8684, allocations: 1.357 MB / 1.067 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.8686, allocations: 149.4 kB / 1.067 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002836/0.8689, allocations: 100 kB / 1.067 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003456/0.8724, allocations: 1.358 MB / 1.069 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/0.8724, allocations: 7.938 kB / 1.069 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.8726, allocations: 43.94 kB / 1.069 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/0.8726, allocations: 24 kB / 1.069 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003655/0.8763, allocations: 1.401 MB / 1.07 GB, free: 10.76 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.008526/0.8848, allocations: 5.509 MB / 1.076 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.8873, allocations: 1.094 MB / 1.077 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.889, allocations: 0.6393 MB / 1.077 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009222/0.8899, allocations: 1.232 MB / 1.078 GB, free: 1.605 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001687/0.8916, allocations: 0.7018 MB / 1.079 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=70): time 3.787e-06/0.8917, allocations: 0 / 1.079 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=70): time 0.004823/0.8965, allocations: 1.797 MB / 1.081 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.8966, allocations: 63.97 kB / 1.081 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/0.8994, allocations: 1.313 MB / 1.082 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001627/0.8996, allocations: 45.7 kB / 1.082 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008057/0.9004, allocations: 0.6739 MB / 1.083 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.9007, allocations: 244.4 kB / 1.083 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.9008, allocations: 16 kB / 1.083 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.901, allocations: 345.9 kB / 1.083 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.9024, allocations: 0.5484 MB / 1.084 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.9041, allocations: 0.7873 MB / 1.085 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.9057, allocations: 0.6135 MB / 1.085 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.9057, allocations: 0 / 1.085 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003883/0.9096, allocations: 1.481 MB / 1.087 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000182/0.9098, allocations: 216.2 kB / 1.087 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.9098, allocations: 4 kB / 1.087 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.9099, allocations: 4 kB / 1.087 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.9111, allocations: 271.7 kB / 1.087 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.9111, allocations: 11.94 kB / 1.087 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.913, allocations: 247 kB / 1.088 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.9132, allocations: 39.98 kB / 1.088 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.9132, allocations: 4 kB / 1.088 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003371/0.9166, allocations: 1.325 MB / 1.089 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.9166, allocations: 8.062 kB / 1.089 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.9167, allocations: 11.98 kB / 1.089 GB, free: 6.637 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.9179, allocations: 271.6 kB / 1.089 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.794e-05/0.9179, allocations: 8 kB / 1.089 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.9197, allocations: 235.1 kB / 1.089 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.9198, allocations: 39.91 kB / 1.089 GB, free: 6.094 MB / 0.8419 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 (chi.tru.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 (97): * Single equations (assignments): 96 * 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.0008745/0.9207, allocations: 423.9 kB / 1.09 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.9211, allocations: 154.1 kB / 1.09 GB, free: 5.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.9249, allocations: 1.536 MB / 1.091 GB, free: 3.965 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.925, allocations: 8 kB / 1.091 GB, free: 3.957 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.925, allocations: 0 / 1.091 GB, free: 3.957 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003004/0.928, allocations: 1.304 MB / 1.093 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00721/0.9352, allocations: 3.305 MB / 1.096 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.9353, allocations: 4.562 kB / 1.096 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.9364, allocations: 239.7 kB / 1.096 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.545e-05/0.9364, allocations: 15.88 kB / 1.096 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-05/0.9365, allocations: 27.97 kB / 1.096 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.9365, allocations: 12 kB / 1.096 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.9365, allocations: 4 kB / 1.096 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005163/0.9417, allocations: 2.341 MB / 1.099 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008329/0.9426, allocations: 386.7 kB / 1.099 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000354/0.9429, allocations: 23.98 kB / 1.099 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.9445, allocations: 175.7 kB / 1.099 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.9447, allocations: 76.36 kB / 1.099 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.9448, allocations: 35.97 kB / 1.099 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001288/0.9461, allocations: 0.9376 MB / 1.1 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9461, allocations: 0 / 1.1 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002094/0.9482, allocations: 0.7993 MB / 1.101 GB, free: 10.01 MB / 0.8575 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 (74): * Single equations (assignments): 66 * 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.006277/0.9545, allocations: 3.274 MB / 1.104 GB, free: 6.664 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005016/0.9595, allocations: 2.109 MB / 1.106 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.9596, allocations: 192 / 1.106 GB, free: 4.531 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.9614, allocations: 0.7263 MB / 1.107 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003881/0.9653, allocations: 0.7519 MB / 1.108 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02342/0.9887, allocations: 10.18 MB / 1.118 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008995/0.9897, allocations: 1.253 MB / 1.119 GB, free: 7.184 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002143/0.9918, allocations: 371.5 kB / 1.119 GB, free: 6.816 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009/0.9927, allocations: 0.6047 MB / 1.12 GB, free: 6.211 MB / 0.8731 GB Notification: Performance of SimCode: time 7.92e-07/0.9927, allocations: 0 / 1.12 GB, free: 6.211 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07453/1.067, allocations: 43.17 MB / 1.162 GB, free: 11.59 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/1.068, allocations: 241.6 kB / 1.162 GB, free: 11.35 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.129/4.196, allocations: 0 / 1.162 GB, free: 11.35 MB / 0.92 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) Environment - environmentSimulation: 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