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.001302/0.001302, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001369/0.001368, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.613/1.613, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.434/2.434, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.12 kB / 0.814 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3379, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04302/0.381, allocations: 37.96 MB / 0.9882 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01974/0.4007, allocations: 10.99 MB / 0.9989 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004898/0.4057, allocations: 155.2 kB / 0.9991 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01387/0.4197, allocations: 4.358 MB / 1.003 GB, free: 2.426 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007801/0.4275, allocations: 2.227 MB / 1.006 GB, free: 192 kB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.006064/0.4336, allocations: 2.179 MB / 1.008 GB, free: 14.01 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01177/0.4454, allocations: 9.28 MB / 1.017 GB, free: 4.707 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01588/0.4613, allocations: 11.27 MB / 1.028 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007652/0.469, allocations: 3.992 MB / 1.032 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008448/0.4775, allocations: 4.514 MB / 1.036 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.004609/0.4822, allocations: 0.8243 MB / 1.037 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007188/0.4894, allocations: 1.584 MB / 1.038 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.006191/0.4956, allocations: 3.154 MB / 1.041 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.008971/0.5046, allocations: 3.653 MB / 1.045 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01393/0.5186, allocations: 12.3 MB / 1.057 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.5186, allocations: 4 kB / 1.057 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5186, allocations: 0 / 1.057 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0004396/0.5191, allocations: 0 / 1.057 GB, free: 11.2 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.01668/0.5358, allocations: 6.322 MB / 1.063 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.5358, allocations: 8.031 kB / 1.063 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006475/0.5423, allocations: 1.063 MB / 1.064 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009778/0.5521, allocations: 3.61 MB / 1.068 GB, free: 68 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/0.5526, allocations: 427.8 kB / 1.068 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002615/0.5552, allocations: 0.5393 MB / 1.069 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02361/0.5788, allocations: 9.381 MB / 1.078 GB, free: 5.395 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002658/0.5791, allocations: 23.72 kB / 1.078 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001806/0.581, allocations: 248 kB / 1.078 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006954/0.5817, allocations: 426.9 kB / 1.079 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6371/1.219, allocations: 7.118 MB / 1.085 GB, free: 117.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06894/1.288, allocations: 41 MB / 1.126 GB, free: 84.55 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00731/1.295, allocations: 3.101 MB / 1.129 GB, free: 83.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004359/1.3, allocations: 2.138 MB / 1.131 GB, free: 82.57 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002525/1.3, allocations: 21.7 kB / 1.131 GB, free: 82.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.487e-05/1.3, allocations: 67.97 kB / 1.131 GB, free: 82.51 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=209): time 6.222e-06/1.3, allocations: 0 / 1.131 GB, free: 82.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=212): time 0.03019/1.33, allocations: 10.56 MB / 1.141 GB, free: 77.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/1.33, allocations: 76.84 kB / 1.141 GB, free: 77.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006579/1.337, allocations: 2.009 MB / 1.143 GB, free: 76.29 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0008416/1.338, allocations: 63.55 kB / 1.143 GB, free: 76.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.002723/1.341, allocations: 2.399 MB / 1.145 GB, free: 74.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001593/1.342, allocations: 0.7296 MB / 1.146 GB, free: 73.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002657/1.345, allocations: 480.1 kB / 1.147 GB, free: 73.23 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.345, allocations: 305.1 kB / 1.147 GB, free: 72.93 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003009/1.348, allocations: 1.374 MB / 1.148 GB, free: 72.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/1.351, allocations: 2.102 MB / 1.15 GB, free: 70.55 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/1.357, allocations: 3.773 MB / 1.154 GB, free: 67.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.247e-05/1.357, allocations: 6.844 kB / 1.154 GB, free: 67.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009187/1.366, allocations: 5.065 MB / 1.159 GB, free: 65.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/1.366, allocations: 19.73 kB / 1.159 GB, free: 65.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.444e-05/1.366, allocations: 19.69 kB / 1.159 GB, free: 65.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003341/1.369, allocations: 1.583 MB / 1.161 GB, free: 64.63 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001879/1.371, allocations: 455.3 kB / 1.161 GB, free: 64.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0199/1.391, allocations: 18.58 MB / 1.179 GB, free: 51.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003011/1.394, allocations: 143.9 kB / 1.179 GB, free: 50.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005999/1.395, allocations: 111.9 kB / 1.179 GB, free: 50.77 MB / 0.8575 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.00384/1.399, allocations: 1.945 MB / 1.181 GB, free: 48.81 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.4, allocations: 284.7 kB / 1.182 GB, free: 48.53 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007196/1.407, allocations: 4.454 MB / 1.186 GB, free: 44.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/1.407, allocations: 20 kB / 1.186 GB, free: 44.02 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.384e-05/1.407, allocations: 16 kB / 1.186 GB, free: 44.01 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/1.407, allocations: 19.95 kB / 1.186 GB, free: 43.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/1.425, allocations: 9.658 MB / 1.195 GB, free: 34.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/1.425, allocations: 4 kB / 1.195 GB, free: 34.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/1.426, allocations: 235.6 kB / 1.196 GB, free: 33.99 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003068/1.429, allocations: 1.423 MB / 1.197 GB, free: 32.56 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002563/1.43, allocations: 40 kB / 1.197 GB, free: 32.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01928/1.449, allocations: 18.57 MB / 1.215 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/1.449, allocations: 15.88 kB / 1.215 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007756/1.457, allocations: 4.533 MB / 1.22 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002341/1.459, allocations: 0.6342 MB / 1.22 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001101/1.46, allocations: 43.98 kB / 1.22 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002158/1.462, allocations: 119.8 kB / 1.22 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007383/1.463, allocations: 181.6 kB / 1.221 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002714/1.464, allocations: 60 kB / 1.221 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00247/1.466, allocations: 1.315 MB / 1.222 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.51e-07/1.466, allocations: 0 / 1.222 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.005003/1.471, allocations: 1.148 MB / 1.223 GB, free: 5.238 MB / 0.8575 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.0005568/1.472, allocations: 153.1 kB / 1.223 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.007749/1.479, allocations: 4.709 MB / 1.228 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/1.479, allocations: 4 kB / 1.228 GB, free: 324 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.005831/1.485, allocations: 2.931 MB / 1.231 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006496/1.492, allocations: 0.8946 MB / 1.232 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/1.515, allocations: 9.262 MB / 1.241 GB, free: 3.141 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007389/1.523, allocations: 3.694 MB / 1.244 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.002841/1.525, allocations: 0.5556 MB / 1.245 GB, free: 14.85 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006665/1.526, allocations: 147.4 kB / 1.245 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of SimCode: time 1.042e-06/1.526, allocations: 0 / 1.245 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of Templates: time 0.09983/1.626, allocations: 50.8 MB / 1.294 GB, free: 12.71 MB / 0.9356 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 -s cvode -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/jenkins1/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