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.257/2.257, allocations: 387.1 MB / 399.7 MB, free: 9.523 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.001051/0.00105, allocations: 172.9 kB / 492.3 MB, free: 0.6484 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.533/1.533, allocations: 221.3 MB / 0.7871 GB, free: 12.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.0009346/0.0009347, allocations: 87.95 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.236e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2696, allocations: 142.3 MB / 1.212 GB, free: 38.59 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8823/1.152, allocations: 175.6 MB / 1.384 GB, free: 18.7 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003444/1.152, allocations: 91.38 kB / 1.384 GB, free: 18.68 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.05343/1.206, allocations: 14.84 MB / 1.398 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.913e-06/1.206, allocations: 0 / 1.398 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.161e-05/1.206, allocations: 8 kB / 1.398 GB, free: 27.83 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.0006908/1.207, allocations: 464.6 kB / 1.399 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/1.207, allocations: 12.03 kB / 1.399 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/1.208, allocations: 75.73 kB / 1.399 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004071/1.208, allocations: 250.3 kB / 1.399 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/1.208, allocations: 11.69 kB / 1.399 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/1.208, allocations: 22.62 kB / 1.399 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/1.209, allocations: 290.3 kB / 1.399 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/1.209, allocations: 0 / 1.399 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/1.209, allocations: 7.5 kB / 1.399 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.814e-05/1.209, allocations: 20.3 kB / 1.4 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/1.209, allocations: 193.9 kB / 1.4 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/1.211, allocations: 1.469 MB / 1.401 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/1.211, allocations: 170.7 kB / 1.401 GB, free: 24.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.674e-05/1.211, allocations: 36.55 kB / 1.401 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/1.211, allocations: 0 / 1.401 GB, free: 24.88 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/1.211, allocations: 34.25 kB / 1.401 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/1.211, allocations: 0 / 1.401 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.000319/1.211, allocations: 112.2 kB / 1.401 GB, free: 24.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/1.211, allocations: 55.36 kB / 1.402 GB, free: 24.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/1.212, allocations: 182.4 kB / 1.402 GB, free: 24.51 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/1.212, allocations: 29.7 kB / 1.402 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.608e-05/1.212, allocations: 166.7 kB / 1.402 GB, free: 24.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/1.212, allocations: 26.83 kB / 1.402 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/1.212, allocations: 3.375 kB / 1.402 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.92e-05/1.212, allocations: 322.3 kB / 1.402 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.903e-05/1.212, allocations: 34.61 kB / 1.402 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/1.212, allocations: 102.9 kB / 1.402 GB, free: 23.85 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.966e-05/1.212, allocations: 49.89 kB / 1.402 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/1.212, allocations: 0 / 1.402 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003288/1.213, allocations: 185.3 kB / 1.403 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/1.213, allocations: 4.094 kB / 1.403 GB, free: 23.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.213, allocations: 11.88 kB / 1.403 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/1.213, allocations: 28.69 kB / 1.403 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/1.213, allocations: 31.94 kB / 1.403 GB, free: 23.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009461/1.214, allocations: 1.319 MB / 1.404 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/1.214, allocations: 19.19 kB / 1.404 GB, free: 22.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/1.214, allocations: 4 kB / 1.404 GB, free: 22.16 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 7.14e-05/1.214, allocations: 113.8 kB / 1.404 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.418e-05/1.214, allocations: 15.81 kB / 1.404 GB, free: 22.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/1.214, allocations: 18.91 kB / 1.404 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/1.214, allocations: 8.031 kB / 1.404 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/1.214, allocations: 4 kB / 1.404 GB, free: 22.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/1.214, allocations: 0 / 1.404 GB, free: 22.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/1.215, allocations: 448.1 kB / 1.405 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/1.215, allocations: 0 / 1.405 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.504e-05/1.215, allocations: 11.98 kB / 1.405 GB, free: 21.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.559e-05/1.215, allocations: 24.22 kB / 1.405 GB, free: 21.54 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/1.215, allocations: 4 kB / 1.405 GB, free: 21.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007331/1.216, allocations: 1.31 MB / 1.406 GB, free: 20.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.216, allocations: 4.156 kB / 1.406 GB, free: 20.13 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001728/1.216, allocations: 214.5 kB / 1.406 GB, free: 19.92 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.494e-05/1.216, allocations: 92.89 kB / 1.406 GB, free: 19.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/1.216, allocations: 3.984 kB / 1.406 GB, free: 19.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/1.216, allocations: 4 kB / 1.406 GB, free: 19.81 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/1.216, allocations: 3.375 kB / 1.406 GB, free: 19.81 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/1.216, allocations: 8 kB / 1.406 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001045/1.216, allocations: 141.1 kB / 1.406 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.216, allocations: 0 / 1.406 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003003/1.216, allocations: 57.97 kB / 1.406 GB, free: 19.63 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.0001136/1.217, allocations: 95.94 kB / 1.406 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003164/1.217, allocations: 211.1 kB / 1.407 GB, free: 19.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.217, allocations: 0 / 1.407 GB, free: 19.33 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/1.217, allocations: 145.4 kB / 1.407 GB, free: 19.19 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/1.217, allocations: 34.75 kB / 1.407 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003782/1.218, allocations: 233 kB / 1.407 GB, free: 18.94 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/1.218, allocations: 0.7593 MB / 1.408 GB, free: 18.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.23e-05/1.218, allocations: 29.3 kB / 1.408 GB, free: 18.13 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/1.218, allocations: 15.44 kB / 1.408 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of SimCode: time 2.9e-07/1.218, allocations: 0 / 1.408 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of Templates: time 0.003958/1.222, allocations: 1.625 MB / 1.409 GB, free: 16.53 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