Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009172/0.0009173, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 184.4 kB / 16.92 MB, free: 6.684 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.369/1.369, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.686/2.686, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.0003805, allocations: 14.88 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3489, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03024/0.3792, allocations: 25.74 MB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01521/0.3944, allocations: 7.993 MB / 1.092 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002947/0.3974, allocations: 103.4 kB / 1.092 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.3996, allocations: 0.5193 MB / 1.093 GB, free: 2.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004861/0.4045, allocations: 1.493 MB / 1.094 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004346/0.4089, allocations: 1.391 MB / 1.096 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01069/0.4196, allocations: 8.704 MB / 1.104 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01656/0.4362, allocations: 9.146 MB / 1.113 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004247/0.4405, allocations: 1.859 MB / 1.115 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004852/0.4454, allocations: 2.464 MB / 1.117 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.4465, allocations: 212 kB / 1.118 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003549/0.4501, allocations: 1.197 MB / 1.119 GB, free: 7.922 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003042/0.4531, allocations: 1.668 MB / 1.12 GB, free: 6.25 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004838/0.458, allocations: 1.961 MB / 1.122 GB, free: 4.273 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.009603/0.4676, allocations: 6.658 MB / 1.129 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4678, allocations: 4 kB / 1.129 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.396e-06/0.4678, allocations: 0 / 1.129 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0003339/0.4681, allocations: 0 / 1.129 GB, free: 13.59 MB / 0.8887 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.01033/0.4785, allocations: 3.425 MB / 1.132 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.4785, allocations: 8.031 kB / 1.132 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005276/0.4838, allocations: 0.8 MB / 1.133 GB, free: 9.293 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005556/0.4894, allocations: 2.421 MB / 1.135 GB, free: 6.816 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/0.4897, allocations: 283.6 kB / 1.136 GB, free: 6.539 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001547/0.4913, allocations: 372.5 kB / 1.136 GB, free: 6.176 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01536/0.5067, allocations: 5.988 MB / 1.142 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002147/0.507, allocations: 31.7 kB / 1.142 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001243/0.5082, allocations: 156 kB / 1.142 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007405/0.509, allocations: 278.9 kB / 1.142 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0104/0.5194, allocations: 4.52 MB / 1.147 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03634/0.5558, allocations: 27.71 MB / 1.174 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.5576, allocations: 1.115 MB / 1.175 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.559, allocations: 1.015 MB / 1.176 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.23e-05/0.5591, allocations: 13 kB / 1.176 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.5592, allocations: 51.56 kB / 1.176 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=110): time 3.997e-06/0.5592, allocations: 0 / 1.176 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=131): time 0.02247/0.5817, allocations: 9.678 MB / 1.185 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.5818, allocations: 64.72 kB / 1.185 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/0.5842, allocations: 1.498 MB / 1.187 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.5843, allocations: 49.7 kB / 1.187 GB, free: 15 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001385/0.5857, allocations: 1.671 MB / 1.188 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005267/0.5863, allocations: 461.4 kB / 1.189 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002318/0.5865, allocations: 149.6 kB / 1.189 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5867, allocations: 305.1 kB / 1.189 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.5881, allocations: 0.9174 MB / 1.19 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.5898, allocations: 1.459 MB / 1.192 GB, free: 9.781 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/0.5931, allocations: 2.546 MB / 1.194 GB, free: 6.992 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.981e-05/0.5932, allocations: 8 kB / 1.194 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006034/0.5992, allocations: 3.285 MB / 1.197 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.5993, allocations: 12 kB / 1.197 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-05/0.5993, allocations: 20 kB / 1.197 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002307/0.6016, allocations: 0.734 MB / 1.198 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.6032, allocations: 391.3 kB / 1.198 GB, free: 2.484 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/0.6192, allocations: 15.77 MB / 1.214 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.621, allocations: 103.8 kB / 1.214 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/0.6212, allocations: 76 kB / 1.214 GB, free: 1.328 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002464/0.6236, allocations: 1.309 MB / 1.215 GB, free: 8 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000409/0.6241, allocations: 201.8 kB / 1.216 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005101/0.6292, allocations: 2.78 MB / 1.218 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.6292, allocations: 16 kB / 1.218 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.6292, allocations: 8 kB / 1.218 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.6292, allocations: 7.969 kB / 1.218 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.6397, allocations: 6.224 MB / 1.224 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.6398, allocations: 4.141 kB / 1.224 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.6409, allocations: 235.6 kB / 1.225 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.6429, allocations: 0.6677 MB / 1.225 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.643, allocations: 32 kB / 1.225 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/0.6578, allocations: 15.53 MB / 1.24 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.6578, allocations: 15.88 kB / 1.24 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006744/0.6646, allocations: 4.004 MB / 1.244 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.6658, allocations: 454.6 kB / 1.245 GB, free: 280 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.6661, allocations: 35.98 kB / 1.245 GB, free: 244 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009462/0.667, allocations: 87.89 kB / 1.245 GB, free: 156 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/0.6674, allocations: 112.7 kB / 1.245 GB, free: 44 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6675, allocations: 47.98 kB / 1.245 GB, free: 15.99 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001529/0.669, allocations: 0.9942 MB / 1.246 GB, free: 15.01 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6691, allocations: 0 / 1.246 GB, free: 15.01 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002637/0.6717, allocations: 0.6836 MB / 1.247 GB, free: 14.33 MB / 1.014 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003231/0.672, allocations: 157.4 kB / 1.247 GB, free: 14.16 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.005481/0.6775, allocations: 3.499 MB / 1.25 GB, free: 10.55 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.6776, allocations: 0 / 1.25 GB, free: 10.55 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003383/0.681, allocations: 2.291 MB / 1.253 GB, free: 8.141 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004247/0.6852, allocations: 0.6126 MB / 1.253 GB, free: 7.531 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5537/1.239, allocations: 8.702 MB / 1.262 GB, free: 183.4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/1.242, allocations: 2.73 MB / 1.264 GB, free: 182.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006207/1.243, allocations: 126 kB / 1.264 GB, free: 182.7 MB / 1.014 GB Notification: Performance of SimCode: time 1.072e-06/1.243, allocations: 0.9688 kB / 1.264 GB, free: 182.7 MB / 1.014 GB Notification: Performance of Templates: time 0.1581/1.401, allocations: 209.2 MB / 1.469 GB, free: 6.195 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches