Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.264/2.264, allocations: 390.5 MB / 398 MB, free: 10.96 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.000994/0.0009939, allocations: 184.8 kB / 491.2 MB, free: 1.57 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.647/1.647, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.001045/0.001045, allocations: 95.78 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.826e-05/1.83e-05, allocations: 5.953 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3089, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.088/1.396, allocations: 192.9 MB / 1.401 GB, free: 7.688 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/1.397, allocations: 106.2 kB / 1.401 GB, free: 7.625 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08159/1.478, allocations: 34.1 MB / 1.434 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.813e-06/1.479, allocations: 0 / 1.434 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.631e-05/1.479, allocations: 19.94 kB / 1.434 GB, free: 10.81 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002145/1.481, allocations: 0.7924 MB / 1.435 GB, free: 10.01 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/1.481, allocations: 16.02 kB / 1.435 GB, free: 9.992 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001824/1.483, allocations: 193.8 kB / 1.435 GB, free: 9.805 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001265/1.484, allocations: 495.3 kB / 1.436 GB, free: 9.336 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/1.484, allocations: 16 kB / 1.436 GB, free: 9.32 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/1.484, allocations: 39.06 kB / 1.436 GB, free: 9.285 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009353/1.485, allocations: 462.3 kB / 1.436 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/1.486, allocations: 0.7897 MB / 1.437 GB, free: 8.258 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-05/1.486, allocations: 15.83 kB / 1.437 GB, free: 8.242 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.825e-05/1.487, allocations: 4 kB / 1.437 GB, free: 8.238 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.517e-05/1.487, allocations: 41.23 kB / 1.437 GB, free: 8.199 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/1.492, allocations: 4.481 MB / 1.441 GB, free: 3.777 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/1.492, allocations: 284.1 kB / 1.442 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/1.492, allocations: 214.4 kB / 1.442 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/1.492, allocations: 0 / 1.442 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/1.492, allocations: 42 kB / 1.442 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=33): time 1.533e-06/1.492, allocations: 0 / 1.442 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of matching and sorting (n=40): time 0.00448/1.497, allocations: 1.981 MB / 1.444 GB, free: 1.742 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/1.497, allocations: 59.34 kB / 1.444 GB, free: 1.672 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004079/1.497, allocations: 328.2 kB / 1.444 GB, free: 1.414 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.29e-05/1.497, allocations: 25.7 kB / 1.444 GB, free: 1.383 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/1.498, allocations: 340.7 kB / 1.444 GB, free: 1.117 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/1.498, allocations: 136 kB / 1.445 GB, free: 1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/1.498, allocations: 0 / 1.445 GB, free: 1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001828/1.498, allocations: 364.1 kB / 1.445 GB, free: 0.6562 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/1.498, allocations: 223.4 kB / 1.445 GB, free: 0.5195 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/1.499, allocations: 358.8 kB / 1.445 GB, free: 196 kB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004042/1.499, allocations: 274.3 kB / 1.446 GB, free: 16 kB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/1.499, allocations: 0 / 1.446 GB, free: 16 kB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001663/1.501, allocations: 0.8227 MB / 1.447 GB, free: 15.37 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/1.501, allocations: 8 kB / 1.447 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.501, allocations: 4 kB / 1.447 GB, free: 15.36 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007763/1.502, allocations: 218.1 kB / 1.447 GB, free: 15.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005275/1.502, allocations: 115.6 kB / 1.447 GB, free: 15.07 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00474/1.507, allocations: 4.732 MB / 1.452 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/1.508, allocations: 19.97 kB / 1.452 GB, free: 10.43 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.354e-05/1.508, allocations: 23.81 kB / 1.452 GB, free: 10.41 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * 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 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001679/1.508, allocations: 120.7 kB / 1.452 GB, free: 10.28 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/1.508, allocations: 51.39 kB / 1.452 GB, free: 10.23 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/1.509, allocations: 0.7208 MB / 1.452 GB, free: 9.695 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/1.509, allocations: 4 kB / 1.452 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/1.509, allocations: 7.953 kB / 1.452 GB, free: 9.684 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/1.509, allocations: 3.984 kB / 1.452 GB, free: 9.68 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/1.512, allocations: 1.356 MB / 1.454 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.512, allocations: 0 / 1.454 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/1.512, allocations: 72.06 kB / 1.454 GB, free: 8.48 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006535/1.513, allocations: 202.2 kB / 1.454 GB, free: 8.312 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/1.513, allocations: 4 kB / 1.454 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004615/1.518, allocations: 4.664 MB / 1.459 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.518, allocations: 0 / 1.459 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/1.52, allocations: 1.163 MB / 1.46 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003365/1.52, allocations: 166.1 kB / 1.46 GB, free: 2.605 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.773e-05/1.52, allocations: 4 kB / 1.46 GB, free: 2.602 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/1.52, allocations: 19.97 kB / 1.46 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/1.52, allocations: 42.72 kB / 1.46 GB, free: 2.547 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/1.52, allocations: 11.38 kB / 1.46 GB, free: 2.539 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003208/1.521, allocations: 257 kB / 1.46 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/1.521, allocations: 0 / 1.46 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000816/1.522, allocations: 155.9 kB / 1.46 GB, free: 2.191 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002358/1.522, allocations: 119.2 kB / 1.46 GB, free: 2.066 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001599/1.523, allocations: 0.9295 MB / 1.461 GB, free: 1.301 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/1.523, allocations: 7.938 kB / 1.461 GB, free: 1.293 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009241/1.524, allocations: 0.6338 MB / 1.462 GB, free: 0.7227 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008039/1.525, allocations: 145.5 kB / 1.462 GB, free: 0.6016 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/1.527, allocations: 0.9311 MB / 1.463 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/1.528, allocations: 0.9626 MB / 1.464 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0003949/1.528, allocations: 100.6 kB / 1.464 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/1.528, allocations: 39.42 kB / 1.464 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of SimCode: time 5.71e-07/1.528, allocations: 3.938 kB / 1.464 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of Templates: time 0.01436/1.543, allocations: 7.46 MB / 1.471 GB, free: 7.266 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches