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.451/1.451, allocations: 249.5 MB / 257 MB, free: 6.879 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.001053/0.001053, allocations: 184.9 kB / 316.3 MB, free: 3.219 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.467/1.467, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008053/0.0008053, allocations: 85.41 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.782e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1716, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6917/0.8633, allocations: 157.9 MB / 1.039 GB, free: 13.92 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.8636, allocations: 96.97 kB / 1.04 GB, free: 13.87 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.02534/0.889, allocations: 11.26 MB / 1.051 GB, free: 4.652 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.543e-06/0.889, allocations: 0 / 1.051 GB, free: 4.652 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.461e-05/0.889, allocations: 4 kB / 1.051 GB, free: 4.648 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.0005475/0.8896, allocations: 460.8 kB / 1.051 GB, free: 4.16 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.8896, allocations: 12.03 kB / 1.051 GB, free: 4.148 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005872/0.8902, allocations: 83.59 kB / 1.051 GB, free: 4.07 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.8905, allocations: 241.2 kB / 1.051 GB, free: 3.809 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.8906, allocations: 11.94 kB / 1.051 GB, free: 3.797 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.8906, allocations: 12 kB / 1.051 GB, free: 3.785 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000275/0.8909, allocations: 160.9 kB / 1.051 GB, free: 3.684 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.8913, allocations: 264.3 kB / 1.052 GB, free: 3.461 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.8913, allocations: 0 / 1.052 GB, free: 3.461 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.8913, allocations: 0 / 1.052 GB, free: 3.461 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.8914, allocations: 12.38 kB / 1.052 GB, free: 3.449 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.8927, allocations: 1.42 MB / 1.053 GB, free: 1.984 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.893, allocations: 167.6 kB / 1.053 GB, free: 1.816 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.616e-05/0.893, allocations: 28.77 kB / 1.053 GB, free: 1.793 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.8931, allocations: 4 kB / 1.053 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.8931, allocations: 34.56 kB / 1.053 GB, free: 1.746 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.8931, allocations: 0 / 1.053 GB, free: 1.746 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.000264/0.8934, allocations: 105.7 kB / 1.053 GB, free: 1.648 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/0.8934, allocations: 51.41 kB / 1.053 GB, free: 1.586 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.8935, allocations: 156.8 kB / 1.054 GB, free: 1.449 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.8936, allocations: 25.7 kB / 1.054 GB, free: 1.418 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.8937, allocations: 171.6 kB / 1.054 GB, free: 1.262 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.8937, allocations: 30.7 kB / 1.054 GB, free: 1.234 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.8937, allocations: 0 / 1.054 GB, free: 1.234 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.8938, allocations: 329.8 kB / 1.054 GB, free: 0.9102 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.85e-05/0.8939, allocations: 23.88 kB / 1.054 GB, free: 0.8945 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.894, allocations: 99.33 kB / 1.054 GB, free: 0.7852 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.083e-05/0.8941, allocations: 46.53 kB / 1.054 GB, free: 0.75 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.8941, allocations: 3.938 kB / 1.054 GB, free: 0.7461 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002506/0.8943, allocations: 173.9 kB / 1.055 GB, free: 0.5938 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.8944, allocations: 8 kB / 1.055 GB, free: 0.5859 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.8944, allocations: 4 kB / 1.055 GB, free: 0.582 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/0.8945, allocations: 24.78 kB / 1.055 GB, free: 0.5586 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.8946, allocations: 20.09 kB / 1.055 GB, free: 0.5391 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009145/0.8956, allocations: 1.267 MB / 1.056 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.8957, allocations: 19.7 kB / 1.056 GB, free: 15.18 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.8957, allocations: 15.22 kB / 1.056 GB, free: 15.17 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.564e-05/0.8958, allocations: 104.9 kB / 1.056 GB, free: 15.06 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.8958, allocations: 11.91 kB / 1.056 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.8959, allocations: 16.41 kB / 1.056 GB, free: 15.04 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.8959, allocations: 0 / 1.056 GB, free: 15.04 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8959, allocations: 4.047 kB / 1.056 GB, free: 15.04 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.8959, allocations: 4 kB / 1.056 GB, free: 15.04 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.8963, allocations: 409.4 kB / 1.056 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.8963, allocations: 3.984 kB / 1.056 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.726e-05/0.8964, allocations: 8 kB / 1.056 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.829e-05/0.8964, allocations: 20.47 kB / 1.056 GB, free: 14.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.8964, allocations: 0 / 1.056 GB, free: 14.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007862/0.8972, allocations: 1.259 MB / 1.058 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8973, allocations: 0 / 1.058 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.8974, allocations: 206.2 kB / 1.058 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.8975, allocations: 92.94 kB / 1.058 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.8975, allocations: 7.953 kB / 1.058 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.607e-05/0.8976, allocations: 0 / 1.058 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.056e-05/0.8977, allocations: 11.48 kB / 1.058 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.8977, allocations: 4 kB / 1.058 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.426e-05/0.8978, allocations: 120.5 kB / 1.058 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8978, allocations: 0 / 1.058 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003304/0.8981, allocations: 51.75 kB / 1.058 GB, free: 12.79 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.0001113/0.8982, allocations: 103.2 kB / 1.058 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003135/0.8986, allocations: 188 kB / 1.058 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8986, allocations: 0 / 1.058 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.8987, allocations: 137.5 kB / 1.058 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.899, allocations: 30.78 kB / 1.059 GB, free: 12.35 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003725/0.8993, allocations: 213.2 kB / 1.059 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.8997, allocations: 0.7471 MB / 1.059 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.903e-05/0.8998, allocations: 25.19 kB / 1.059 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.174e-05/0.8998, allocations: 15.44 kB / 1.059 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of SimCode: time 3.81e-07/0.8998, allocations: 192 / 1.059 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of Templates: time 0.003786/0.9036, allocations: 1.427 MB / 1.061 GB, free: 9.938 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