Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.17/1.17, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 173.3 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.016/1.016, allocations: 205.1 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000921/0.000921, allocations: 95.31 kB / 0.671 GB, free: 4.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.951e-06/5.981e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1361, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8383/0.9744, allocations: 409.9 MB / 1.285 GB, free: 289.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.9747, allocations: 89.17 kB / 1.285 GB, free: 289.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.226/2.201, allocations: 0.6056 GB / 1.89 GB, free: 38.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001016/2.201, allocations: 43.83 kB / 1.891 GB, free: 38.06 MB / 0.8698 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.002379/2.204, allocations: 1.761 MB / 1.892 GB, free: 36.25 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/2.204, allocations: 12.03 kB / 1.892 GB, free: 36.24 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003294/2.207, allocations: 0.6808 MB / 1.893 GB, free: 35.56 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/2.209, allocations: 1.633 MB / 1.895 GB, free: 33.91 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/2.209, allocations: 113.4 kB / 1.895 GB, free: 33.79 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/2.21, allocations: 63.91 kB / 1.895 GB, free: 33.72 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00131/2.211, allocations: 0.9294 MB / 1.896 GB, free: 32.79 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/2.212, allocations: 0.9831 MB / 1.897 GB, free: 31.77 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/2.212, allocations: 3.938 kB / 1.897 GB, free: 31.77 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.565e-05/2.212, allocations: 0 / 1.897 GB, free: 31.77 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/2.212, allocations: 28 kB / 1.897 GB, free: 31.74 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005286/2.218, allocations: 5.629 MB / 1.902 GB, free: 25.84 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008301/2.218, allocations: 0.6345 MB / 1.903 GB, free: 25.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/2.219, allocations: 438.6 kB / 1.903 GB, free: 24.77 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005289/2.22, allocations: 1.25 MB / 1.904 GB, free: 23.25 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005755/2.22, allocations: 0.5066 MB / 1.905 GB, free: 22.72 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 1.633e-06/2.22, allocations: 0 / 1.905 GB, free: 22.72 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.001485/2.222, allocations: 0.8887 MB / 1.906 GB, free: 21.82 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/2.222, allocations: 115.5 kB / 1.906 GB, free: 21.69 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009351/2.223, allocations: 1.006 MB / 1.907 GB, free: 20.67 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.057e-05/2.223, allocations: 25.7 kB / 1.907 GB, free: 20.64 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/2.223, allocations: 441.6 kB / 1.907 GB, free: 20.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/2.223, allocations: 224.7 kB / 1.907 GB, free: 19.98 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/2.223, allocations: 0 / 1.907 GB, free: 19.98 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.422e-05/2.223, allocations: 333.9 kB / 1.908 GB, free: 19.65 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/2.224, allocations: 349.5 kB / 1.908 GB, free: 19.31 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/2.224, allocations: 0.5944 MB / 1.909 GB, free: 18.61 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007472/2.225, allocations: 417.8 kB / 1.909 GB, free: 18.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/2.225, allocations: 0 / 1.909 GB, free: 18.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001526/2.226, allocations: 1.002 MB / 1.91 GB, free: 17.19 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/2.227, allocations: 1.163 MB / 1.911 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/2.227, allocations: 4.625 kB / 1.911 GB, free: 15.96 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/2.227, allocations: 8 kB / 1.911 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/2.228, allocations: 283.7 kB / 1.911 GB, free: 15.67 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/2.228, allocations: 8 kB / 1.911 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/2.229, allocations: 223 kB / 1.912 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.752e-05/2.229, allocations: 58.47 kB / 1.912 GB, free: 15.39 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.88e-06/2.229, allocations: 4 kB / 1.912 GB, free: 15.39 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00138/2.231, allocations: 0.8182 MB / 1.913 GB, free: 14.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/2.231, allocations: 4 kB / 1.913 GB, free: 14.56 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/2.231, allocations: 8.375 kB / 1.913 GB, free: 14.55 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/2.232, allocations: 287.6 kB / 1.913 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/2.232, allocations: 11.98 kB / 1.913 GB, free: 14.26 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/2.233, allocations: 207.3 kB / 1.913 GB, free: 14.06 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.484e-05/2.234, allocations: 47.97 kB / 1.913 GB, free: 14.01 MB / 0.8698 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.0001493/2.234, allocations: 140.2 kB / 1.913 GB, free: 13.87 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/2.234, allocations: 142.3 kB / 1.913 GB, free: 13.73 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/2.236, allocations: 1.102 MB / 1.914 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/2.236, allocations: 12 kB / 1.914 GB, free: 12.61 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/2.236, allocations: 0 / 1.914 GB, free: 12.61 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001268/2.237, allocations: 0.9086 MB / 1.915 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003595/2.241, allocations: 2.934 MB / 1.918 GB, free: 8.605 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/2.241, allocations: 8 kB / 1.918 GB, free: 8.598 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/2.242, allocations: 252.2 kB / 1.918 GB, free: 8.352 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/2.242, allocations: 11.98 kB / 1.918 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-05/2.242, allocations: 23.83 kB / 1.918 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/2.242, allocations: 11.94 kB / 1.919 GB, free: 8.305 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/2.242, allocations: 8 kB / 1.919 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002174/2.244, allocations: 2.02 MB / 1.92 GB, free: 6.059 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004516/2.245, allocations: 460.1 kB / 1.921 GB, free: 5.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/2.245, allocations: 11.91 kB / 1.921 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/2.246, allocations: 175.8 kB / 1.921 GB, free: 5.387 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/2.246, allocations: 68.27 kB / 1.921 GB, free: 5.32 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.149e-05/2.246, allocations: 51.95 kB / 1.921 GB, free: 5.27 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0006932/2.247, allocations: 0.757 MB / 1.922 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00159/2.249, allocations: 0.8223 MB / 1.923 GB, free: 3.688 MB / 0.8698 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.0009658/2.25, allocations: 0.7991 MB / 1.924 GB, free: 2.957 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001549/2.251, allocations: 1.368 MB / 1.925 GB, free: 1.574 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/2.251, allocations: 0 / 1.925 GB, free: 1.574 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006613/2.252, allocations: 0.5016 MB / 1.925 GB, free: 1.074 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/2.254, allocations: 0.6174 MB / 1.926 GB, free: 484 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2239/2.478, allocations: 2.027 MB / 1.928 GB, free: 223.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000931/2.479, allocations: 1.416 MB / 1.929 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of SimCode: time 5.41e-07/2.479, allocations: 6.25 kB / 1.929 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of Templates: time 0.04073/2.52, allocations: 35.36 MB / 1.964 GB, free: 221.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches