Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 107.7 kB / 15.99 MB, free: 5.91 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.001265/0.001265, allocations: 193.6 kB / 16.91 MB, free: 5.754 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.453/1.453, allocations: 222.9 MB / 240.6 MB, free: 13.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 482.4 MB / 0.755 GB, free: 7.195 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 72.23 kB / 0.924 GB, free: 316 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7982/0.8002, allocations: 162.2 MB / 1.082 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04317/0.8434, allocations: 34.81 MB / 1.116 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01963/0.8631, allocations: 9.851 MB / 1.126 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00423/0.8674, allocations: 133.8 kB / 1.126 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01064/0.8781, allocations: 3.567 MB / 1.13 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008221/0.8863, allocations: 1.875 MB / 1.131 GB, free: 8 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006609/0.893, allocations: 1.787 MB / 1.133 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01318/0.9062, allocations: 7.995 MB / 1.141 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0195/0.9257, allocations: 11.7 MB / 1.152 GB, free: 4.461 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007251/0.933, allocations: 3.431 MB / 1.156 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00786/0.9409, allocations: 3.899 MB / 1.16 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.00225/0.9432, allocations: 0.6797 MB / 1.16 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004741/0.948, allocations: 1.451 MB / 1.162 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004212/0.9522, allocations: 2.62 MB / 1.164 GB, free: 11.13 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.006279/0.9585, allocations: 3.101 MB / 1.167 GB, free: 8.02 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.9699, allocations: 8.855 MB / 1.176 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.97, allocations: 0 / 1.176 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.338e-06/0.97, allocations: 0 / 1.176 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0003141/0.9703, allocations: 3.938 kB / 1.176 GB, free: 15.14 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01347/0.9838, allocations: 5.404 MB / 1.181 GB, free: 9.664 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.9839, allocations: 16.03 kB / 1.181 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004891/0.9888, allocations: 0.9587 MB / 1.182 GB, free: 8.684 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006384/0.9952, allocations: 2.995 MB / 1.185 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000341/0.9956, allocations: 357.9 kB / 1.185 GB, free: 5.281 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.9967, allocations: 464.3 kB / 1.186 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/1.013, allocations: 7.906 MB / 1.194 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/1.013, allocations: 23.77 kB / 1.194 GB, free: 12.53 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000539/1.013, allocations: 212 kB / 1.194 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005469/1.014, allocations: 365.1 kB / 1.194 GB, free: 11.96 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/1.025, allocations: 5.937 MB / 1.2 GB, free: 6.012 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04813/1.074, allocations: 36.21 MB / 1.235 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00401/1.078, allocations: 2.146 MB / 1.237 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002365/1.08, allocations: 1.48 MB / 1.239 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/1.08, allocations: 17.31 kB / 1.239 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.648e-05/1.08, allocations: 59.72 kB / 1.239 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 3.737e-06/1.08, allocations: 0 / 1.239 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.0161/1.096, allocations: 7.532 MB / 1.246 GB, free: 3.035 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.017e-05/1.097, allocations: 68.72 kB / 1.246 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003786/1.1, allocations: 1.864 MB / 1.248 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001562/1.1, allocations: 53.7 kB / 1.248 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001937/1.102, allocations: 2.127 MB / 1.25 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006705/1.103, allocations: 0.5546 MB / 1.251 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007535/1.104, allocations: 411.7 kB / 1.251 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001424/1.104, allocations: 301.1 kB / 1.252 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001788/1.106, allocations: 1.058 MB / 1.253 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002499/1.108, allocations: 1.76 MB / 1.254 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004563/1.113, allocations: 3.049 MB / 1.257 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.386e-05/1.113, allocations: 15.94 kB / 1.257 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.007509/1.12, allocations: 3.92 MB / 1.261 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/1.121, allocations: 16 kB / 1.261 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-05/1.121, allocations: 24 kB / 1.261 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002693/1.123, allocations: 0.9318 MB / 1.262 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/1.125, allocations: 431.3 kB / 1.262 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02484/1.15, allocations: 22.76 MB / 1.285 GB, free: 9.227 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/1.152, allocations: 131.9 kB / 1.285 GB, free: 9.098 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003948/1.152, allocations: 92 kB / 1.285 GB, free: 9.008 MB / 1.014 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.00321/1.156, allocations: 1.653 MB / 1.287 GB, free: 7.344 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006491/1.156, allocations: 257 kB / 1.287 GB, free: 7.09 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005935/1.162, allocations: 3.256 MB / 1.29 GB, free: 3.785 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-05/1.162, allocations: 20 kB / 1.29 GB, free: 3.766 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.162, allocations: 12 kB / 1.29 GB, free: 3.754 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/1.162, allocations: 7.969 kB / 1.29 GB, free: 3.746 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/1.176, allocations: 7.549 MB / 1.297 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.176, allocations: 4 kB / 1.297 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009703/1.177, allocations: 215.6 kB / 1.298 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002496/1.179, allocations: 0.9004 MB / 1.298 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001304/1.179, allocations: 32 kB / 1.298 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/1.203, allocations: 22.74 MB / 1.321 GB, free: 2.422 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.672e-05/1.203, allocations: 4 kB / 1.321 GB, free: 2.418 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006279/1.21, allocations: 3.383 MB / 1.324 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/1.211, allocations: 0.5254 MB / 1.325 GB, free: 14.38 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/1.211, allocations: 35.91 kB / 1.325 GB, free: 14.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/1.212, allocations: 103.8 kB / 1.325 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004229/1.213, allocations: 137 kB / 1.325 GB, free: 14.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/1.213, allocations: 48 kB / 1.325 GB, free: 14.06 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001858/1.215, allocations: 1.225 MB / 1.326 GB, free: 12.82 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.6e-07/1.215, allocations: 3.938 kB / 1.326 GB, free: 12.82 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.003066/1.218, allocations: 0.9062 MB / 1.327 GB, free: 11.91 MB / 1.061 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003271/1.218, allocations: 167.5 kB / 1.327 GB, free: 11.74 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.009162/1.227, allocations: 5.194 MB / 1.332 GB, free: 6.398 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.227, allocations: 8.125 kB / 1.332 GB, free: 6.391 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.004725/1.232, allocations: 2.992 MB / 1.335 GB, free: 3.242 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/1.236, allocations: 0.8191 MB / 1.336 GB, free: 2.438 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01711/1.253, allocations: 10.34 MB / 1.346 GB, free: 8.008 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003941/1.257, allocations: 3.283 MB / 1.349 GB, free: 4.691 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007441/1.258, allocations: 155.4 kB / 1.349 GB, free: 4.539 MB / 1.076 GB Notification: Performance of SimCode: time 1.082e-06/1.258, allocations: 0 / 1.349 GB, free: 4.539 MB / 1.076 GB Notification: Performance of Templates: time 0.8232/2.081, allocations: 339.6 MB / 1.681 GB, free: 310.5 MB / 1.264 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches