Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.384/1.384, allocations: 249.5 MB / 257 MB, free: 6.98 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.001149/0.001149, allocations: 171.5 kB / 316.3 MB, free: 3.238 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.411/1.411, 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.0007743/0.0007744, allocations: 90.41 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.912e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1988, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7766/0.9755, allocations: 188.9 MB / 1.07 GB, free: 15.5 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.9759, allocations: 93.12 kB / 1.07 GB, free: 15.45 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.3323/1.308, allocations: 145.1 MB / 1.212 GB, free: 6.477 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.934e-06/1.308, allocations: 0 / 1.212 GB, free: 6.477 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0002126/1.308, allocations: 95.92 kB / 1.212 GB, free: 6.383 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.00813/1.317, allocations: 3.204 MB / 1.215 GB, free: 3.117 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/1.317, allocations: 12.03 kB / 1.215 GB, free: 3.105 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005329/1.322, allocations: 0.8225 MB / 1.216 GB, free: 2.277 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005557/1.328, allocations: 2.561 MB / 1.218 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/1.328, allocations: 120 kB / 1.218 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007073/1.328, allocations: 227.9 kB / 1.218 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006666/1.335, allocations: 3.591 MB / 1.222 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008137/1.343, allocations: 5.104 MB / 1.227 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.319e-05/1.343, allocations: 19.83 kB / 1.227 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003374/1.344, allocations: 12 kB / 1.227 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002417/1.344, allocations: 214.9 kB / 1.227 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0297/1.374, allocations: 26.89 MB / 1.253 GB, free: 8.676 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/1.375, allocations: 1.048 MB / 1.254 GB, free: 7.617 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/1.376, allocations: 0.9573 MB / 1.255 GB, free: 6.66 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.291e-05/1.377, allocations: 13.31 kB / 1.255 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.04e-05/1.377, allocations: 43.88 kB / 1.255 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=110): time 3.146e-06/1.377, allocations: 0 / 1.255 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of matching and sorting (n=131): time 0.5005/1.877, allocations: 6.776 MB / 1.262 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/1.877, allocations: 71 kB / 1.262 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/1.879, allocations: 1.066 MB / 1.263 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002498/1.879, allocations: 25.7 kB / 1.263 GB, free: 232.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001058/1.881, allocations: 1.68 MB / 1.265 GB, free: 232.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004411/1.881, allocations: 450.8 kB / 1.265 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/1.881, allocations: 0 / 1.265 GB, free: 232.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.881, allocations: 377.9 kB / 1.266 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/1.882, allocations: 0.8235 MB / 1.266 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/1.884, allocations: 1.4 MB / 1.268 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/1.886, allocations: 1.073 MB / 1.269 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/1.886, allocations: 8 kB / 1.269 GB, free: 231.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005523/1.891, allocations: 2.965 MB / 1.272 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/1.891, allocations: 14.19 kB / 1.272 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/1.891, allocations: 18.84 kB / 1.272 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002191/1.893, allocations: 0.701 MB / 1.272 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/1.895, allocations: 400.9 kB / 1.273 GB, free: 231.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/1.908, allocations: 14.95 MB / 1.287 GB, free: 220.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/1.91, allocations: 67.28 kB / 1.287 GB, free: 220.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/1.91, allocations: 81.02 kB / 1.288 GB, free: 220.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003065/1.911, allocations: 159.4 kB / 1.288 GB, free: 220.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/1.911, allocations: 184 kB / 1.288 GB, free: 220.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004895/1.916, allocations: 2.589 MB / 1.29 GB, free: 220 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/1.916, allocations: 17.16 kB / 1.29 GB, free: 220 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/1.916, allocations: 6.344 kB / 1.29 GB, free: 220 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/1.916, allocations: 7.625 kB / 1.29 GB, free: 220 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009543/1.925, allocations: 5.376 MB / 1.296 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.925, allocations: 7.906 kB / 1.296 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/1.927, allocations: 238 kB / 1.296 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/1.929, allocations: 0.63 MB / 1.297 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/1.929, allocations: 13.05 kB / 1.297 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01192/1.941, allocations: 14.68 MB / 1.311 GB, free: 208.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/1.941, allocations: 13.55 kB / 1.311 GB, free: 208.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00746/1.948, allocations: 4.092 MB / 1.315 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.949, allocations: 433.5 kB / 1.315 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000225/1.95, allocations: 18.77 kB / 1.315 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009112/1.951, allocations: 59.91 kB / 1.315 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/1.951, allocations: 115.5 kB / 1.315 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.968e-05/1.951, allocations: 46.84 kB / 1.316 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001342/1.952, allocations: 0.7883 MB / 1.316 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.952, allocations: 0.9688 kB / 1.316 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003074/1.955, allocations: 0.6373 MB / 1.317 GB, free: 207.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002672/1.956, allocations: 135.5 kB / 1.317 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004776/1.961, allocations: 3.228 MB / 1.32 GB, free: 206.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.961, allocations: 1.031 kB / 1.32 GB, free: 206.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.002408/1.963, allocations: 2.133 MB / 1.322 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/1.965, allocations: 0.5246 MB / 1.323 GB, free: 205.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008494/1.974, allocations: 5.169 MB / 1.328 GB, free: 204 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002224/1.976, allocations: 2.736 MB / 1.331 GB, free: 203.2 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001556/1.978, allocations: 465.8 kB / 1.331 GB, free: 203.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/1.978, allocations: 111.1 kB / 1.331 GB, free: 203.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.553e-06/1.978, allocations: 0 / 1.331 GB, free: 203.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.04615/2.024, allocations: 27.86 MB / 1.358 GB, free: 202.1 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches