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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001732/0.001732, allocations: 104.3 kB / 15.98 MB, free: 6.348 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.001314/0.001314, allocations: 199.8 kB / 16.91 MB, free: 6.188 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.435/1.435, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.931/2.931, allocations: 482.4 MB / 0.755 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 67.73 kB / 0.924 GB, free: 332 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8017/0.8037, allocations: 162.2 MB / 1.082 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03424/0.838, allocations: 26.43 MB / 1.108 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0162/0.8542, allocations: 7.999 MB / 1.116 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003468/0.8577, allocations: 111.9 kB / 1.116 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.007629/0.8654, allocations: 2.58 MB / 1.119 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005804/0.8713, allocations: 1.46 MB / 1.12 GB, free: 7.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006193/0.8775, allocations: 1.539 MB / 1.122 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01258/0.8901, allocations: 6.151 MB / 1.128 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02036/0.9105, allocations: 8.962 MB / 1.136 GB, free: 196 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006903/0.9174, allocations: 2.615 MB / 1.139 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006811/0.9242, allocations: 2.967 MB / 1.142 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001824/0.9261, allocations: 0.5085 MB / 1.142 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004274/0.9304, allocations: 1.285 MB / 1.144 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.003985/0.9344, allocations: 2.054 MB / 1.146 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.005244/0.9396, allocations: 2.382 MB / 1.148 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.009167/0.9488, allocations: 6.857 MB / 1.155 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.9489, allocations: 0 / 1.155 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.224e-06/0.9489, allocations: 0 / 1.155 GB, free: 4.527 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002194/0.9491, allocations: 1.031 kB / 1.155 GB, free: 4.527 MB / 0.8731 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.01187/0.961, allocations: 4.233 MB / 1.159 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.961, allocations: 8.031 kB / 1.159 GB, free: 0.7656 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004622/0.9657, allocations: 0.8002 MB / 1.16 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005047/0.9707, allocations: 2.428 MB / 1.162 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.971, allocations: 267.6 kB / 1.162 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008805/0.9719, allocations: 380.5 kB / 1.163 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01113/0.983, allocations: 5.992 MB / 1.168 GB, free: 6.598 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.71e-05/0.9832, allocations: 23.78 kB / 1.168 GB, free: 6.574 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004264/0.9836, allocations: 156 kB / 1.169 GB, free: 6.422 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006351/0.9842, allocations: 282.9 kB / 1.169 GB, free: 6.145 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008063/0.9923, allocations: 4.52 MB / 1.173 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03446/1.027, allocations: 27.66 MB / 1.2 GB, free: 3.449 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/1.029, allocations: 1.117 MB / 1.201 GB, free: 2.324 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/1.03, allocations: 1.023 MB / 1.202 GB, free: 1.301 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.526e-05/1.03, allocations: 13 kB / 1.202 GB, free: 1.289 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/1.03, allocations: 51.56 kB / 1.202 GB, free: 1.23 MB / 0.92 GB Notification: Performance of pre-optimization done (n=110): time 3.477e-06/1.03, allocations: 0 / 1.202 GB, free: 1.23 MB / 0.92 GB Notification: Performance of matching and sorting (n=131): time 0.02304/1.053, allocations: 9.674 MB / 1.212 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/1.053, allocations: 64.72 kB / 1.212 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/1.056, allocations: 1.498 MB / 1.213 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001365/1.056, allocations: 53.7 kB / 1.213 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001327/1.057, allocations: 1.663 MB / 1.215 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004698/1.057, allocations: 465.4 kB / 1.215 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005706/1.058, allocations: 331.2 kB / 1.216 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001336/1.058, allocations: 305.1 kB / 1.216 GB, free: 2.941 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/1.06, allocations: 0.9174 MB / 1.217 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/1.062, allocations: 1.467 MB / 1.218 GB, free: 324 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003603/1.065, allocations: 2.546 MB / 1.221 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/1.065, allocations: 4 kB / 1.221 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00635/1.072, allocations: 3.286 MB / 1.224 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/1.072, allocations: 12 kB / 1.224 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/1.072, allocations: 16 kB / 1.224 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/1.074, allocations: 0.7454 MB / 1.225 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/1.076, allocations: 383.4 kB / 1.225 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01901/1.095, allocations: 17.05 MB / 1.242 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/1.097, allocations: 100 kB / 1.242 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/1.097, allocations: 79.94 kB / 1.242 GB, free: 6.531 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.002512/1.099, allocations: 1.311 MB / 1.243 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/1.1, allocations: 209.5 kB / 1.244 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/1.105, allocations: 2.788 MB / 1.246 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/1.105, allocations: 19.98 kB / 1.246 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.105, allocations: 4 kB / 1.246 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/1.106, allocations: 3.984 kB / 1.246 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/1.117, allocations: 6.224 MB / 1.252 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/1.117, allocations: 4 kB / 1.252 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.119, allocations: 232.3 kB / 1.253 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.121, allocations: 0.671 MB / 1.253 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/1.121, allocations: 35.98 kB / 1.253 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01788/1.139, allocations: 16.79 MB / 1.27 GB, free: 8.746 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/1.139, allocations: 8 kB / 1.27 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006976/1.146, allocations: 4.004 MB / 1.274 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.147, allocations: 454.6 kB / 1.274 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002675/1.147, allocations: 43.84 kB / 1.274 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009111/1.148, allocations: 79.89 kB / 1.274 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/1.148, allocations: 112.7 kB / 1.274 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/1.148, allocations: 40 kB / 1.274 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001518/1.15, allocations: 0.9942 MB / 1.275 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.435e-06/1.15, allocations: 0 / 1.275 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002606/1.153, allocations: 0.6874 MB / 1.276 GB, free: 2.215 MB / 0.9981 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.0003004/1.153, allocations: 156.5 kB / 1.276 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00707/1.16, allocations: 4.112 MB / 1.28 GB, free: 13.82 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/1.16, allocations: 0 / 1.28 GB, free: 13.82 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003456/1.163, allocations: 2.288 MB / 1.282 GB, free: 11.42 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/1.166, allocations: 0.6721 MB / 1.283 GB, free: 10.77 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/1.18, allocations: 8.607 MB / 1.291 GB, free: 2.066 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003206/1.183, allocations: 2.719 MB / 1.294 GB, free: 15.31 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005939/1.184, allocations: 135.4 kB / 1.294 GB, free: 15.18 MB / 1.029 GB Notification: Performance of SimCode: time 1.212e-06/1.184, allocations: 0 / 1.294 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Templates: time 0.2278/1.412, allocations: 209.6 MB / 1.499 GB, free: 13.45 MB / 1.232 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=400 -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