Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001775/0.001775, allocations: 191.6 kB / 17.31 MB, free: 5.613 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.342/1.342, 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.0-master/package.mo): time 2.472/2.472, allocations: 442.6 MB / 0.7165 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 58.12 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3254, allocations: 153 MB / 1.027 GB, free: 2.012 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03908/0.3645, allocations: 34.84 MB / 1.061 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01947/0.384, allocations: 11.51 MB / 1.072 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003854/0.3879, allocations: 163.2 kB / 1.072 GB, free: 3.359 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.577/0.965, allocations: 4.245 MB / 1.076 GB, free: 20.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006571/0.9716, allocations: 1.993 MB / 1.078 GB, free: 20.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.007546/0.9792, allocations: 2.399 MB / 1.081 GB, free: 20.11 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01322/0.9924, allocations: 8.46 MB / 1.089 GB, free: 20.1 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01675/1.009, allocations: 11.11 MB / 1.1 GB, free: 18.05 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00814/1.017, allocations: 3.741 MB / 1.103 GB, free: 16.89 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008046/1.025, allocations: 4.196 MB / 1.107 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.003224/1.029, allocations: 0.7795 MB / 1.108 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006903/1.036, allocations: 2.028 MB / 1.11 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.006329/1.042, allocations: 3.052 MB / 1.113 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0115/1.053, allocations: 3.397 MB / 1.116 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02058/1.074, allocations: 11.98 MB / 1.128 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/1.074, allocations: 0 / 1.128 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.875e-06/1.074, allocations: 0 / 1.128 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0006208/1.075, allocations: 1.219 kB / 1.128 GB, free: 7.16 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02231/1.097, allocations: 5.802 MB / 1.134 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/1.097, allocations: 16.47 kB / 1.134 GB, free: 3.383 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008924/1.106, allocations: 1.058 MB / 1.135 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009748/1.116, allocations: 3.457 MB / 1.138 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004351/1.116, allocations: 411.5 kB / 1.139 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003531/1.12, allocations: 0.5399 MB / 1.139 GB, free: 344 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02759/1.148, allocations: 9.073 MB / 1.148 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002141/1.148, allocations: 33.84 kB / 1.148 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001495/1.149, allocations: 238 kB / 1.148 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005312/1.15, allocations: 355.2 kB / 1.149 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/1.168, allocations: 6.821 MB / 1.155 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05464/1.223, allocations: 39.8 MB / 1.194 GB, free: 9.676 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004283/1.227, allocations: 3.105 MB / 1.197 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002861/1.23, allocations: 1.972 MB / 1.199 GB, free: 4.461 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001147/1.23, allocations: 21.38 kB / 1.199 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/1.23, allocations: 52.56 kB / 1.199 GB, free: 4.383 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=179): time 3.256e-06/1.23, allocations: 7.938 kB / 1.199 GB, free: 4.375 MB / 0.9044 GB Notification: Performance of matching and sorting (n=182): time 0.02588/1.256, allocations: 9.979 MB / 1.209 GB, free: 10.3 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/1.256, allocations: 73.41 kB / 1.209 GB, free: 10.22 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002224/1.259, allocations: 1.522 MB / 1.211 GB, free: 8.656 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002286/1.259, allocations: 53.7 kB / 1.211 GB, free: 8.598 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001473/1.26, allocations: 2.255 MB / 1.213 GB, free: 6.32 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007737/1.261, allocations: 0.6244 MB / 1.213 GB, free: 5.699 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006819/1.262, allocations: 415.9 kB / 1.214 GB, free: 5.285 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.592e-05/1.262, allocations: 305.1 kB / 1.214 GB, free: 4.984 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/1.264, allocations: 1.176 MB / 1.215 GB, free: 3.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002351/1.266, allocations: 1.881 MB / 1.217 GB, free: 1.602 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004427/1.27, allocations: 3.37 MB / 1.22 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.27, allocations: 8 kB / 1.22 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.00825/1.279, allocations: 4.589 MB / 1.225 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/1.279, allocations: 16 kB / 1.225 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.302e-05/1.279, allocations: 20 kB / 1.225 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004099/1.283, allocations: 1.58 MB / 1.226 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/1.284, allocations: 355.3 kB / 1.227 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02338/1.308, allocations: 18.59 MB / 1.245 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/1.31, allocations: 115.9 kB / 1.245 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00028/1.31, allocations: 99.98 kB / 1.245 GB, free: 4.008 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * 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 {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003723/1.314, allocations: 1.891 MB / 1.247 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005336/1.315, allocations: 245.2 kB / 1.247 GB, free: 1.863 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007024/1.322, allocations: 4.086 MB / 1.251 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.322, allocations: 20 kB / 1.251 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.662e-05/1.322, allocations: 16 kB / 1.251 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/1.322, allocations: 11.95 kB / 1.251 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/1.339, allocations: 9.453 MB / 1.26 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.339, allocations: 4 kB / 1.26 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008765/1.34, allocations: 187.7 kB / 1.261 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003523/1.344, allocations: 1.354 MB / 1.262 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002219/1.344, allocations: 32 kB / 1.262 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/1.365, allocations: 17.35 MB / 1.279 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/1.366, allocations: 11.94 kB / 1.279 GB, free: 0.5273 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007093/1.373, allocations: 4.068 MB / 1.283 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.374, allocations: 0.5256 MB / 1.283 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003436/1.375, allocations: 36 kB / 1.283 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009751/1.376, allocations: 87.89 kB / 1.284 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005006/1.376, allocations: 161.7 kB / 1.284 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/1.376, allocations: 44 kB / 1.284 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001326/1.378, allocations: 1.008 MB / 1.285 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.378, allocations: 0 / 1.285 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003263/1.381, allocations: 0.9922 MB / 1.286 GB, free: 9.477 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (85): * Single equations (assignments): 81 * 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 {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002803/1.381, allocations: 143.1 kB / 1.286 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006911/1.388, allocations: 4.307 MB / 1.29 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.388, allocations: 0 / 1.29 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004424/1.392, allocations: 2.662 MB / 1.293 GB, free: 2.262 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/1.396, allocations: 0.784 MB / 1.293 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01652/1.413, allocations: 8.605 MB / 1.302 GB, free: 8.848 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004496/1.417, allocations: 3.576 MB / 1.305 GB, free: 5.238 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001468/1.419, allocations: 467.9 kB / 1.306 GB, free: 4.777 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/1.419, allocations: 115.4 kB / 1.306 GB, free: 4.664 MB / 1.014 GB Notification: Performance of SimCode: time 6.51e-07/1.419, allocations: 0 / 1.306 GB, free: 4.664 MB / 1.014 GB Notification: Performance of Templates: time 0.07704/1.496, allocations: 43.88 MB / 1.349 GB, free: 9.328 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches