Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 107.3 kB / 16.36 MB, free: 5.824 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.001207/0.001207, allocations: 189.7 kB / 17.29 MB, free: 5.48 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.914/2.914, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 74.67 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3908, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04219/0.433, allocations: 37.97 MB / 1.064 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02029/0.4534, allocations: 11 MB / 1.075 GB, free: 0.9648 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004507/0.4579, allocations: 155.2 kB / 1.075 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.7307/1.189, allocations: 4.36 MB / 1.079 GB, free: 20.04 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01291/1.202, allocations: 2.216 MB / 1.081 GB, free: 19.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.01243/1.214, allocations: 2.169 MB / 1.083 GB, free: 19.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02577/1.24, allocations: 9.279 MB / 1.092 GB, free: 19.43 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03157/1.272, allocations: 11.27 MB / 1.103 GB, free: 16.33 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01497/1.287, allocations: 4.002 MB / 1.107 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01082/1.297, allocations: 4.504 MB / 1.112 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0046/1.302, allocations: 0.8224 MB / 1.112 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008292/1.31, allocations: 1.589 MB / 1.114 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.008261/1.319, allocations: 3.151 MB / 1.117 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.01319/1.332, allocations: 3.651 MB / 1.121 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.02129/1.353, allocations: 12.31 MB / 1.133 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/1.353, allocations: 3.984 kB / 1.133 GB, free: 3.555 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.926e-06/1.353, allocations: 1.406 kB / 1.133 GB, free: 3.555 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004647/1.354, allocations: 0 / 1.133 GB, free: 3.555 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02543/1.379, allocations: 6.378 MB / 1.139 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/1.379, allocations: 14.22 kB / 1.139 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008605/1.388, allocations: 1.065 MB / 1.14 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01371/1.402, allocations: 3.608 MB / 1.143 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004454/1.402, allocations: 425.8 kB / 1.144 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003129/1.405, allocations: 0.5449 MB / 1.144 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02463/1.43, allocations: 9.378 MB / 1.154 GB, free: 6.57 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/1.43, allocations: 23.75 kB / 1.154 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009951/1.431, allocations: 250.9 kB / 1.154 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005979/1.432, allocations: 418.9 kB / 1.154 GB, free: 5.902 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/1.449, allocations: 7.123 MB / 1.161 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05916/1.508, allocations: 40.99 MB / 1.201 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004737/1.513, allocations: 3.115 MB / 1.204 GB, free: 15.14 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00347/1.516, allocations: 2.132 MB / 1.206 GB, free: 13 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001498/1.517, allocations: 29.59 kB / 1.206 GB, free: 12.98 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.057e-05/1.517, allocations: 64.5 kB / 1.206 GB, free: 12.91 MB / 0.92 GB Notification: Performance of pre-optimization done (n=209): time 5.42e-06/1.517, allocations: 0 / 1.206 GB, free: 12.91 MB / 0.92 GB Notification: Performance of matching and sorting (n=212): time 0.02523/1.542, allocations: 10.56 MB / 1.217 GB, free: 2.258 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/1.542, allocations: 81.28 kB / 1.217 GB, free: 2.168 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/1.545, allocations: 2.002 MB / 1.219 GB, free: 152 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002997/1.545, allocations: 65.7 kB / 1.219 GB, free: 80 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001671/1.547, allocations: 2.395 MB / 1.221 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007753/1.548, allocations: 0.737 MB / 1.222 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007675/1.549, allocations: 473.2 kB / 1.222 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001096/1.549, allocations: 305.1 kB / 1.223 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/1.551, allocations: 1.379 MB / 1.224 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002515/1.553, allocations: 2.1 MB / 1.226 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004852/1.558, allocations: 3.769 MB / 1.23 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-05/1.558, allocations: 8 kB / 1.23 GB, free: 4.281 MB / 0.9356 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008337/1.566, allocations: 5.072 MB / 1.235 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/1.566, allocations: 16 kB / 1.235 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.18e-05/1.567, allocations: 24 kB / 1.235 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/1.57, allocations: 1.585 MB / 1.236 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001839/1.572, allocations: 451.2 kB / 1.237 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02286/1.595, allocations: 18.57 MB / 1.255 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/1.599, allocations: 143.9 kB / 1.255 GB, free: 9.852 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006604/1.6, allocations: 112 kB / 1.255 GB, free: 9.742 MB / 0.9669 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00632/1.606, allocations: 1.945 MB / 1.257 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.607, allocations: 288.7 kB / 1.257 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007751/1.615, allocations: 4.447 MB / 1.262 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/1.615, allocations: 20 kB / 1.262 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.841e-05/1.615, allocations: 19.94 kB / 1.262 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.199e-05/1.615, allocations: 7.969 kB / 1.262 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01722/1.632, allocations: 9.668 MB / 1.271 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.632, allocations: 4 kB / 1.271 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/1.633, allocations: 239.6 kB / 1.271 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003337/1.637, allocations: 1.423 MB / 1.273 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001632/1.637, allocations: 36 kB / 1.273 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02244/1.659, allocations: 18.58 MB / 1.291 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.659, allocations: 8 kB / 1.291 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008569/1.668, allocations: 4.545 MB / 1.295 GB, free: 15.72 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/1.67, allocations: 0.6343 MB / 1.296 GB, free: 15.06 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004851/1.671, allocations: 40 kB / 1.296 GB, free: 15.02 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/1.672, allocations: 115.9 kB / 1.296 GB, free: 14.91 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006385/1.673, allocations: 181.6 kB / 1.296 GB, free: 14.73 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.673, allocations: 60 kB / 1.296 GB, free: 14.67 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002052/1.675, allocations: 1.314 MB / 1.298 GB, free: 13.35 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.675, allocations: 0 / 1.298 GB, free: 13.35 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004682/1.68, allocations: 1.141 MB / 1.299 GB, free: 12.21 MB / 1.014 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004347/1.68, allocations: 174.9 kB / 1.299 GB, free: 12.03 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.008097/1.688, allocations: 4.704 MB / 1.303 GB, free: 7.281 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.689, allocations: 0 / 1.303 GB, free: 7.281 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006543/1.695, allocations: 2.933 MB / 1.306 GB, free: 4.305 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006979/1.702, allocations: 0.8902 MB / 1.307 GB, free: 3.434 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03108/1.733, allocations: 9.267 MB / 1.316 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01089/1.744, allocations: 3.694 MB / 1.32 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.004019/1.748, allocations: 0.5518 MB / 1.32 GB, free: 5.805 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008367/1.749, allocations: 151.4 kB / 1.321 GB, free: 5.656 MB / 1.029 GB Notification: Performance of SimCode: time 1.573e-06/1.749, allocations: 0 / 1.321 GB, free: 5.656 MB / 1.029 GB Notification: Performance of Templates: time 0.09534/1.844, allocations: 50.8 MB / 1.37 GB, free: 3.699 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches