Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") [: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.192/1.192, allocations: 249.4 MB / 256.7 MB, free: 7.793 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000934/0.000934, allocations: 185.2 kB / 316 MB, free: 7.941 MB / 254.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 205.1 MB / 0.5667 GB, free: 3.348 MB / 414.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008557/0.0008557, allocations: 95.31 kB / 0.671 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.46e-06, allocations: 0 / 0.7807 GB, free: 106.8 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 106.3 MB / 0.8846 GB, free: 380 kB / 0.545 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4231/0.5578, allocations: 158 MB / 1.039 GB, free: 4.926 MB / 0.6544 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.5581, allocations: 91.56 kB / 1.039 GB, free: 4.879 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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.03384/0.5919, allocations: 15.67 MB / 1.054 GB, free: 8.047 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.5919, allocations: 4 kB / 1.054 GB, free: 8.043 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0006311/0.5926, allocations: 0.5574 MB / 1.055 GB, free: 7.461 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.5926, allocations: 8.031 kB / 1.055 GB, free: 7.453 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009896/0.5936, allocations: 142.9 kB / 1.055 GB, free: 7.316 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.594, allocations: 295.9 kB / 1.055 GB, free: 7.008 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.594, allocations: 11.98 kB / 1.055 GB, free: 6.996 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.779e-05/0.5941, allocations: 16 kB / 1.055 GB, free: 6.98 MB / 0.67 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003951/0.5945, allocations: 283.4 kB / 1.056 GB, free: 6.797 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.595, allocations: 416.6 kB / 1.056 GB, free: 6.445 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.595, allocations: 0 / 1.056 GB, free: 6.445 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.595, allocations: 0 / 1.056 GB, free: 6.445 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.651e-05/0.5951, allocations: 30.5 kB / 1.056 GB, free: 6.418 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.5969, allocations: 2.119 MB / 1.058 GB, free: 4.27 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.5972, allocations: 155 kB / 1.058 GB, free: 4.148 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.5974, allocations: 106.1 kB / 1.058 GB, free: 4.066 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.5974, allocations: 8 kB / 1.058 GB, free: 4.059 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.5974, allocations: 30.56 kB / 1.058 GB, free: 4.02 MB / 0.67 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.5974, allocations: 3.938 kB / 1.058 GB, free: 4.016 MB / 0.67 GB Notification: Performance of matching and sorting (n=14): time 0.0003269/0.5978, allocations: 157.3 kB / 1.058 GB, free: 3.879 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.508e-05/0.5978, allocations: 55.39 kB / 1.059 GB, free: 3.812 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.598, allocations: 191.4 kB / 1.059 GB, free: 3.648 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.598, allocations: 25.7 kB / 1.059 GB, free: 3.617 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 9.261e-05/0.5981, allocations: 198.1 kB / 1.059 GB, free: 3.43 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.5981, allocations: 50.98 kB / 1.059 GB, free: 3.387 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-06/0.5981, allocations: 0 / 1.059 GB, free: 3.387 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.5982, allocations: 329.5 kB / 1.059 GB, free: 3.062 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.604e-05/0.5983, allocations: 54.58 kB / 1.059 GB, free: 3.027 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.5984, allocations: 142.4 kB / 1.059 GB, free: 2.871 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.5986, allocations: 76.03 kB / 1.06 GB, free: 2.82 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5986, allocations: 0 / 1.06 GB, free: 2.82 MB / 0.67 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003342/0.5989, allocations: 240.2 kB / 1.06 GB, free: 2.613 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.5989, allocations: 8.031 kB / 1.06 GB, free: 2.605 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.5989, allocations: 4 kB / 1.06 GB, free: 2.602 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001275/0.5991, allocations: 27.84 kB / 1.06 GB, free: 2.574 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.5993, allocations: 51.42 kB / 1.06 GB, free: 2.527 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008811/0.6002, allocations: 1.261 MB / 1.061 GB, free: 1.188 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.6003, allocations: 19.75 kB / 1.061 GB, free: 1.168 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.6003, allocations: 11.25 kB / 1.061 GB, free: 1.16 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.6004, allocations: 113 kB / 1.061 GB, free: 1.043 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.6005, allocations: 19.81 kB / 1.061 GB, free: 1.023 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.445e-05/0.6005, allocations: 28.11 kB / 1.061 GB, free: 1.012 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.6005, allocations: 4 kB / 1.061 GB, free: 1.008 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.6005, allocations: 3.938 kB / 1.061 GB, free: 1.004 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.6005, allocations: 0 / 1.061 GB, free: 1.004 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007064/0.6012, allocations: 0.6399 MB / 1.062 GB, free: 380 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.6013, allocations: 4 kB / 1.062 GB, free: 376 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.518e-05/0.6014, allocations: 23.92 kB / 1.062 GB, free: 352 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.086e-05/0.6014, allocations: 24.55 kB / 1.062 GB, free: 328 kB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.6015, allocations: 7.984 kB / 1.062 GB, free: 320 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007796/0.6022, allocations: 1.246 MB / 1.063 GB, free: 14.99 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.6023, allocations: 7.969 kB / 1.063 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003042/0.6026, allocations: 377.7 kB / 1.064 GB, free: 14.58 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.6027, allocations: 116.7 kB / 1.064 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.6027, allocations: 4 kB / 1.064 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.6029, allocations: 8 kB / 1.064 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.6029, allocations: 11.92 kB / 1.064 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.6029, allocations: 11.94 kB / 1.064 GB, free: 14.42 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9.927e-05/0.603, allocations: 142.9 kB / 1.064 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0003424/0.6034, allocations: 71.75 kB / 1.064 GB, free: 14.23 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.242e-05/0.6035, allocations: 103.2 kB / 1.064 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0003477/0.6038, allocations: 267 kB / 1.064 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6038, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.604, allocations: 171.3 kB / 1.064 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.6043, allocations: 43.3 kB / 1.064 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00057/0.6049, allocations: 377.7 kB / 1.065 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/0.6053, allocations: 0.8237 MB / 1.066 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of SimCode: time 2.81e-07/0.6053, allocations: 0 / 1.066 GB, free: 12.48 MB / 0.6856 GB Notification: Performance of Templates: time 0.004766/0.61, allocations: 2.369 MB / 1.068 GB, free: 10.14 MB / 0.6856 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches