Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_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_9_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001093/0.001093, allocations: 173 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.696/1.696, allocations: 223.2 MB / 0.7949 GB, free: 17.94 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.001111/0.001111, allocations: 96.27 kB / 0.9346 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003546, allocations: 10.06 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3093, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2328/0.5421, allocations: 175.8 MB / 1.395 GB, free: 2.32 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.5424, allocations: 87.95 kB / 1.395 GB, free: 2.234 MB / 0.8855 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 - DAE generated: time 0.05086/0.5933, allocations: 22.22 MB / 1.416 GB, free: 11.71 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5933, allocations: 0 / 1.416 GB, free: 11.71 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.122e-05/0.5934, allocations: 15.92 kB / 1.416 GB, free: 11.69 MB / 0.9167 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.001038/0.5944, allocations: 0.5768 MB / 1.417 GB, free: 11.07 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.5945, allocations: 12.03 kB / 1.417 GB, free: 11.05 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.5956, allocations: 139.5 kB / 1.417 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.5961, allocations: 290.4 kB / 1.417 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.5961, allocations: 20.66 kB / 1.417 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.5962, allocations: 31.98 kB / 1.417 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006805/0.5969, allocations: 447.6 kB / 1.418 GB, free: 10.07 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.5969, allocations: 0 / 1.418 GB, free: 10.07 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.5969, allocations: 23.86 kB / 1.418 GB, free: 10.05 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.445e-05/0.597, allocations: 24.55 kB / 1.418 GB, free: 10.02 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.5975, allocations: 317.9 kB / 1.418 GB, free: 9.711 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.5998, allocations: 2.181 MB / 1.42 GB, free: 7.32 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000369/0.6002, allocations: 255.8 kB / 1.421 GB, free: 7.043 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.291e-05/0.6002, allocations: 3.984 kB / 1.421 GB, free: 7.039 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.6002, allocations: 34.56 kB / 1.421 GB, free: 6.996 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.6002, allocations: 0 / 1.421 GB, free: 6.996 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0005953/0.6008, allocations: 319.3 kB / 1.421 GB, free: 6.66 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.6009, allocations: 59.34 kB / 1.421 GB, free: 6.59 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.6012, allocations: 237.7 kB / 1.421 GB, free: 6.348 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.6012, allocations: 29.7 kB / 1.421 GB, free: 6.312 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.6013, allocations: 199.9 kB / 1.421 GB, free: 6.113 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.894e-05/0.6014, allocations: 55.28 kB / 1.421 GB, free: 6.059 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.6014, allocations: 4 kB / 1.421 GB, free: 6.055 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6015, allocations: 338.8 kB / 1.422 GB, free: 5.715 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.967e-05/0.6016, allocations: 60.44 kB / 1.422 GB, free: 5.656 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.6017, allocations: 138 kB / 1.422 GB, free: 5.488 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.6019, allocations: 87.81 kB / 1.422 GB, free: 5.402 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.6019, allocations: 4 kB / 1.422 GB, free: 5.398 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000392/0.6023, allocations: 263 kB / 1.422 GB, free: 5.133 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.6023, allocations: 8 kB / 1.422 GB, free: 5.125 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.6023, allocations: 0 / 1.422 GB, free: 5.125 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.6025, allocations: 28.84 kB / 1.422 GB, free: 5.094 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.6027, allocations: 48.27 kB / 1.422 GB, free: 5.047 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.6037, allocations: 1.327 MB / 1.424 GB, free: 3.582 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.6039, allocations: 35.92 kB / 1.424 GB, free: 3.547 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.604, allocations: 19.88 kB / 1.424 GB, free: 3.527 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (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 0.0001613/0.6041, allocations: 162.4 kB / 1.424 GB, free: 3.359 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.6042, allocations: 23.72 kB / 1.424 GB, free: 3.336 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.664e-05/0.6042, allocations: 29.78 kB / 1.424 GB, free: 3.309 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.6043, allocations: 0 / 1.424 GB, free: 3.309 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.6043, allocations: 8.047 kB / 1.424 GB, free: 3.301 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.6043, allocations: 7.953 kB / 1.424 GB, free: 3.293 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008127/0.6051, allocations: 0.6273 MB / 1.425 GB, free: 2.594 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.6051, allocations: 4 kB / 1.425 GB, free: 2.59 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.6052, allocations: 23.92 kB / 1.425 GB, free: 2.566 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-05/0.6053, allocations: 28.97 kB / 1.425 GB, free: 2.535 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.6053, allocations: 4 kB / 1.425 GB, free: 2.531 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009172/0.6063, allocations: 1.323 MB / 1.426 GB, free: 1.074 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6063, allocations: 4.031 kB / 1.426 GB, free: 1.07 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003543/0.6066, allocations: 346.5 kB / 1.426 GB, free: 0.6758 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.6067, allocations: 120.8 kB / 1.426 GB, free: 0.5391 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.6068, allocations: 96 / 1.426 GB, free: 0.5391 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.6069, allocations: 19.84 kB / 1.426 GB, free: 0.5195 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.607, allocations: 15.98 kB / 1.426 GB, free: 0.5039 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.607, allocations: 4 kB / 1.426 GB, free: 0.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001708/0.6072, allocations: 190 kB / 1.427 GB, free: 320 kB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6072, allocations: 0 / 1.427 GB, free: 320 kB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003918/0.6076, allocations: 75.84 kB / 1.427 GB, free: 244 kB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.0001155/0.6077, allocations: 107 kB / 1.427 GB, free: 128 kB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.4959/1.104, allocations: 272.9 kB / 1.427 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.104, allocations: 1.156 kB / 1.427 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002317/1.104, allocations: 180.3 kB / 1.427 GB, free: 188.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/1.104, allocations: 56.55 kB / 1.427 GB, free: 188.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008789/1.105, allocations: 0.6253 MB / 1.428 GB, free: 188 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/1.106, allocations: 0.7949 MB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001568/1.106, allocations: 48.83 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/1.106, allocations: 21.95 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of SimCode: time 1.002e-06/1.106, allocations: 0 / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.006422/1.112, allocations: 2.431 MB / 1.431 GB, free: 187.2 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches