Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.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: translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimple,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimple,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") [: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 10.0.0-master/package.mo): time 1.701/1.701, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.0008879/0.0008879, allocations: 177.3 kB / 490.8 MB, free: 1.906 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.056/1.056, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0007169/0.0007169, allocations: 94.66 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.631e-06/5.641e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1667, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.311/2.478, allocations: 1.765 GB / 2.976 GB, free: 106.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/2.478, allocations: 99.94 kB / 2.977 GB, free: 106.8 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.1435/2.621, allocations: 75.42 MB / 3.05 GB, free: 31.02 MB / 1.151 GB Notification: Performance of Transformations before backend: time 5.954e-05/2.622, allocations: 39.94 kB / 3.05 GB, free: 30.98 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: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.002248/2.624, allocations: 1.65 MB / 3.052 GB, free: 29.28 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/2.624, allocations: 12.03 kB / 3.052 GB, free: 29.27 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005004/2.629, allocations: 0.9225 MB / 3.053 GB, free: 28.34 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/2.63, allocations: 0.8999 MB / 3.054 GB, free: 27.39 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/2.63, allocations: 51.94 kB / 3.054 GB, free: 27.34 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/2.63, allocations: 87.98 kB / 3.054 GB, free: 27.26 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00238/2.633, allocations: 1.891 MB / 3.056 GB, free: 25.36 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/2.635, allocations: 1.554 MB / 3.057 GB, free: 23.74 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/2.635, allocations: 4 kB / 3.057 GB, free: 23.73 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/2.635, allocations: 3.984 kB / 3.057 GB, free: 23.73 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.583e-05/2.635, allocations: 66.89 kB / 3.057 GB, free: 23.66 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007859/2.643, allocations: 6.301 MB / 3.063 GB, free: 17.09 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/2.644, allocations: 1.185 MB / 3.064 GB, free: 15.89 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/2.645, allocations: 0.5806 MB / 3.065 GB, free: 15.31 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004908/2.645, allocations: 490.9 kB / 3.066 GB, free: 14.73 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008095/2.646, allocations: 0.7514 MB / 3.066 GB, free: 13.96 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 2.234e-06/2.646, allocations: 0 / 3.066 GB, free: 13.96 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.001957/2.648, allocations: 1.263 MB / 3.067 GB, free: 12.68 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/2.648, allocations: 347.5 kB / 3.068 GB, free: 12.27 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006085/2.649, allocations: 0.6683 MB / 3.068 GB, free: 11.59 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.189e-05/2.649, allocations: 25.7 kB / 3.069 GB, free: 11.56 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/2.649, allocations: 499.5 kB / 3.069 GB, free: 11.06 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/2.649, allocations: 413.7 kB / 3.069 GB, free: 10.65 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.186e-05/2.649, allocations: 0 / 3.069 GB, free: 10.65 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.197e-05/2.649, allocations: 349.9 kB / 3.07 GB, free: 10.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/2.65, allocations: 454.5 kB / 3.07 GB, free: 9.855 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/2.651, allocations: 0.635 MB / 3.071 GB, free: 9.156 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009227/2.652, allocations: 0.5841 MB / 3.071 GB, free: 8.574 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/2.652, allocations: 0 / 3.071 GB, free: 8.574 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001955/2.654, allocations: 1.337 MB / 3.073 GB, free: 7.227 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/2.654, allocations: 1.053 MB / 3.074 GB, free: 6.094 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/2.654, allocations: 4 kB / 3.074 GB, free: 6.09 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001316/2.654, allocations: 32.83 kB / 3.074 GB, free: 6.055 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/2.656, allocations: 347.4 kB / 3.074 GB, free: 5.715 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002125/2.656, allocations: 0.5446 MB / 3.075 GB, free: 5.145 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/2.657, allocations: 171 kB / 3.075 GB, free: 4.977 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/2.657, allocations: 59.95 kB / 3.075 GB, free: 4.918 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/2.657, allocations: 4 kB / 3.075 GB, free: 4.914 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00182/2.659, allocations: 1.195 MB / 3.076 GB, free: 3.719 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/2.659, allocations: 0 / 3.076 GB, free: 3.719 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/2.659, allocations: 12 kB / 3.076 GB, free: 3.707 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/2.661, allocations: 347.8 kB / 3.076 GB, free: 3.367 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/2.661, allocations: 8 kB / 3.076 GB, free: 3.359 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/2.662, allocations: 159 kB / 3.076 GB, free: 3.203 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/2.662, allocations: 55.95 kB / 3.077 GB, free: 3.148 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002129/2.662, allocations: 139.4 kB / 3.077 GB, free: 3.008 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/2.662, allocations: 114.6 kB / 3.077 GB, free: 2.895 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00298/2.665, allocations: 1.683 MB / 3.078 GB, free: 1.195 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/2.665, allocations: 16 kB / 3.078 GB, free: 1.18 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/2.665, allocations: 0 / 3.078 GB, free: 1.18 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/2.665, allocations: 7.969 kB / 3.078 GB, free: 1.172 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2543/2.92, allocations: 3.325 MB / 3.082 GB, free: 0.5046 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/2.92, allocations: 0 / 3.082 GB, free: 0.5046 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/2.921, allocations: 323.4 kB / 3.082 GB, free: 0.5046 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/2.921, allocations: 29.47 kB / 3.082 GB, free: 0.5046 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.635e-05/2.922, allocations: 22.58 kB / 3.082 GB, free: 0.5046 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005677/2.922, allocations: 1.223 MB / 3.083 GB, free: 0.5035 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/2.922, allocations: 4.562 kB / 3.083 GB, free: 0.5035 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002048/2.924, allocations: 1.512 MB / 3.085 GB, free: 0.5032 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005105/2.925, allocations: 410.3 kB / 3.085 GB, free: 0.5031 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/2.925, allocations: 1.25 kB / 3.085 GB, free: 0.5031 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/2.926, allocations: 129.2 kB / 3.085 GB, free: 0.5031 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/2.926, allocations: 82.95 kB / 3.085 GB, free: 0.5031 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/2.927, allocations: 53.08 kB / 3.085 GB, free: 0.5031 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004942/2.927, allocations: 0.5322 MB / 3.086 GB, free: 0.503 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.001458/2.929, allocations: 0.7215 MB / 3.087 GB, free: 0.503 GB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009383/2.929, allocations: 0.5419 MB / 3.087 GB, free: 0.5029 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002381/2.932, allocations: 1.88 MB / 3.089 GB, free: 0.5029 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/2.932, allocations: 0 / 3.089 GB, free: 0.5029 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008165/2.933, allocations: 0.7581 MB / 3.09 GB, free: 0.5028 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/2.934, allocations: 242.8 kB / 3.09 GB, free: 0.5027 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/2.937, allocations: 2.045 MB / 3.092 GB, free: 0.5023 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/2.938, allocations: 1.454 MB / 3.093 GB, free: 0.5015 GB / 1.151 GB Notification: Performance of SimCode: time 2.41e-07/2.938, allocations: 0 / 3.093 GB, free: 0.5015 GB / 1.151 GB Notification: Performance of Templates: time 0.03334/2.971, allocations: 30.05 MB / 3.123 GB, free: 0.5003 GB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_PVSimple.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches