Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.0009601/0.0009601, allocations: 91.45 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.001105/0.001105, 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.509/1.509, allocations: 223.3 MB / 240 MB, free: 5.234 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.491/2.491, allocations: 390.9 MB / 0.666 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 11.98 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8206, allocations: 142.4 MB / 0.9544 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03713/0.8578, allocations: 34.62 MB / 0.9883 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0194/0.8772, allocations: 10.49 MB / 0.9985 GB, free: 2.281 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00561/0.8829, allocations: 131.2 kB / 0.9986 GB, free: 2.152 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004635/0.8876, allocations: 0.7635 MB / 0.9994 GB, free: 1.383 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00967/0.8973, allocations: 1.795 MB / 1.001 GB, free: 15.58 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006103/0.9034, allocations: 1.273 MB / 1.002 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01433/0.9178, allocations: 10.36 MB / 1.012 GB, free: 3.918 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02644/0.9443, allocations: 12.69 MB / 1.025 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01027/0.9546, allocations: 2.872 MB / 1.028 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01169/0.9664, allocations: 3.761 MB / 1.031 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.003298/0.9697, allocations: 344 kB / 1.032 GB, free: 164 kB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006313/0.9761, allocations: 0.7065 MB / 1.032 GB, free: 15.45 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.006506/0.9826, allocations: 2.517 MB / 1.035 GB, free: 12.93 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.004159/0.9868, allocations: 1.198 MB / 1.036 GB, free: 11.72 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01488/1.002, allocations: 10.18 MB / 1.046 GB, free: 1.512 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/1.002, allocations: 0 / 1.046 GB, free: 1.512 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.326e-06/1.002, allocations: 0 / 1.046 GB, free: 1.512 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0005517/1.002, allocations: 4 kB / 1.046 GB, free: 1.508 MB / 0.795 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.01708/1.019, allocations: 5.141 MB / 1.051 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/1.02, allocations: 8.031 kB / 1.051 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006951/1.027, allocations: 1.066 MB / 1.052 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009911/1.036, allocations: 3.345 MB / 1.055 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005647/1.037, allocations: 423.4 kB / 1.056 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/1.04, allocations: 0.5428 MB / 1.056 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02811/1.068, allocations: 9.33 MB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004085/1.068, allocations: 15.88 kB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002662/1.071, allocations: 247.9 kB / 1.066 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008084/1.072, allocations: 426.9 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01807/1.09, allocations: 7.077 MB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05999/1.15, allocations: 41.36 MB / 1.113 GB, free: 8.332 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005296/1.155, allocations: 3.094 MB / 1.116 GB, free: 5.227 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003309/1.159, allocations: 2.12 MB / 1.118 GB, free: 3.109 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001984/1.159, allocations: 25.98 kB / 1.118 GB, free: 3.082 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.597e-05/1.159, allocations: 60.56 kB / 1.118 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=209): time 3.867e-06/1.159, allocations: 0 / 1.118 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of matching and sorting (n=212): time 0.02514/1.184, allocations: 10.45 MB / 1.129 GB, free: 8.469 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/1.184, allocations: 81.34 kB / 1.129 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00375/1.188, allocations: 1.986 MB / 1.131 GB, free: 6.371 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0003684/1.188, allocations: 69.7 kB / 1.131 GB, free: 6.297 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001861/1.19, allocations: 2.4 MB / 1.133 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009357/1.191, allocations: 0.7278 MB / 1.134 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/1.191, allocations: 56 kB / 1.134 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000248/1.192, allocations: 411.4 kB / 1.134 GB, free: 2.664 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/1.194, allocations: 1.36 MB / 1.136 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/1.197, allocations: 2.096 MB / 1.138 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002808/1.2, allocations: 1.728 MB / 1.139 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/1.2, allocations: 8 kB / 1.139 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009062/1.209, allocations: 5.034 MB / 1.144 GB, free: 8.09 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/1.209, allocations: 15.94 kB / 1.144 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.752e-05/1.209, allocations: 24.88 kB / 1.144 GB, free: 8.051 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003403/1.212, allocations: 1.565 MB / 1.146 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/1.214, allocations: 455.2 kB / 1.146 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/1.235, allocations: 17.06 MB / 1.163 GB, free: 4.434 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002655/1.237, allocations: 143.9 kB / 1.163 GB, free: 4.293 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003435/1.238, allocations: 112 kB / 1.163 GB, free: 4.184 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,69.4%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004139/1.242, allocations: 1.94 MB / 1.165 GB, free: 2.234 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007037/1.243, allocations: 296.6 kB / 1.165 GB, free: 1.941 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007736/1.25, allocations: 4.428 MB / 1.17 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/1.25, allocations: 20 kB / 1.17 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.842e-05/1.25, allocations: 20 kB / 1.17 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/1.25, allocations: 7.969 kB / 1.17 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/1.268, allocations: 9.649 MB / 1.179 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/1.268, allocations: 4 kB / 1.179 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/1.269, allocations: 239.6 kB / 1.179 GB, free: 3.402 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003362/1.272, allocations: 1.42 MB / 1.181 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002045/1.272, allocations: 40.25 kB / 1.181 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02221/1.294, allocations: 17.08 MB / 1.197 GB, free: 320 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.294, allocations: 8.188 kB / 1.197 GB, free: 312 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008806/1.303, allocations: 4.521 MB / 1.202 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/1.305, allocations: 0.6304 MB / 1.203 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004556/1.306, allocations: 55.88 kB / 1.203 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.307, allocations: 111.9 kB / 1.203 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006532/1.308, allocations: 189.6 kB / 1.203 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/1.308, allocations: 56 kB / 1.203 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001948/1.31, allocations: 1.292 MB / 1.204 GB, free: 9.336 MB / 0.9669 GB Notification: Performance of sort global known variables: time 5.01e-07/1.31, allocations: 4 kB / 1.204 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.004162/1.314, allocations: 1.141 MB / 1.205 GB, free: 8.191 MB / 0.9669 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,100.0%) 18,(6,66.7%) 24,(4,100.0%) 18,(6,66.7%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003902/1.314, allocations: 170.8 kB / 1.205 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.007825/1.322, allocations: 4.672 MB / 1.21 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/1.322, allocations: 4 kB / 1.21 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.004941/1.327, allocations: 2.918 MB / 1.213 GB, free: 336 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/1.332, allocations: 0.84 MB / 1.214 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02022/1.352, allocations: 11.22 MB / 1.225 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005198/1.357, allocations: 3.694 MB / 1.228 GB, free: 476 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002441/1.36, allocations: 0.5518 MB / 1.229 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/1.36, allocations: 155.4 kB / 1.229 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of SimCode: time 1.041e-06/1.36, allocations: 0 / 1.229 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of Templates: time 0.6729/2.033, allocations: 48.79 MB / 1.277 GB, free: 263 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches