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.246/2.246, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001071/0.001071, allocations: 172.8 kB / 487.4 MB, free: 5.055 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.559/1.559, allocations: 221.5 MB / 0.7824 GB, free: 1.012 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.0008444/0.0008444, allocations: 87.97 kB / 0.9219 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.061e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2784, allocations: 142.3 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9419/1.22, allocations: 174.9 MB / 1.377 GB, free: 18.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/1.221, allocations: 84.06 kB / 1.377 GB, free: 18.21 MB / 0.823 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.02901/1.25, allocations: 14.79 MB / 1.391 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.094e-06/1.25, allocations: 0 / 1.391 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.955e-05/1.25, allocations: 7.844 kB / 1.391 GB, free: 28.95 MB / 0.8386 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.0006634/1.25, allocations: 469.6 kB / 1.392 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/1.25, allocations: 7.5 kB / 1.392 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006542/1.251, allocations: 81.02 kB / 1.392 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/1.251, allocations: 242.2 kB / 1.392 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/1.251, allocations: 3.906 kB / 1.392 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.803e-05/1.251, allocations: 11.47 kB / 1.392 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002592/1.252, allocations: 172.8 kB / 1.392 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/1.252, allocations: 257.2 kB / 1.392 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/1.252, allocations: 0 / 1.392 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/1.252, allocations: 3.938 kB / 1.392 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/1.252, allocations: 19.77 kB / 1.392 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/1.253, allocations: 1.414 MB / 1.394 GB, free: 26.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/1.254, allocations: 177.4 kB / 1.394 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/1.254, allocations: 34 kB / 1.394 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 8.285e-06/1.254, allocations: 0 / 1.394 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/1.254, allocations: 30.56 kB / 1.394 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/1.254, allocations: 0 / 1.394 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002615/1.254, allocations: 100.2 kB / 1.394 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/1.254, allocations: 59.25 kB / 1.394 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/1.254, allocations: 162.7 kB / 1.394 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/1.254, allocations: 25.7 kB / 1.394 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.05e-05/1.254, allocations: 173.2 kB / 1.395 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/1.254, allocations: 19.59 kB / 1.395 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/1.254, allocations: 0 / 1.395 GB, free: 26.22 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001195/1.254, allocations: 325.7 kB / 1.395 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.731e-05/1.254, allocations: 32.64 kB / 1.395 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.106e-05/1.255, allocations: 95.89 kB / 1.395 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.489e-05/1.255, allocations: 52.06 kB / 1.395 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/1.255, allocations: 0 / 1.395 GB, free: 25.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002151/1.255, allocations: 161.5 kB / 1.395 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.255, allocations: 7.469 kB / 1.395 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/1.255, allocations: 288 / 1.395 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/1.255, allocations: 31.81 kB / 1.395 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.561e-05/1.255, allocations: 27.14 kB / 1.395 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008615/1.256, allocations: 1.265 MB / 1.397 GB, free: 24.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/1.256, allocations: 23.31 kB / 1.397 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/1.256, allocations: 3.688 kB / 1.397 GB, free: 24.45 MB / 0.8386 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 8.033e-05/1.256, allocations: 108.7 kB / 1.397 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/1.256, allocations: 11.44 kB / 1.397 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.726e-05/1.256, allocations: 20.56 kB / 1.397 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/1.256, allocations: 3.938 kB / 1.397 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.256, allocations: 3.938 kB / 1.397 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/1.256, allocations: 3.938 kB / 1.397 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003804/1.257, allocations: 406.1 kB / 1.397 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.257, allocations: 0 / 1.397 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.384e-05/1.257, allocations: 7.5 kB / 1.397 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.466e-05/1.257, allocations: 27.59 kB / 1.397 GB, free: 23.97 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/1.257, allocations: 0 / 1.397 GB, free: 23.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007573/1.258, allocations: 1.255 MB / 1.398 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.258, allocations: 0 / 1.398 GB, free: 22.74 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/1.258, allocations: 200.6 kB / 1.399 GB, free: 22.58 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/1.258, allocations: 96.25 kB / 1.399 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/1.258, allocations: 7.828 kB / 1.399 GB, free: 22.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.908e-05/1.258, allocations: 7.969 kB / 1.399 GB, free: 22.47 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.847e-05/1.258, allocations: 4.062 kB / 1.399 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/1.258, allocations: 7.828 kB / 1.399 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.221e-05/1.258, allocations: 121.6 kB / 1.399 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.258, allocations: 0 / 1.399 GB, free: 22.38 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003029/1.258, allocations: 49.16 kB / 1.399 GB, free: 22.38 MB / 0.8386 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 0.0001066/1.259, allocations: 95.41 kB / 1.399 GB, free: 22.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003024/1.259, allocations: 200.8 kB / 1.399 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.259, allocations: 0 / 1.399 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/1.259, allocations: 135.2 kB / 1.399 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/1.259, allocations: 29.02 kB / 1.399 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003468/1.26, allocations: 223.4 kB / 1.399 GB, free: 21.9 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/1.26, allocations: 0.7546 MB / 1.4 GB, free: 21.17 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.586e-05/1.26, allocations: 24.78 kB / 1.4 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/1.26, allocations: 11.34 kB / 1.4 GB, free: 21.15 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.26, allocations: 0 / 1.4 GB, free: 21.15 MB / 0.8386 GB Notification: Performance of Templates: time 0.003564/1.264, allocations: 1.431 MB / 1.402 GB, free: 20.45 MB / 0.8386 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