Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001699/0.001699, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.2 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 63.89 kB / 0.9516 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9321/0.9336, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02429/0.958, allocations: 20.25 MB / 1.108 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01299/0.971, allocations: 6.443 MB / 1.115 GB, free: 3.441 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003256/0.9743, allocations: 87.59 kB / 1.115 GB, free: 3.414 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.006463/0.9808, allocations: 2.24 MB / 1.117 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005331/0.9862, allocations: 1.243 MB / 1.118 GB, free: 1.285 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004458/0.9907, allocations: 1.292 MB / 1.119 GB, free: 0.5547 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.008364/0.9991, allocations: 4.858 MB / 1.124 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008484/1.008, allocations: 5.594 MB / 1.13 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005361/1.013, allocations: 2.12 MB / 1.132 GB, free: 11.14 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005653/1.019, allocations: 2.337 MB / 1.134 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002123/1.021, allocations: 429.2 kB / 1.134 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0044/1.025, allocations: 0.9994 MB / 1.135 GB, free: 9.898 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004226/1.029, allocations: 1.67 MB / 1.137 GB, free: 9.207 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.00712/1.037, allocations: 1.912 MB / 1.139 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01418/1.051, allocations: 6.517 MB / 1.145 GB, free: 5.926 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/1.051, allocations: 5.062 kB / 1.145 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.944e-06/1.051, allocations: 0 / 1.145 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0002758/1.051, allocations: 0 / 1.145 GB, free: 5.922 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01419/1.065, allocations: 3.459 MB / 1.149 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.065, allocations: 9.156 kB / 1.149 GB, free: 3.945 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005291/1.071, allocations: 0.6488 MB / 1.149 GB, free: 3.637 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00651/1.077, allocations: 2.038 MB / 1.151 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002889/1.078, allocations: 222.4 kB / 1.151 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/1.079, allocations: 295.2 kB / 1.152 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/1.09, allocations: 4.889 MB / 1.157 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-05/1.091, allocations: 9.312 kB / 1.157 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003754/1.091, allocations: 130.2 kB / 1.157 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004723/1.091, allocations: 231.3 kB / 1.157 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007907/1.099, allocations: 3.754 MB / 1.161 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0289/1.128, allocations: 21.4 MB / 1.181 GB, free: 9.117 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/1.13, allocations: 1.315 MB / 1.183 GB, free: 8.414 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/1.132, allocations: 1.051 MB / 1.184 GB, free: 7.867 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.54e-05/1.132, allocations: 11.97 kB / 1.184 GB, free: 7.867 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/1.132, allocations: 48.39 kB / 1.184 GB, free: 7.816 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 3.797e-06/1.132, allocations: 4 kB / 1.184 GB, free: 7.812 MB / 0.92 GB Notification: Performance of matching and sorting (n=138): time 0.02478/1.157, allocations: 8.654 MB / 1.192 GB, free: 1.629 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.718e-05/1.157, allocations: 64.72 kB / 1.192 GB, free: 1.555 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/1.158, allocations: 1.13 MB / 1.193 GB, free: 428 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.159, allocations: 45.7 kB / 1.193 GB, free: 376 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008359/1.159, allocations: 1.311 MB / 1.195 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/1.16, allocations: 473.2 kB / 1.195 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004452/1.16, allocations: 291.3 kB / 1.195 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.31e-05/1.16, allocations: 305.1 kB / 1.196 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/1.162, allocations: 0.9174 MB / 1.197 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/1.163, allocations: 1.326 MB / 1.198 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/1.166, allocations: 2.43 MB / 1.2 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/1.166, allocations: 4 kB / 1.2 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005809/1.172, allocations: 3.468 MB / 1.204 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/1.172, allocations: 8 kB / 1.204 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/1.172, allocations: 20.11 kB / 1.204 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003023/1.175, allocations: 1.179 MB / 1.205 GB, free: 4.262 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009179/1.176, allocations: 263.5 kB / 1.205 GB, free: 4.004 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/1.192, allocations: 13.83 MB / 1.219 GB, free: 5.754 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/1.194, allocations: 87.97 kB / 1.219 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/1.194, allocations: 64 kB / 1.219 GB, free: 5.605 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002071/1.196, allocations: 1.12 MB / 1.22 GB, free: 4.477 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/1.196, allocations: 166 kB / 1.22 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/1.202, allocations: 3.165 MB / 1.223 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/1.202, allocations: 15.98 kB / 1.223 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.202, allocations: 15.94 kB / 1.223 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/1.202, allocations: 3.984 kB / 1.223 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/1.212, allocations: 6.241 MB / 1.229 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/1.212, allocations: 4.562 kB / 1.229 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005748/1.213, allocations: 147.8 kB / 1.229 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/1.216, allocations: 1.083 MB / 1.23 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.872e-05/1.216, allocations: 24 kB / 1.231 GB, free: 9.441 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/1.232, allocations: 13.53 MB / 1.244 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.232, allocations: 11.94 kB / 1.244 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/1.237, allocations: 3.146 MB / 1.247 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009684/1.238, allocations: 430.9 kB / 1.247 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/1.238, allocations: 35.94 kB / 1.247 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007872/1.239, allocations: 83.89 kB / 1.247 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003532/1.239, allocations: 124.6 kB / 1.247 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.589e-05/1.239, allocations: 40 kB / 1.247 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0009963/1.24, allocations: 0.7671 MB / 1.248 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/1.24, allocations: 4 kB / 1.248 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002183/1.242, allocations: 0.6562 MB / 1.249 GB, free: 6.094 MB / 0.9825 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002519/1.243, allocations: 139.1 kB / 1.249 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004743/1.247, allocations: 3.134 MB / 1.252 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/1.248, allocations: 0 / 1.252 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002834/1.25, allocations: 1.956 MB / 1.254 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/1.253, allocations: 0.4981 MB / 1.254 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009616/1.262, allocations: 5.787 MB / 1.26 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/1.265, allocations: 2.387 MB / 1.262 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004367/1.265, allocations: 103.4 kB / 1.263 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/1.265, allocations: 0 / 1.263 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of Templates: time 0.09471/1.36, allocations: 79.62 MB / 1.34 GB, free: 8.355 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches