Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 110.7 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 187 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.697/2.697, allocations: 461.9 MB / 0.7355 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001473, allocations: 59.91 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9225/0.924, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.00933/0.9333, allocations: 6.158 MB / 1.214 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005789/0.9392, allocations: 3.172 MB / 1.218 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007637/0.94, allocations: 31.81 kB / 1.218 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.943, allocations: 0.9331 MB / 1.218 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001747/0.9448, allocations: 477.5 kB / 1.219 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001696/0.9465, allocations: 0.4987 MB / 1.219 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001777/0.9483, allocations: 1.092 MB / 1.22 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.9496, allocations: 0.6426 MB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009075/0.9505, allocations: 442.4 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009607/0.9515, allocations: 470.3 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.00023/0.9517, allocations: 60 kB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.953, allocations: 494.8 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004218/0.9534, allocations: 287.2 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0006904/0.9541, allocations: 401.9 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001914/0.9561, allocations: 1.174 MB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.9561, allocations: 0 / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9561, allocations: 4 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.909e-05/0.9561, allocations: 0 / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002313/0.9585, allocations: 1.063 MB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.9585, allocations: 8.031 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001711/0.9602, allocations: 223.7 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.9613, allocations: 0.5961 MB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.9613, allocations: 45.67 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.9615, allocations: 64.36 kB / 1.226 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.9631, allocations: 1.034 MB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.246e-05/0.9632, allocations: 19.83 kB / 1.227 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.9633, allocations: 27.98 kB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-05/0.9634, allocations: 69.28 kB / 1.227 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.9645, allocations: 0.6918 MB / 1.228 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005477/0.97, allocations: 5.729 MB / 1.234 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008516/0.9709, allocations: 0.6004 MB / 1.234 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008459/0.9718, allocations: 436.2 kB / 1.235 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.9718, allocations: 4.688 kB / 1.235 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.9718, allocations: 34.56 kB / 1.235 GB, free: 2.008 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=41): time 2.394e-06/0.9719, allocations: 3.938 kB / 1.235 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of matching and sorting (n=42): time 0.004433/0.9763, allocations: 2.017 MB / 1.237 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.9764, allocations: 59.41 kB / 1.237 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005442/0.9769, allocations: 458.8 kB / 1.237 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.89e-05/0.977, allocations: 37.7 kB / 1.237 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.9772, allocations: 383 kB / 1.238 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.9774, allocations: 149.8 kB / 1.238 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.9776, allocations: 114.2 kB / 1.238 GB, free: 14.67 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.9777, allocations: 358.8 kB / 1.238 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.9781, allocations: 249.2 kB / 1.238 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004994/0.9786, allocations: 453 kB / 1.239 GB, free: 13.53 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.9796, allocations: 0.7478 MB / 1.24 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.9796, allocations: 4 kB / 1.24 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001871/0.9815, allocations: 1.042 MB / 1.241 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.9815, allocations: 8.875 kB / 1.241 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.9815, allocations: 8 kB / 1.241 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009854/0.9825, allocations: 323.1 kB / 1.241 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.9828, allocations: 95.83 kB / 1.241 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007551/0.9904, allocations: 7.482 MB / 1.248 GB, free: 3.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.9909, allocations: 28.03 kB / 1.248 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.9909, allocations: 27.98 kB / 1.248 GB, free: 3.082 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004028/0.9913, allocations: 247.1 kB / 1.249 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.9915, allocations: 63.28 kB / 1.249 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/0.9932, allocations: 0.9 MB / 1.25 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.9932, allocations: 4 kB / 1.25 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.9932, allocations: 4 kB / 1.25 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.9932, allocations: 0 / 1.25 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.9959, allocations: 1.671 MB / 1.251 GB, free: 88 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.996, allocations: 8.031 kB / 1.251 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.9961, allocations: 39.91 kB / 1.251 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009455/0.9971, allocations: 307.2 kB / 1.252 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.9971, allocations: 8 kB / 1.252 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007281/1.004, allocations: 7.462 MB / 1.259 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.004, allocations: 7.938 kB / 1.259 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/1.006, allocations: 0.995 MB / 1.26 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/1.006, allocations: 172.3 kB / 1.26 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/1.007, allocations: 12 kB / 1.26 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/1.007, allocations: 27.97 kB / 1.26 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.007, allocations: 43.83 kB / 1.26 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/1.007, allocations: 12 kB / 1.26 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003828/1.007, allocations: 314.9 kB / 1.26 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/1.007, allocations: 3.938 kB / 1.26 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008426/1.008, allocations: 192 kB / 1.261 GB, free: 5.867 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001839/1.008, allocations: 111.2 kB / 1.261 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001952/1.01, allocations: 1.191 MB / 1.262 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.01, allocations: 0 / 1.262 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001228/1.012, allocations: 0.8503 MB / 1.263 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/1.013, allocations: 216.8 kB / 1.263 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/1.015, allocations: 1.291 MB / 1.264 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/1.016, allocations: 0.9959 MB / 1.265 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/1.016, allocations: 47.36 kB / 1.265 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/1.016, allocations: 0 / 1.265 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of Templates: time 0.02409/1.04, allocations: 18.68 MB / 1.283 GB, free: 14.34 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,R1.v[1],R1.v[2],R2.v[1],R2.v[2],R3.v[1],R3.v[2],R1.i[1],R1.i[2],load_sc.i[1],load_sc.i[2],R2.i[1],R2.i[2],R3.i[1],R3.i[2] Variables in the result:R1.i[1],R1.i[2],R1.v[1],R1.v[2],R2.i[1],R2.i[2],R2.v[1],R2.v[2],R3.i[1],R3.i[2],R3.v[1],R3.v[2],load_sc.i[1],load_sc.i[2],time