Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_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_9_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001169/0.001169, allocations: 178.9 kB / 498.1 MB, free: 5.758 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.644/1.644, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.001046/0.001045, allocations: 107.9 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004113/0.0004113, allocations: 7.641 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3729, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2385/0.6114, allocations: 175.6 MB / 1.394 GB, free: 2.453 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.6118, allocations: 95.94 kB / 1.394 GB, free: 2.359 MB / 0.8855 GB [/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/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/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 - DAE generated: time 0.03354/0.6453, allocations: 14.95 MB / 1.409 GB, free: 3.191 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.815e-06/0.6454, allocations: 0 / 1.409 GB, free: 3.191 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.796e-05/0.6454, allocations: 7.984 kB / 1.409 GB, free: 3.184 MB / 0.9011 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.0007657/0.6462, allocations: 490.9 kB / 1.41 GB, free: 2.652 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.6462, allocations: 12.03 kB / 1.41 GB, free: 2.641 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006202/0.6469, allocations: 83.64 kB / 1.41 GB, free: 2.559 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.6472, allocations: 234.7 kB / 1.41 GB, free: 2.289 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.6473, allocations: 16.36 kB / 1.41 GB, free: 2.273 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.6473, allocations: 16 kB / 1.41 GB, free: 2.258 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/0.6478, allocations: 291.2 kB / 1.41 GB, free: 1.953 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.6478, allocations: 0 / 1.41 GB, free: 1.953 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.6478, allocations: 11.98 kB / 1.41 GB, free: 1.941 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.6479, allocations: 16.36 kB / 1.41 GB, free: 1.926 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.6482, allocations: 192.9 kB / 1.41 GB, free: 1.738 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.6498, allocations: 1.477 MB / 1.412 GB, free: 104 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.65, allocations: 171.7 kB / 1.412 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.6501, allocations: 0 / 1.412 GB, free: 15.91 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.6501, allocations: 38.62 kB / 1.412 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.6501, allocations: 0 / 1.412 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.00051/0.6506, allocations: 231.5 kB / 1.412 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.6507, allocations: 55.36 kB / 1.412 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.6509, allocations: 182.3 kB / 1.412 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.6509, allocations: 29.7 kB / 1.412 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.651, allocations: 171.7 kB / 1.413 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.6511, allocations: 23.7 kB / 1.413 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.6511, allocations: 0 / 1.413 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.6512, allocations: 326.8 kB / 1.413 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.912e-05/0.6513, allocations: 31.98 kB / 1.413 GB, free: 14.77 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.6514, allocations: 105.9 kB / 1.413 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.408e-05/0.6515, allocations: 48.05 kB / 1.413 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6515, allocations: 4 kB / 1.413 GB, free: 14.58 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002929/0.6518, allocations: 194 kB / 1.413 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.6518, allocations: 8 kB / 1.413 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.6518, allocations: 0 / 1.413 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.652, allocations: 41.02 kB / 1.413 GB, free: 14.33 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.6521, allocations: 27.98 kB / 1.413 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.6532, allocations: 1.327 MB / 1.415 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.6533, allocations: 11.84 kB / 1.415 GB, free: 12.83 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.6534, allocations: 12 kB / 1.415 GB, free: 12.82 MB / 0.9167 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 () * Number of clocked 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 0.000142/0.6535, allocations: 145.8 kB / 1.415 GB, free: 12.67 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.642e-05/0.6535, allocations: 11.81 kB / 1.415 GB, free: 12.66 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.6536, allocations: 17.41 kB / 1.415 GB, free: 12.64 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.6536, allocations: 7.953 kB / 1.415 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.6536, allocations: 96 / 1.415 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.6536, allocations: 4 kB / 1.415 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.6541, allocations: 443.2 kB / 1.415 GB, free: 12.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.6541, allocations: 4 kB / 1.415 GB, free: 12.13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.428e-05/0.6542, allocations: 4 kB / 1.415 GB, free: 12.12 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.718e-05/0.6543, allocations: 24.84 kB / 1.415 GB, free: 12.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.6543, allocations: 3.984 kB / 1.415 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009316/0.6552, allocations: 1.323 MB / 1.417 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6552, allocations: 8.016 kB / 1.417 GB, free: 10.63 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.6555, allocations: 212.4 kB / 1.417 GB, free: 10.41 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.732e-05/0.6556, allocations: 96.84 kB / 1.417 GB, free: 10.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.6556, allocations: 4 kB / 1.417 GB, free: 10.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.6557, allocations: 4 kB / 1.417 GB, free: 10.29 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.352e-05/0.6557, allocations: 7.984 kB / 1.417 GB, free: 10.28 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.6557, allocations: 0 / 1.417 GB, free: 10.28 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000129/0.6559, allocations: 155.2 kB / 1.417 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6559, allocations: 3.938 kB / 1.417 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002982/0.6562, allocations: 51.84 kB / 1.417 GB, free: 10.07 MB / 0.9167 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 () * Number of clocked 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 0.0001292/0.6563, allocations: 95.25 kB / 1.417 GB, free: 9.965 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003648/0.6567, allocations: 215 kB / 1.417 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6567, allocations: 0 / 1.417 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.6569, allocations: 146.6 kB / 1.418 GB, free: 9.586 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.6572, allocations: 33.75 kB / 1.418 GB, free: 9.551 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006414/0.6578, allocations: 437.8 kB / 1.418 GB, free: 9.098 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.6582, allocations: 0.7517 MB / 1.419 GB, free: 8.32 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 9.63e-05/0.6583, allocations: 26.16 kB / 1.419 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.6583, allocations: 15.44 kB / 1.419 GB, free: 8.281 MB / 0.9167 GB Notification: Performance of SimCode: time 4.51e-07/0.6583, allocations: 0 / 1.419 GB, free: 8.281 MB / 0.9167 GB Notification: Performance of Templates: time 0.004473/0.6628, allocations: 1.622 MB / 1.42 GB, free: 6.68 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches