Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.339/2.339, allocations: 393.5 MB / 408.4 MB, free: 10.91 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.001692/0.001693, allocations: 183.2 kB / 0.4902 GB, free: 2.098 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.639/1.639, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.001078/0.001078, allocations: 108 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004024, allocations: 11.09 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3385, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2258/0.5644, allocations: 177.6 MB / 1.403 GB, free: 7.926 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.5648, allocations: 99.94 kB / 1.403 GB, free: 7.828 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.03738/0.6022, allocations: 15.36 MB / 1.418 GB, free: 8.254 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6022, allocations: 0 / 1.418 GB, free: 8.254 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.17e-05/0.6023, allocations: 4 kB / 1.418 GB, free: 8.25 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008298/0.6031, allocations: 0.5066 MB / 1.418 GB, free: 7.695 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.6032, allocations: 8.031 kB / 1.418 GB, free: 7.688 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/0.6038, allocations: 87.64 kB / 1.418 GB, free: 7.602 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.6042, allocations: 251.7 kB / 1.419 GB, free: 7.316 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.6043, allocations: 16.44 kB / 1.419 GB, free: 7.301 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.6043, allocations: 20 kB / 1.419 GB, free: 7.281 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005305/0.6048, allocations: 308.3 kB / 1.419 GB, free: 6.953 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.6048, allocations: 0 / 1.419 GB, free: 6.953 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.6049, allocations: 12 kB / 1.419 GB, free: 6.941 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.6049, allocations: 16.42 kB / 1.419 GB, free: 6.926 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/0.6053, allocations: 217.5 kB / 1.419 GB, free: 6.715 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.6069, allocations: 1.498 MB / 1.421 GB, free: 5.051 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.6073, allocations: 199.7 kB / 1.421 GB, free: 4.828 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.6074, allocations: 0 / 1.421 GB, free: 4.828 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.6074, allocations: 30.56 kB / 1.421 GB, free: 4.789 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.6074, allocations: 4 kB / 1.421 GB, free: 4.785 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0006025/0.608, allocations: 259.6 kB / 1.421 GB, free: 4.504 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.6081, allocations: 55.36 kB / 1.421 GB, free: 4.438 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.6083, allocations: 183.6 kB / 1.421 GB, free: 4.246 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.6083, allocations: 33.7 kB / 1.421 GB, free: 4.207 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6084, allocations: 171.8 kB / 1.421 GB, free: 4.035 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.6085, allocations: 35.53 kB / 1.422 GB, free: 4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.6085, allocations: 7.938 kB / 1.422 GB, free: 3.992 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.6086, allocations: 322.8 kB / 1.422 GB, free: 3.668 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.861e-05/0.6087, allocations: 43.97 kB / 1.422 GB, free: 3.625 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.6088, allocations: 113.9 kB / 1.422 GB, free: 3.484 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.609, allocations: 63.92 kB / 1.422 GB, free: 3.422 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.609, allocations: 0 / 1.422 GB, free: 3.422 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003667/0.6093, allocations: 214.3 kB / 1.422 GB, free: 3.203 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.6094, allocations: 4 kB / 1.422 GB, free: 3.199 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.6094, allocations: 7.938 kB / 1.422 GB, free: 3.191 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001769/0.6096, allocations: 24.84 kB / 1.422 GB, free: 3.164 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.6097, allocations: 27.98 kB / 1.422 GB, free: 3.137 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001104/0.6108, allocations: 1.331 MB / 1.424 GB, free: 1.668 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.611, allocations: 23.77 kB / 1.424 GB, free: 1.645 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.611, allocations: 8 kB / 1.424 GB, free: 1.637 MB / 0.9167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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.0001467/0.6112, allocations: 146 kB / 1.424 GB, free: 1.484 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.6112, allocations: 23.75 kB / 1.424 GB, free: 1.461 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.914e-05/0.6113, allocations: 21.39 kB / 1.424 GB, free: 1.438 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.6113, allocations: 4 kB / 1.424 GB, free: 1.434 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.6113, allocations: 0 / 1.424 GB, free: 1.434 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6113, allocations: 0 / 1.424 GB, free: 1.434 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.6119, allocations: 491.1 kB / 1.424 GB, free: 0.8945 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.6119, allocations: 0 / 1.424 GB, free: 0.8945 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.299e-05/0.612, allocations: 12 kB / 1.424 GB, free: 0.8828 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.952e-05/0.6121, allocations: 16.84 kB / 1.424 GB, free: 0.8633 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.6121, allocations: 8 kB / 1.424 GB, free: 0.8555 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7211/1.333, allocations: 1.308 MB / 1.426 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.333, allocations: 3.844 kB / 1.426 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/1.334, allocations: 230.9 kB / 1.426 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/1.334, allocations: 100.3 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/1.334, allocations: 6.719 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/1.334, allocations: 8.359 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/1.334, allocations: 6.703 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/1.334, allocations: 4.047 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001565/1.334, allocations: 153.9 kB / 1.426 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.2e-07/1.334, allocations: 1.875 kB / 1.426 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004598/1.335, allocations: 58.78 kB / 1.426 GB, free: 183.6 MB / 0.9167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.0001373/1.335, allocations: 106.4 kB / 1.426 GB, free: 183.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0005217/1.335, allocations: 226.2 kB / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.335, allocations: 0 / 1.426 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/1.336, allocations: 163.1 kB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/1.336, allocations: 29.72 kB / 1.427 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000703/1.337, allocations: 483.4 kB / 1.427 GB, free: 183 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/1.337, allocations: 0.7554 MB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001114/1.337, allocations: 25.02 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/1.337, allocations: 17.28 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of SimCode: time 2.11e-07/1.337, allocations: 3.625 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.005138/1.342, allocations: 1.75 MB / 1.43 GB, free: 182.3 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches