Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,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.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,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.ElectricReformulatedEIR") [: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.188/1.188, allocations: 249.4 MB / 256.7 MB, free: 6.977 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: 185.2 kB / 316 MB, free: 3.555 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9999/0.9999, allocations: 205.2 MB / 0.5667 GB, free: 15.71 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.0007965/0.0007965, allocations: 78.91 kB / 0.671 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.551e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1321, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8155/0.9477, allocations: 409.9 MB / 1.285 GB, free: 325.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.9479, allocations: 84.31 kB / 1.285 GB, free: 325.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.255/2.202, allocations: 0.6062 GB / 1.891 GB, free: 51.01 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001089/2.203, allocations: 43.91 kB / 1.891 GB, free: 50.97 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.002468/2.205, allocations: 1.787 MB / 1.893 GB, free: 49.14 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/2.205, allocations: 8.031 kB / 1.893 GB, free: 49.13 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003245/2.208, allocations: 0.6846 MB / 1.894 GB, free: 48.45 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/2.211, allocations: 1.652 MB / 1.895 GB, free: 46.77 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/2.211, allocations: 109.4 kB / 1.895 GB, free: 46.66 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/2.211, allocations: 60 kB / 1.895 GB, free: 46.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001316/2.212, allocations: 0.9489 MB / 1.896 GB, free: 45.65 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/2.214, allocations: 0.9987 MB / 1.897 GB, free: 44.61 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/2.214, allocations: 7.891 kB / 1.897 GB, free: 44.61 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.942e-05/2.214, allocations: 4 kB / 1.897 GB, free: 44.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/2.214, allocations: 27.94 kB / 1.897 GB, free: 44.57 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/2.219, allocations: 5.68 MB / 1.903 GB, free: 38.62 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009662/2.22, allocations: 0.6668 MB / 1.903 GB, free: 37.95 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005372/2.221, allocations: 450.5 kB / 1.904 GB, free: 37.51 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005406/2.221, allocations: 1.246 MB / 1.905 GB, free: 35.99 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005882/2.222, allocations: 0.5183 MB / 1.906 GB, free: 35.45 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 2.144e-06/2.222, allocations: 0 / 1.906 GB, free: 35.45 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.001653/2.224, allocations: 0.9355 MB / 1.907 GB, free: 34.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/2.224, allocations: 119.4 kB / 1.907 GB, free: 34.36 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009876/2.225, allocations: 1.04 MB / 1.908 GB, free: 33.32 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/2.225, allocations: 29.7 kB / 1.908 GB, free: 33.28 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002161/2.225, allocations: 461.4 kB / 1.908 GB, free: 32.82 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/2.225, allocations: 220.7 kB / 1.908 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.226e-05/2.225, allocations: 0 / 1.908 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.659e-05/2.225, allocations: 330 kB / 1.909 GB, free: 32.28 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/2.226, allocations: 357.5 kB / 1.909 GB, free: 31.93 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005358/2.226, allocations: 0.61 MB / 1.91 GB, free: 31.21 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008374/2.227, allocations: 445.6 kB / 1.91 GB, free: 30.78 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/2.227, allocations: 4 kB / 1.91 GB, free: 30.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001619/2.229, allocations: 1.045 MB / 1.911 GB, free: 29.72 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/2.229, allocations: 1.167 MB / 1.912 GB, free: 28.49 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/2.229, allocations: 4 kB / 1.912 GB, free: 28.49 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/2.229, allocations: 4 kB / 1.912 GB, free: 28.48 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/2.23, allocations: 287.7 kB / 1.912 GB, free: 28.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/2.23, allocations: 11.94 kB / 1.912 GB, free: 28.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/2.232, allocations: 223.1 kB / 1.913 GB, free: 27.97 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/2.232, allocations: 51.97 kB / 1.913 GB, free: 27.92 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.673e-06/2.232, allocations: 4.938 kB / 1.913 GB, free: 27.92 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001459/2.233, allocations: 0.8613 MB / 1.914 GB, free: 27.06 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/2.233, allocations: 8.094 kB / 1.914 GB, free: 27.05 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/2.233, allocations: 8 kB / 1.914 GB, free: 27.04 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/2.235, allocations: 279.7 kB / 1.914 GB, free: 26.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/2.235, allocations: 8 kB / 1.914 GB, free: 26.76 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/2.236, allocations: 215.2 kB / 1.914 GB, free: 26.55 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.955e-05/2.236, allocations: 59.94 kB / 1.914 GB, free: 26.49 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.0001612/2.236, allocations: 128.1 kB / 1.914 GB, free: 26.36 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/2.236, allocations: 142.2 kB / 1.914 GB, free: 26.22 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/2.238, allocations: 1.149 MB / 1.915 GB, free: 25.06 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/2.238, allocations: 19.98 kB / 1.916 GB, free: 25.04 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/2.238, allocations: 4 kB / 1.916 GB, free: 25.04 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00135/2.24, allocations: 0.9477 MB / 1.916 GB, free: 24.06 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003891/2.244, allocations: 3.023 MB / 1.919 GB, free: 20.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/2.244, allocations: 4.562 kB / 1.919 GB, free: 20.91 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/2.245, allocations: 251.7 kB / 1.92 GB, free: 20.66 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/2.245, allocations: 12 kB / 1.92 GB, free: 20.65 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/2.245, allocations: 23.97 kB / 1.92 GB, free: 20.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/2.245, allocations: 11.94 kB / 1.92 GB, free: 20.62 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/2.245, allocations: 4 kB / 1.92 GB, free: 20.61 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002279/2.247, allocations: 2.095 MB / 1.922 GB, free: 18.31 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/2.248, allocations: 468 kB / 1.922 GB, free: 17.81 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/2.248, allocations: 8 kB / 1.922 GB, free: 17.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/2.249, allocations: 179.7 kB / 1.922 GB, free: 17.63 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/2.249, allocations: 68.31 kB / 1.922 GB, free: 17.56 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-05/2.249, allocations: 47.97 kB / 1.922 GB, free: 17.52 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007827/2.25, allocations: 0.7973 MB / 1.923 GB, free: 16.72 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001751/2.252, allocations: 0.8225 MB / 1.924 GB, free: 15.89 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.001036/2.253, allocations: 0.8265 MB / 1.925 GB, free: 15.14 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00157/2.255, allocations: 1.39 MB / 1.926 GB, free: 13.73 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/2.255, allocations: 4 kB / 1.926 GB, free: 13.73 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006573/2.255, allocations: 0.5074 MB / 1.927 GB, free: 13.22 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/2.258, allocations: 0.616 MB / 1.927 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/2.261, allocations: 2.091 MB / 1.929 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009194/2.262, allocations: 1.438 MB / 1.931 GB, free: 8.973 MB / 0.8698 GB Notification: Performance of SimCode: time 3.31e-07/2.262, allocations: 0 / 1.931 GB, free: 8.973 MB / 0.8698 GB Notification: Performance of Templates: time 0.2758/2.537, allocations: 35.69 MB / 1.966 GB, free: 224.7 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches