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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.432/1.432, allocations: 249.3 MB / 261.8 MB, free: 5.902 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.0009978/0.000998, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.2 MB / 0.572 GB, free: 10.67 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.000801/0.0008011, allocations: 94.45 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.555e-05/2.558e-05, allocations: 0 / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1789, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6268/0.8058, allocations: 157.6 MB / 1.046 GB, free: 11.22 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.8061, allocations: 86.52 kB / 1.046 GB, free: 11.18 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 - DAE generated: time 0.02533/0.8314, allocations: 11.3 MB / 1.057 GB, free: 1.855 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.362e-06/0.8314, allocations: 0 / 1.057 GB, free: 1.855 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.487e-05/0.8315, allocations: 8 kB / 1.057 GB, free: 1.848 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.0005674/0.832, allocations: 470.4 kB / 1.057 GB, free: 1.355 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.8321, allocations: 8.031 kB / 1.057 GB, free: 1.348 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005999/0.8327, allocations: 75.66 kB / 1.057 GB, free: 1.273 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.833, allocations: 254.4 kB / 1.058 GB, free: 1 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.8331, allocations: 19.11 kB / 1.058 GB, free: 0.9883 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.8331, allocations: 18.75 kB / 1.058 GB, free: 0.9766 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.8335, allocations: 289 kB / 1.058 GB, free: 0.7461 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.8335, allocations: 3.938 kB / 1.058 GB, free: 0.7422 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.8336, allocations: 10.86 kB / 1.058 GB, free: 0.7344 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.8336, allocations: 16 kB / 1.058 GB, free: 0.7227 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.8339, allocations: 189.4 kB / 1.058 GB, free: 0.5938 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.8353, allocations: 1.466 MB / 1.06 GB, free: 15.09 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.8355, allocations: 176 kB / 1.06 GB, free: 14.91 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.573e-05/0.8356, allocations: 36.28 kB / 1.06 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.8356, allocations: 0 / 1.06 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.8356, allocations: 33.75 kB / 1.06 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.8356, allocations: 4 kB / 1.06 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0002571/0.8359, allocations: 108.6 kB / 1.06 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.8359, allocations: 55.36 kB / 1.06 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.8361, allocations: 186.3 kB / 1.06 GB, free: 14.51 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.8361, allocations: 25.7 kB / 1.06 GB, free: 14.48 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.336e-05/0.8362, allocations: 168.9 kB / 1.06 GB, free: 14.32 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.8362, allocations: 23.47 kB / 1.06 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-06/0.8363, allocations: 3.188 kB / 1.06 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.8364, allocations: 333.9 kB / 1.061 GB, free: 13.97 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.484e-05/0.8364, allocations: 30.25 kB / 1.061 GB, free: 13.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.534e-05/0.8365, allocations: 100.2 kB / 1.061 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.808e-05/0.8366, allocations: 54.09 kB / 1.061 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.8366, allocations: 0 / 1.061 GB, free: 13.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002902/0.8369, allocations: 188.2 kB / 1.061 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.8369, allocations: 4 kB / 1.061 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.837, allocations: 4 kB / 1.061 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.8371, allocations: 24.41 kB / 1.061 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.8372, allocations: 38.56 kB / 1.061 GB, free: 13.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009748/0.8382, allocations: 1.307 MB / 1.062 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.8383, allocations: 23.44 kB / 1.062 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.8384, allocations: 8.219 kB / 1.062 GB, free: 12.15 MB / 0.6823 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 7.442e-05/0.8384, allocations: 116.1 kB / 1.063 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.8385, allocations: 15.81 kB / 1.063 GB, free: 12.02 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.8385, allocations: 17.2 kB / 1.063 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.8385, allocations: 3.953 kB / 1.063 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.8385, allocations: 4 kB / 1.063 GB, free: 12 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.8385, allocations: 0 / 1.063 GB, free: 12 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.839, allocations: 447 kB / 1.063 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.839, allocations: 0 / 1.063 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.559e-05/0.8391, allocations: 8 kB / 1.063 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.231e-05/0.8391, allocations: 28.72 kB / 1.063 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.8392, allocations: 0 / 1.063 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000833/0.84, allocations: 1.311 MB / 1.064 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.84, allocations: 0 / 1.064 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.8402, allocations: 204.9 kB / 1.064 GB, free: 9.934 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.8403, allocations: 107.9 kB / 1.065 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.8403, allocations: 3.812 kB / 1.065 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.8404, allocations: 4 kB / 1.065 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.8405, allocations: 7.984 kB / 1.065 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.8405, allocations: 0 / 1.065 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001162/0.8406, allocations: 145 kB / 1.065 GB, free: 9.68 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8406, allocations: 0 / 1.065 GB, free: 9.68 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003367/0.8409, allocations: 55.59 kB / 1.065 GB, free: 9.629 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 0.0001084/0.8411, allocations: 107.2 kB / 1.065 GB, free: 9.512 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003175/0.8414, allocations: 199.5 kB / 1.065 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.8414, allocations: 3.938 kB / 1.065 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.8416, allocations: 149.2 kB / 1.065 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.8418, allocations: 31.75 kB / 1.065 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003773/0.8422, allocations: 222.4 kB / 1.065 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.8425, allocations: 0.7504 MB / 1.066 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 9.016e-05/0.8426, allocations: 25.7 kB / 1.066 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.8426, allocations: 15.62 kB / 1.066 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of SimCode: time 3.41e-07/0.8426, allocations: 0 / 1.066 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of Templates: time 0.004085/0.8467, allocations: 1.649 MB / 1.068 GB, free: 6.496 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