Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 195.1 kB / 16.53 MB, free: 6.664 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.929/2.929, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 64.12 kB / 0.9121 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3626, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01661/0.3792, allocations: 14.07 MB / 1.082 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01604/0.3954, allocations: 9.383 MB / 1.091 GB, free: 2.867 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002322/0.3977, allocations: 59.62 kB / 1.091 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.005138/0.403, allocations: 1.676 MB / 1.093 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006414/0.4094, allocations: 1.548 MB / 1.094 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003108/0.4125, allocations: 0.7513 MB / 1.095 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.005282/0.4178, allocations: 2.516 MB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002401/0.4202, allocations: 1.407 MB / 1.099 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001869/0.4221, allocations: 1.043 MB / 1.1 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.4236, allocations: 1.144 MB / 1.101 GB, free: 8.672 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002483/0.4239, allocations: 168 kB / 1.101 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.4256, allocations: 0.7838 MB / 1.102 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005415/0.4261, allocations: 0.6193 MB / 1.103 GB, free: 7.102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009152/0.4271, allocations: 0.9368 MB / 1.103 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002852/0.4299, allocations: 2.73 MB / 1.106 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4299, allocations: 7.938 kB / 1.106 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.113e-06/0.4299, allocations: 0 / 1.106 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.151e-05/0.43, allocations: 0 / 1.106 GB, free: 3.414 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003819/0.4338, allocations: 2.131 MB / 1.108 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4339, allocations: 12.03 kB / 1.108 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.4452, allocations: 2.077 MB / 1.11 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003005/0.4482, allocations: 1.197 MB / 1.111 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.4484, allocations: 94.73 kB / 1.112 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000344/0.4487, allocations: 128 kB / 1.112 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0062/0.4549, allocations: 2.674 MB / 1.114 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.455, allocations: 4 kB / 1.114 GB, free: 10.83 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.4552, allocations: 55.98 kB / 1.114 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000646/0.4558, allocations: 182.1 kB / 1.114 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007241/0.4631, allocations: 2.799 MB / 1.117 GB, free: 7.789 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01441/0.4775, allocations: 10.52 MB / 1.127 GB, free: 12.69 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006542/0.4841, allocations: 2.529 MB / 1.13 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002971/0.4871, allocations: 1.286 MB / 1.131 GB, free: 8.805 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.939e-05/0.4872, allocations: 12.94 kB / 1.131 GB, free: 8.789 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4872, allocations: 47.5 kB / 1.131 GB, free: 8.734 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 2.915e-06/0.4872, allocations: 4 kB / 1.131 GB, free: 8.73 MB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.04506/0.5323, allocations: 13.35 MB / 1.144 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.5324, allocations: 64.72 kB / 1.144 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.5341, allocations: 1.113 MB / 1.145 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002688/0.5344, allocations: 49.7 kB / 1.146 GB, free: 9.906 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000554/0.535, allocations: 0.7117 MB / 1.146 GB, free: 9.188 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004636/0.5354, allocations: 461.4 kB / 1.147 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004744/0.5359, allocations: 255.4 kB / 1.147 GB, free: 8.477 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5361, allocations: 369.9 kB / 1.147 GB, free: 8.109 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003221/0.5393, allocations: 1.339 MB / 1.149 GB, free: 6.77 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003311/0.5426, allocations: 1.6 MB / 1.15 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006608/0.5493, allocations: 2.998 MB / 1.153 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5493, allocations: 0 / 1.153 GB, free: 1.977 MB / 0.9044 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01118/0.5605, allocations: 4.446 MB / 1.157 GB, free: 13.47 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.5605, allocations: 8 kB / 1.157 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.5606, allocations: 8 kB / 1.157 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005087/0.5656, allocations: 1.44 MB / 1.159 GB, free: 11.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00209/0.5678, allocations: 435.2 kB / 1.159 GB, free: 11.55 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02621/0.594, allocations: 26.69 MB / 1.185 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002956/0.597, allocations: 307.5 kB / 1.186 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002499/0.5973, allocations: 63.89 kB / 1.186 GB, free: 14.66 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001039/0.5983, allocations: 445.3 kB / 1.186 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004225/0.5987, allocations: 162.1 kB / 1.186 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/0.6101, allocations: 4.449 MB / 1.191 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.6102, allocations: 16 kB / 1.191 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.157e-05/0.6102, allocations: 12.19 kB / 1.191 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/0.6103, allocations: 8.078 kB / 1.191 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.625, allocations: 6.782 MB / 1.197 GB, free: 2.578 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.6251, allocations: 4.344 kB / 1.197 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/0.6268, allocations: 379.4 kB / 1.198 GB, free: 2.203 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004519/0.6314, allocations: 1.318 MB / 1.199 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.6315, allocations: 35.97 kB / 1.199 GB, free: 0.8086 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02413/0.6557, allocations: 25.51 MB / 1.224 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6557, allocations: 4 kB / 1.224 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.6664, allocations: 4.204 MB / 1.228 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.6676, allocations: 451 kB / 1.228 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.6679, allocations: 32.05 kB / 1.228 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002012/0.6699, allocations: 315.4 kB / 1.229 GB, free: 372 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005273/0.6705, allocations: 124.7 kB / 1.229 GB, free: 248 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/0.6706, allocations: 51.97 kB / 1.229 GB, free: 196 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001054/0.6716, allocations: 0.7487 MB / 1.23 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6717, allocations: 4 kB / 1.23 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001995/0.6737, allocations: 0.5664 MB / 1.23 GB, free: 14.87 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003001/0.674, allocations: 143.7 kB / 1.23 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0118/0.6858, allocations: 5.513 MB / 1.236 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.6858, allocations: 4.125 kB / 1.236 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006827/0.6926, allocations: 3.491 MB / 1.239 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.6954, allocations: 0.5493 MB / 1.24 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008453/0.7038, allocations: 4.027 MB / 1.244 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.6058/1.31, allocations: 1.466 MB / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002209/1.312, allocations: 431.7 kB / 1.245 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/1.312, allocations: 115 kB / 1.246 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.242e-06/1.312, allocations: 0 / 1.246 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.07431/1.387, allocations: 38.96 MB / 1.284 GB, free: 154.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches