Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.749/1.749, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009747/0.0009747, allocations: 185.2 kB / 487 MB, free: 5.312 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.099/1.099, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008052/0.0008052, allocations: 112.5 kB / 0.9213 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.34e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1726, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.438/2.611, allocations: 1.764 GB / 2.969 GB, free: 90.01 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/2.611, allocations: 95.89 kB / 2.969 GB, free: 89.92 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.1498/2.761, allocations: 75.42 MB / 3.043 GB, free: 14.15 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.309e-05/2.761, allocations: 36 kB / 3.043 GB, free: 14.12 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.002381/2.764, allocations: 1.654 MB / 3.045 GB, free: 12.41 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/2.764, allocations: 8.031 kB / 3.045 GB, free: 12.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005054/2.769, allocations: 0.9225 MB / 3.046 GB, free: 11.47 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/2.77, allocations: 0.8999 MB / 3.046 GB, free: 10.53 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/2.77, allocations: 48 kB / 3.047 GB, free: 10.48 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/2.77, allocations: 84 kB / 3.047 GB, free: 10.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002457/2.773, allocations: 1.895 MB / 3.048 GB, free: 8.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/2.775, allocations: 1.554 MB / 3.05 GB, free: 6.875 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/2.775, allocations: 0 / 3.05 GB, free: 6.875 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/2.775, allocations: 0 / 3.05 GB, free: 6.875 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.996e-05/2.775, allocations: 74.89 kB / 3.05 GB, free: 6.801 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007961/2.783, allocations: 6.3 MB / 3.056 GB, free: 232 kB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.27/3.053, allocations: 1.186 MB / 3.057 GB, free: 0.508 GB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007897/3.054, allocations: 0.5828 MB / 3.058 GB, free: 0.5079 GB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005548/3.054, allocations: 493.7 kB / 3.058 GB, free: 0.5075 GB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008478/3.055, allocations: 0.7529 MB / 3.059 GB, free: 0.5074 GB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 3.016e-06/3.055, allocations: 0 / 3.059 GB, free: 0.5074 GB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.002139/3.057, allocations: 1.261 MB / 3.06 GB, free: 0.5073 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/3.057, allocations: 354.6 kB / 3.061 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006728/3.058, allocations: 0.6575 MB / 3.061 GB, free: 0.5068 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.749e-05/3.058, allocations: 31.92 kB / 3.061 GB, free: 0.5068 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/3.058, allocations: 0.4921 MB / 3.062 GB, free: 0.5066 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/3.059, allocations: 403.9 kB / 3.062 GB, free: 0.5064 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/3.059, allocations: 0 / 3.062 GB, free: 0.5064 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.425e-05/3.059, allocations: 356.3 kB / 3.063 GB, free: 0.5061 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005893/3.059, allocations: 446.1 kB / 3.063 GB, free: 0.5061 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006748/3.06, allocations: 0.6398 MB / 3.064 GB, free: 0.5059 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009505/3.061, allocations: 0.5854 MB / 3.064 GB, free: 0.5059 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/3.061, allocations: 0 / 3.064 GB, free: 0.5059 GB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00203/3.063, allocations: 1.337 MB / 3.065 GB, free: 0.5058 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/3.063, allocations: 1.058 MB / 3.067 GB, free: 0.5047 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/3.063, allocations: 5.406 kB / 3.067 GB, free: 0.5047 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001378/3.063, allocations: 24.34 kB / 3.067 GB, free: 0.5047 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/3.065, allocations: 347.7 kB / 3.067 GB, free: 0.5047 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002191/3.065, allocations: 0.5437 MB / 3.067 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/3.066, allocations: 169.5 kB / 3.068 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/3.067, allocations: 57.31 kB / 3.068 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.069e-06/3.067, allocations: 3.906 kB / 3.068 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001848/3.068, allocations: 1.195 MB / 3.069 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/3.068, allocations: 3.969 kB / 3.069 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.255e-06/3.068, allocations: 7.812 kB / 3.069 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/3.07, allocations: 342.9 kB / 3.069 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/3.07, allocations: 11.97 kB / 3.069 GB, free: 0.5042 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/3.071, allocations: 159.9 kB / 3.069 GB, free: 0.5041 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/3.072, allocations: 57.36 kB / 3.069 GB, free: 0.5041 GB / 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.0002041/3.072, allocations: 136.6 kB / 3.069 GB, free: 0.504 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/3.072, allocations: 109.5 kB / 3.07 GB, free: 0.504 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/3.075, allocations: 1.679 MB / 3.071 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/3.075, allocations: 15.67 kB / 3.071 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/3.075, allocations: 3.938 kB / 3.071 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/3.075, allocations: 3.656 kB / 3.071 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/3.079, allocations: 3.337 MB / 3.075 GB, free: 0.5033 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/3.079, allocations: 3.562 kB / 3.075 GB, free: 0.5033 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/3.081, allocations: 321 kB / 3.075 GB, free: 0.5033 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.099e-05/3.081, allocations: 26.31 kB / 3.075 GB, free: 0.5033 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.486e-05/3.081, allocations: 33.73 kB / 3.075 GB, free: 0.5033 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005269/3.081, allocations: 1.228 MB / 3.076 GB, free: 0.5021 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/3.081, allocations: 0 / 3.076 GB, free: 0.5021 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001961/3.083, allocations: 1.509 MB / 3.078 GB, free: 0.5018 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/3.084, allocations: 418.3 kB / 3.078 GB, free: 0.5017 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/3.084, allocations: 3.812 kB / 3.078 GB, free: 0.5017 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/3.085, allocations: 125.5 kB / 3.078 GB, free: 0.5017 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/3.085, allocations: 83.42 kB / 3.078 GB, free: 0.5017 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/3.085, allocations: 51.2 kB / 3.078 GB, free: 0.5017 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004705/3.086, allocations: 0.5358 MB / 3.079 GB, free: 0.5016 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.001353/3.087, allocations: 0.7183 MB / 3.079 GB, free: 0.5014 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.0009283/3.088, allocations: 0.5424 MB / 3.08 GB, free: 0.5013 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0023/3.091, allocations: 1.878 MB / 3.082 GB, free: 0.5013 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/3.091, allocations: 0 / 3.082 GB, free: 0.5013 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008476/3.091, allocations: 0.7506 MB / 3.083 GB, free: 0.5012 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009929/3.092, allocations: 251.8 kB / 3.083 GB, free: 0.5012 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/3.096, allocations: 2.051 MB / 3.085 GB, free: 0.5007 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/3.097, allocations: 1.448 MB / 3.086 GB, free: 0.5 GB / 1.151 GB Notification: Performance of SimCode: time 2.6e-07/3.097, allocations: 3.906 kB / 3.086 GB, free: 0.5 GB / 1.151 GB Notification: Performance of Templates: time 0.03464/3.131, allocations: 30.04 MB / 3.116 GB, free: 0.4985 GB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_PVSimple.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches