Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance") [: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.196/1.196, allocations: 249.4 MB / 256.7 MB, free: 7.051 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.001027/0.001027, allocations: 177.2 kB / 316 MB, free: 3.578 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.006/1.006, allocations: 205.1 MB / 0.5667 GB, free: 15.72 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.0007599/0.0007599, allocations: 92.83 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.781e-06/5.801e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5446, allocations: 158 MB / 1.039 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.5449, allocations: 93.91 kB / 1.039 GB, free: 14.79 MB / 0.6667 GB [/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/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/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.0231/0.568, allocations: 10.92 MB / 1.05 GB, free: 5.914 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.568, allocations: 8 kB / 1.05 GB, free: 5.906 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005036/0.5685, allocations: 469.6 kB / 1.05 GB, free: 5.41 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.5686, allocations: 16.03 kB / 1.05 GB, free: 5.395 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006064/0.5692, allocations: 83.45 kB / 1.05 GB, free: 5.316 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.5695, allocations: 231.4 kB / 1.05 GB, free: 5.062 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.5695, allocations: 8 kB / 1.05 GB, free: 5.055 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.5696, allocations: 12 kB / 1.05 GB, free: 5.043 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002826/0.5698, allocations: 178.2 kB / 1.051 GB, free: 4.926 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.5702, allocations: 265.8 kB / 1.051 GB, free: 4.703 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.5702, allocations: 0 / 1.051 GB, free: 4.703 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.5702, allocations: 3.938 kB / 1.051 GB, free: 4.699 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.5703, allocations: 20.3 kB / 1.051 GB, free: 4.68 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.5715, allocations: 1.41 MB / 1.052 GB, free: 3.223 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.5717, allocations: 96.25 kB / 1.052 GB, free: 3.141 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.772e-05/0.5717, allocations: 27.3 kB / 1.052 GB, free: 3.117 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.5717, allocations: 3.125 kB / 1.052 GB, free: 3.117 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.5718, allocations: 34.47 kB / 1.052 GB, free: 3.074 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.5718, allocations: 0 / 1.052 GB, free: 3.074 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0002366/0.572, allocations: 110.9 kB / 1.052 GB, free: 2.973 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.369e-05/0.572, allocations: 51.41 kB / 1.052 GB, free: 2.91 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.5722, allocations: 170.7 kB / 1.053 GB, free: 2.758 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.5722, allocations: 25.7 kB / 1.053 GB, free: 2.727 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.5723, allocations: 163.4 kB / 1.053 GB, free: 2.574 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.5723, allocations: 26.77 kB / 1.053 GB, free: 2.551 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.5723, allocations: 0 / 1.053 GB, free: 2.551 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.5724, allocations: 321.3 kB / 1.053 GB, free: 2.234 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.878e-05/0.5724, allocations: 34.48 kB / 1.053 GB, free: 2.211 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.03e-05/0.5725, allocations: 94.58 kB / 1.053 GB, free: 2.102 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.05e-05/0.5726, allocations: 61.53 kB / 1.053 GB, free: 2.055 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.5726, allocations: 0 / 1.053 GB, free: 2.055 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002523/0.5729, allocations: 174.1 kB / 1.054 GB, free: 1.906 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.5729, allocations: 10.19 kB / 1.054 GB, free: 1.898 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.5729, allocations: 4.344 kB / 1.054 GB, free: 1.895 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.573, allocations: 20.86 kB / 1.054 GB, free: 1.871 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.5731, allocations: 35.61 kB / 1.054 GB, free: 1.84 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008403/0.574, allocations: 1.26 MB / 1.055 GB, free: 0.5039 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.5741, allocations: 11.84 kB / 1.055 GB, free: 0.4922 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.5741, allocations: 8 kB / 1.055 GB, free: 496 kB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 6.78e-05/0.5742, allocations: 108.9 kB / 1.055 GB, free: 380 kB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.5743, allocations: 11.91 kB / 1.055 GB, free: 368 kB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.5743, allocations: 28.3 kB / 1.055 GB, free: 352 kB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.5743, allocations: 0 / 1.055 GB, free: 352 kB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.5743, allocations: 0 / 1.055 GB, free: 352 kB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.5743, allocations: 4 kB / 1.055 GB, free: 348 kB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.5745, allocations: 211.6 kB / 1.055 GB, free: 124 kB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5745, allocations: 0 / 1.055 GB, free: 124 kB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-05/0.5746, allocations: 4 kB / 1.055 GB, free: 120 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.249e-05/0.5746, allocations: 24.34 kB / 1.055 GB, free: 96 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.5746, allocations: 0 / 1.055 GB, free: 96 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007649/0.5754, allocations: 1.254 MB / 1.056 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5754, allocations: 0 / 1.056 GB, free: 14.76 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001847/0.5756, allocations: 208.4 kB / 1.057 GB, free: 14.55 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.519e-05/0.5757, allocations: 103.1 kB / 1.057 GB, free: 14.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.5757, allocations: 0 / 1.057 GB, free: 14.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.5758, allocations: 11.98 kB / 1.057 GB, free: 14.43 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.436e-05/0.5759, allocations: 4.062 kB / 1.057 GB, free: 14.42 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.5759, allocations: 5.938 kB / 1.057 GB, free: 14.42 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.066e-05/0.576, allocations: 123 kB / 1.057 GB, free: 14.32 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002861/0.5762, allocations: 47.84 kB / 1.057 GB, free: 14.27 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.431e-05/0.5764, allocations: 99.19 kB / 1.057 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002708/0.5766, allocations: 197.5 kB / 1.057 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5766, allocations: 0 / 1.057 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.5768, allocations: 144.7 kB / 1.057 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.577, allocations: 27.14 kB / 1.057 GB, free: 13.82 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.5774, allocations: 212.2 kB / 1.058 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000333/0.5777, allocations: 0.7701 MB / 1.058 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of SimCode: time 2.81e-07/0.5778, allocations: 0 / 1.058 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of Templates: time 0.003689/0.5814, allocations: 1.585 MB / 1.06 GB, free: 11.27 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches