Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel") 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.918 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.001002/0.001002, allocations: 172.9 kB / 316.3 MB, free: 3.23 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.358/1.358, allocations: 205.3 MB / 0.5672 GB, free: 15.83 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.0007768/0.0007766, allocations: 80.14 kB / 0.6714 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.226e-05/1.229e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1699, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7202/0.8901, allocations: 164.8 MB / 1.046 GB, free: 7.297 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.8904, allocations: 90.45 kB / 1.046 GB, free: 7.25 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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/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.04311/0.9335, allocations: 17.74 MB / 1.064 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9336, allocations: 0 / 1.064 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.302e-05/0.9336, allocations: 8 kB / 1.064 GB, free: 8.578 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001001/0.9346, allocations: 0.6187 MB / 1.064 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.9347, allocations: 8.031 kB / 1.064 GB, free: 7.93 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.9357, allocations: 159.8 kB / 1.064 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005687/0.9363, allocations: 340.1 kB / 1.065 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.9363, allocations: 12 kB / 1.065 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.9364, allocations: 20 kB / 1.065 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005181/0.9369, allocations: 338.5 kB / 1.065 GB, free: 7.184 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006776/0.9376, allocations: 473.1 kB / 1.065 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.9376, allocations: 0 / 1.065 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/0.9377, allocations: 0 / 1.065 GB, free: 6.801 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.371e-05/0.9377, allocations: 28.77 kB / 1.066 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.9401, allocations: 2.33 MB / 1.068 GB, free: 4.453 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.9407, allocations: 251 kB / 1.068 GB, free: 4.285 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.9408, allocations: 104.8 kB / 1.068 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.9408, allocations: 4.344 kB / 1.068 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.9409, allocations: 34.52 kB / 1.068 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.9409, allocations: 0 / 1.068 GB, free: 4.168 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001477/0.9424, allocations: 0.7943 MB / 1.069 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.9424, allocations: 59.39 kB / 1.069 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.9426, allocations: 222 kB / 1.069 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.9427, allocations: 25.7 kB / 1.069 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.9428, allocations: 234.7 kB / 1.069 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.806e-05/0.9429, allocations: 81.38 kB / 1.07 GB, free: 2.891 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.9429, allocations: 0 / 1.07 GB, free: 2.891 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.943, allocations: 338.2 kB / 1.07 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.9432, allocations: 91.77 kB / 1.07 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.9434, allocations: 176.4 kB / 1.07 GB, free: 2.336 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.9435, allocations: 125.9 kB / 1.07 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.9435, allocations: 0 / 1.07 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006356/0.9442, allocations: 391.8 kB / 1.071 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.9442, allocations: 16.02 kB / 1.071 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.9442, allocations: 0 / 1.071 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.9446, allocations: 87.77 kB / 1.071 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.9449, allocations: 59.91 kB / 1.071 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.9477, allocations: 3.901 MB / 1.075 GB, free: 13.73 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.9479, allocations: 11.95 kB / 1.075 GB, free: 13.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.948, allocations: 12 kB / 1.075 GB, free: 13.7 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.9481, allocations: 125.4 kB / 1.075 GB, free: 13.58 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.9482, allocations: 27.72 kB / 1.075 GB, free: 13.55 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.254e-05/0.9482, allocations: 34.83 kB / 1.075 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.9483, allocations: 0 / 1.075 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.9483, allocations: 4 kB / 1.075 GB, free: 13.53 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.9483, allocations: 0 / 1.075 GB, free: 13.53 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.9487, allocations: 342.2 kB / 1.075 GB, free: 13.22 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.9487, allocations: 0 / 1.075 GB, free: 13.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.9489, allocations: 35.92 kB / 1.075 GB, free: 13.19 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002759/0.9492, allocations: 87.62 kB / 1.075 GB, free: 13.11 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.9492, allocations: 0 / 1.075 GB, free: 13.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.952, allocations: 3.915 MB / 1.079 GB, free: 9.047 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.952, allocations: 0 / 1.079 GB, free: 9.047 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.9528, allocations: 0.5172 MB / 1.08 GB, free: 8.621 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.9529, allocations: 116 kB / 1.08 GB, free: 8.496 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.953, allocations: 12.09 kB / 1.08 GB, free: 8.484 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.9532, allocations: 8 kB / 1.08 GB, free: 8.477 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.9532, allocations: 19.09 kB / 1.08 GB, free: 8.461 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.9532, allocations: 7.688 kB / 1.08 GB, free: 8.457 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001493/0.9534, allocations: 170.9 kB / 1.08 GB, free: 8.316 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9534, allocations: 0 / 1.08 GB, free: 8.316 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004592/0.9539, allocations: 92 kB / 1.08 GB, free: 8.227 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001745/0.954, allocations: 106.4 kB / 1.08 GB, free: 8.117 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007341/0.9548, allocations: 0.5656 MB / 1.081 GB, free: 7.602 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.9548, allocations: 0 / 1.081 GB, free: 7.602 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004216/0.9552, allocations: 438.3 kB / 1.081 GB, free: 7.188 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.9556, allocations: 50.55 kB / 1.081 GB, free: 7.148 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008274/0.9564, allocations: 0.4912 MB / 1.082 GB, free: 6.68 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.9568, allocations: 0.8386 MB / 1.082 GB, free: 5.824 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001909/0.957, allocations: 55.25 kB / 1.082 GB, free: 5.773 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.9571, allocations: 31.36 kB / 1.082 GB, free: 5.742 MB / 0.698 GB Notification: Performance of SimCode: time 2.7e-07/0.9571, allocations: 0 / 1.082 GB, free: 5.742 MB / 0.698 GB Notification: Performance of Templates: time 0.007255/0.9644, allocations: 3.692 MB / 1.086 GB, free: 2.098 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches