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.001539/0.001539, allocations: 103.7 kB / 16.35 MB, free: 6.285 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.001689/0.00169, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.437/1.437, 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.501/2.501, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 64.7 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3352, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03217/0.3674, allocations: 26.67 MB / 1.053 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01635/0.3838, allocations: 8.075 MB / 1.061 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003365/0.3872, allocations: 115.4 kB / 1.061 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.007314/0.3946, allocations: 2.763 MB / 1.063 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006419/0.4011, allocations: 1.582 MB / 1.065 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005764/0.4069, allocations: 1.688 MB / 1.067 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01045/0.4173, allocations: 6.138 MB / 1.073 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.5856/1.003, allocations: 7.302 MB / 1.08 GB, free: 18.87 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005295/1.008, allocations: 2.576 MB / 1.082 GB, free: 18.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006762/1.015, allocations: 2.825 MB / 1.085 GB, free: 18.46 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002371/1.018, allocations: 0.5112 MB / 1.086 GB, free: 18.46 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004343/1.022, allocations: 1.285 MB / 1.087 GB, free: 18.46 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003994/1.026, allocations: 2.05 MB / 1.089 GB, free: 18.32 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004519/1.03, allocations: 2.386 MB / 1.091 GB, free: 17.73 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01497/1.045, allocations: 8.046 MB / 1.099 GB, free: 17.02 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/1.045, allocations: 5.031 kB / 1.099 GB, free: 17.02 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.953e-06/1.045, allocations: 0 / 1.099 GB, free: 17.02 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0003113/1.046, allocations: 0 / 1.099 GB, free: 17.02 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01328/1.059, allocations: 4.225 MB / 1.103 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/1.059, allocations: 13.28 kB / 1.103 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005377/1.065, allocations: 0.8005 MB / 1.104 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007191/1.072, allocations: 2.583 MB / 1.106 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002737/1.072, allocations: 269.8 kB / 1.107 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/1.074, allocations: 373.2 kB / 1.107 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01489/1.089, allocations: 6 MB / 1.113 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/1.089, allocations: 18.25 kB / 1.113 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007138/1.09, allocations: 156 kB / 1.113 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000627/1.09, allocations: 276.7 kB / 1.113 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/1.101, allocations: 4.526 MB / 1.118 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03426/1.135, allocations: 27.46 MB / 1.145 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/1.137, allocations: 1.121 MB / 1.146 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/1.139, allocations: 1.016 MB / 1.147 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.041e-05/1.139, allocations: 18.28 kB / 1.147 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/1.139, allocations: 49.08 kB / 1.147 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=110): time 3.516e-06/1.139, allocations: 3.938 kB / 1.147 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of matching and sorting (n=131): time 0.02314/1.162, allocations: 9.666 MB / 1.156 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/1.162, allocations: 65 kB / 1.156 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002289/1.164, allocations: 1.496 MB / 1.158 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001469/1.164, allocations: 44.58 kB / 1.158 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001139/1.166, allocations: 1.667 MB / 1.159 GB, free: 9.938 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004189/1.166, allocations: 468.8 kB / 1.16 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/1.167, allocations: 326.2 kB / 1.16 GB, free: 9.359 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001087/1.167, allocations: 310.7 kB / 1.16 GB, free: 9.055 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/1.168, allocations: 0.9087 MB / 1.161 GB, free: 8.582 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/1.17, allocations: 1.463 MB / 1.163 GB, free: 7.391 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/1.173, allocations: 2.551 MB / 1.165 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/1.173, allocations: 3.469 kB / 1.165 GB, free: 5.656 MB / 0.8731 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005796/1.179, allocations: 3.289 MB / 1.168 GB, free: 3.984 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/1.179, allocations: 18.03 kB / 1.168 GB, free: 3.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/1.179, allocations: 20.69 kB / 1.168 GB, free: 3.977 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/1.181, allocations: 0.7326 MB / 1.169 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/1.183, allocations: 384.7 kB / 1.17 GB, free: 3.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/1.198, allocations: 17.06 MB / 1.186 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/1.2, allocations: 95.91 kB / 1.186 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/1.201, allocations: 76 kB / 1.186 GB, free: 1.367 MB / 0.8887 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.00255/1.203, allocations: 1.313 MB / 1.188 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004666/1.204, allocations: 199.2 kB / 1.188 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005063/1.209, allocations: 2.795 MB / 1.191 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/1.209, allocations: 12 kB / 1.191 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/1.209, allocations: 8 kB / 1.191 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/1.209, allocations: 7.969 kB / 1.191 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/1.221, allocations: 6.211 MB / 1.197 GB, free: 6.742 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.221, allocations: 4 kB / 1.197 GB, free: 6.738 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/1.222, allocations: 235.2 kB / 1.197 GB, free: 6.52 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.224, allocations: 0.6697 MB / 1.198 GB, free: 5.824 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/1.224, allocations: 32 kB / 1.198 GB, free: 5.793 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01595/1.24, allocations: 16.78 MB / 1.214 GB, free: 3.824 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.24, allocations: 6.719 kB / 1.214 GB, free: 3.82 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006884/1.247, allocations: 4.013 MB / 1.218 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.249, allocations: 450.6 kB / 1.218 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004071/1.249, allocations: 35.98 kB / 1.218 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009913/1.25, allocations: 83.83 kB / 1.218 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/1.251, allocations: 118.1 kB / 1.219 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.556e-05/1.251, allocations: 36 kB / 1.219 GB, free: 15 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001547/1.252, allocations: 0.9942 MB / 1.22 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9.22e-07/1.252, allocations: 0 / 1.22 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002894/1.255, allocations: 0.6978 MB / 1.22 GB, free: 13.32 MB / 0.9356 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.0003341/1.256, allocations: 156 kB / 1.22 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005756/1.261, allocations: 3.515 MB / 1.224 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.261, allocations: 4.875 kB / 1.224 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.003343/1.265, allocations: 2.299 MB / 1.226 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/1.268, allocations: 0.6635 MB / 1.227 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/1.28, allocations: 6.438 MB / 1.233 GB, free: 92 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003007/1.283, allocations: 2.672 MB / 1.236 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001652/1.285, allocations: 485.4 kB / 1.236 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/1.285, allocations: 119.4 kB / 1.236 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of SimCode: time 1.323e-06/1.285, allocations: 0 / 1.236 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of Templates: time 0.06016/1.346, allocations: 33.63 MB / 1.269 GB, free: 11.75 MB / 0.9825 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 -s cvode -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