Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.00123/0.00123, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001874/0.001874, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.472/2.472, allocations: 390.9 MB / 0.666 GB, free: 2.48 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003856, allocations: 8 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.847/0.8474, allocations: 142.4 MB / 0.9545 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005352/0.8528, allocations: 4.912 MB / 0.9592 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00382/0.8567, allocations: 2.482 MB / 0.9617 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00039/0.8571, allocations: 21.97 kB / 0.9617 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.8574, allocations: 101.2 kB / 0.9618 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000815/0.8582, allocations: 332.5 kB / 0.9621 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007802/0.859, allocations: 297.1 kB / 0.9624 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001208/0.8602, allocations: 1.053 MB / 0.9634 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001214/0.8615, allocations: 0.7378 MB / 0.9641 GB, free: 256 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005147/0.862, allocations: 317.4 kB / 0.9644 GB, free: 88 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005178/0.8625, allocations: 373.7 kB / 0.9648 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.8626, allocations: 25.28 kB / 0.9648 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.8631, allocations: 193.2 kB / 0.965 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.8634, allocations: 218.2 kB / 0.9652 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.8635, allocations: 144.9 kB / 0.9654 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000845/0.8644, allocations: 0.7207 MB / 0.9661 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.8644, allocations: 3.938 kB / 0.9661 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.844e-06/0.8644, allocations: 0 / 0.9661 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.055e-05/0.8644, allocations: 1.219 kB / 0.9661 GB, free: 15.09 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001413/0.8659, allocations: 0.8589 MB / 0.9669 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.8659, allocations: 10.31 kB / 0.9669 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/0.8673, allocations: 192.2 kB / 0.9671 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008025/0.8681, allocations: 481.2 kB / 0.9676 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.8681, allocations: 41.31 kB / 0.9676 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.8683, allocations: 54.86 kB / 0.9676 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.8695, allocations: 0.823 MB / 0.9684 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.8696, allocations: 6.938 kB / 0.9685 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.8696, allocations: 27.14 kB / 0.9685 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.8698, allocations: 65.77 kB / 0.9685 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009202/0.8708, allocations: 0.5718 MB / 0.9691 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.8757, allocations: 4.586 MB / 0.9736 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000593/0.8763, allocations: 293.8 kB / 0.9739 GB, free: 8.484 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003713/0.8767, allocations: 226.3 kB / 0.9741 GB, free: 8.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.8768, allocations: 7.266 kB / 0.9741 GB, free: 8.363 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.8768, allocations: 40.62 kB / 0.9741 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 4.198e-06/0.8768, allocations: 1.344 kB / 0.9741 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005817/0.8826, allocations: 2.635 MB / 0.9767 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.8827, allocations: 56.44 kB / 0.9768 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004958/0.8832, allocations: 456.5 kB / 0.9772 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.8832, allocations: 36.39 kB / 0.9772 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.8835, allocations: 351.9 kB / 0.9776 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.8836, allocations: 136 kB / 0.9777 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.8837, allocations: 14.5 kB / 0.9777 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.8838, allocations: 358.9 kB / 0.978 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.8842, allocations: 237.8 kB / 0.9783 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.8847, allocations: 404.8 kB / 0.9787 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004435/0.8851, allocations: 291.3 kB / 0.9789 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.8852, allocations: 1.438 kB / 0.9789 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00163/0.8868, allocations: 0.9211 MB / 0.9798 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.8868, allocations: 6.906 kB / 0.9798 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.8868, allocations: 5.25 kB / 0.9798 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007426/0.8876, allocations: 231.1 kB / 0.9801 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.8881, allocations: 117.2 kB / 0.9802 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004744/0.8929, allocations: 4.934 MB / 0.985 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.8933, allocations: 31.97 kB / 0.985 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.8934, allocations: 27.98 kB / 0.9851 GB, free: 14.9 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003356/0.8937, allocations: 232.5 kB / 0.9853 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.022e-05/0.8938, allocations: 59.3 kB / 0.9853 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.8953, allocations: 0.7699 MB / 0.9861 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.8954, allocations: 7.953 kB / 0.9861 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8954, allocations: 4 kB / 0.9861 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.8954, allocations: 3.984 kB / 0.9861 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.8978, allocations: 1.498 MB / 0.9876 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.8979, allocations: 4 kB / 0.9876 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.8982, allocations: 63.89 kB / 0.9876 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006319/0.8989, allocations: 210.5 kB / 0.9878 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.8989, allocations: 12 kB / 0.9878 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004608/0.9035, allocations: 4.865 MB / 0.9926 GB, free: 6.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.9036, allocations: 8.016 kB / 0.9926 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.9053, allocations: 1.135 MB / 0.9937 GB, free: 5.469 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/0.9056, allocations: 176.5 kB / 0.9939 GB, free: 5.277 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.319e-05/0.9056, allocations: 16.09 kB / 0.9939 GB, free: 5.262 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.906, allocations: 23.97 kB / 0.9939 GB, free: 5.238 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.14e-05/0.906, allocations: 35.94 kB / 0.9939 GB, free: 5.203 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.9061, allocations: 12 kB / 0.994 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003338/0.9064, allocations: 314.9 kB / 0.9943 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9064, allocations: 0 / 0.9943 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007027/0.9071, allocations: 172 kB / 0.9944 GB, free: 4.719 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.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 (30): * Single equations (assignments): 27 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001452/0.9073, allocations: 112.8 kB / 0.9945 GB, free: 4.598 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001589/0.9089, allocations: 1.008 MB / 0.9955 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.9089, allocations: 0 / 0.9955 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009176/0.9098, allocations: 0.6812 MB / 0.9962 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008741/0.9107, allocations: 168.8 kB / 0.9963 GB, free: 2.668 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.9129, allocations: 1.496 MB / 0.9978 GB, free: 1.121 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005934/0.9135, allocations: 0.9533 MB / 0.9987 GB, free: 144 kB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003957/0.9139, allocations: 121 kB / 0.9988 GB, free: 20 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.914, allocations: 35.48 kB / 0.9989 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of SimCode: time 4.01e-07/0.914, allocations: 0 / 0.9989 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of Templates: time 0.01444/0.9285, allocations: 8.154 MB / 1.007 GB, free: 7.938 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches