Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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 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_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001993/0.001993, allocations: 196.4 kB / 16.91 MB, free: 5.746 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: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.945/2.945, allocations: 482.4 MB / 0.755 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002607/0.002607, allocations: 67.47 kB / 0.924 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4253, allocations: 162.2 MB / 1.082 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.05451/0.4798, allocations: 33.02 MB / 1.115 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03543/0.5153, allocations: 14.67 MB / 1.129 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006422/0.5218, allocations: 139.2 kB / 1.129 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01364/0.5355, allocations: 3.418 MB / 1.132 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.5494, allocations: 2.666 MB / 1.135 GB, free: 7.496 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.009756/0.5592, allocations: 2.131 MB / 1.137 GB, free: 5.367 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01814/0.5774, allocations: 8.835 MB / 1.146 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02772/0.6052, allocations: 11.37 MB / 1.157 GB, free: 1.02 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01098/0.6162, allocations: 4.003 MB / 1.161 GB, free: 13 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.6266, allocations: 4.217 MB / 1.165 GB, free: 8.77 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.003256/0.6299, allocations: 0.7188 MB / 1.166 GB, free: 8.051 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007426/0.6374, allocations: 1.716 MB / 1.167 GB, free: 6.336 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.006773/0.6442, allocations: 2.838 MB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.009507/0.6537, allocations: 3.38 MB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01812/0.6719, allocations: 9.482 MB / 1.183 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 9.128e-06/0.6719, allocations: 0 / 1.183 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.99e-06/0.672, allocations: 4 kB / 1.183 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0004009/0.6724, allocations: 0 / 1.183 GB, free: 6.59 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.025/0.6974, allocations: 5.968 MB / 1.188 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 7.296e-05/0.6975, allocations: 12.03 kB / 1.188 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01354/0.711, allocations: 1.142 MB / 1.19 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/0.7239, allocations: 3.321 MB / 1.193 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000587/0.7245, allocations: 378.4 kB / 1.193 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002805/0.7273, allocations: 496 kB / 1.194 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0283/0.7557, allocations: 8.009 MB / 1.202 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002681/0.756, allocations: 23.75 kB / 1.202 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001869/0.7579, allocations: 216 kB / 1.202 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001654/0.7595, allocations: 437.5 kB / 1.202 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01945/0.779, allocations: 6.089 MB / 1.208 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06771/0.8468, allocations: 35.14 MB / 1.242 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004831/0.8517, allocations: 2.034 MB / 1.244 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004299/0.856, allocations: 1.861 MB / 1.246 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001945/0.8562, allocations: 21.94 kB / 1.246 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.401e-05/0.8563, allocations: 56.5 kB / 1.246 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=171): time 5.58e-06/0.8563, allocations: 0 / 1.246 GB, free: 1.766 MB / 0.9981 GB Notification: Performance of matching and sorting (n=276): time 0.7228/1.579, allocations: 38.87 MB / 1.284 GB, free: 147.5 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/1.579, allocations: 83.05 kB / 1.284 GB, free: 147.4 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00294/1.582, allocations: 2.284 MB / 1.287 GB, free: 146.2 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003727/1.583, allocations: 73.55 kB / 1.287 GB, free: 146.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/1.584, allocations: 2.272 MB / 1.289 GB, free: 144.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007389/1.584, allocations: 0.9399 MB / 1.29 GB, free: 143.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008306/1.585, allocations: 0.5033 MB / 1.29 GB, free: 143 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.069e-05/1.585, allocations: 305.1 kB / 1.291 GB, free: 142.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/1.588, allocations: 1.977 MB / 1.292 GB, free: 141.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002498/1.59, allocations: 2.603 MB / 1.295 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005171/1.595, allocations: 4.924 MB / 1.3 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/1.595, allocations: 11.12 kB / 1.3 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.0128/1.608, allocations: 7.749 MB / 1.307 GB, free: 132.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/1.608, allocations: 16.95 kB / 1.307 GB, free: 132.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/1.608, allocations: 17.75 kB / 1.307 GB, free: 132.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008549/1.617, allocations: 3.239 MB / 1.311 GB, free: 128.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/1.618, allocations: 407.2 kB / 1.311 GB, free: 128.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0348/1.653, allocations: 33.9 MB / 1.344 GB, free: 93.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003169/1.656, allocations: 163.8 kB / 1.344 GB, free: 93.67 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004398/1.657, allocations: 112 kB / 1.344 GB, free: 93.56 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002896/1.66, allocations: 1.794 MB / 1.346 GB, free: 91.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007819/1.661, allocations: 332.1 kB / 1.346 GB, free: 91.43 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/1.672, allocations: 7.36 MB / 1.354 GB, free: 83.98 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.417e-05/1.672, allocations: 28 kB / 1.354 GB, free: 83.96 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.235e-05/1.672, allocations: 28 kB / 1.354 GB, free: 83.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.731e-05/1.672, allocations: 15.95 kB / 1.354 GB, free: 83.91 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01984/1.692, allocations: 12.93 MB / 1.366 GB, free: 70.86 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/1.692, allocations: 4 kB / 1.366 GB, free: 70.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009148/1.693, allocations: 227.6 kB / 1.367 GB, free: 70.63 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007266/1.701, allocations: 2.88 MB / 1.369 GB, free: 67.73 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003128/1.701, allocations: 56 kB / 1.369 GB, free: 67.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03262/1.734, allocations: 32.68 MB / 1.401 GB, free: 34.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/1.734, allocations: 19.48 kB / 1.401 GB, free: 34.16 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/1.744, allocations: 6.881 MB / 1.408 GB, free: 27.07 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/1.746, allocations: 0.7859 MB / 1.409 GB, free: 26.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005907/1.746, allocations: 52 kB / 1.409 GB, free: 26.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/1.748, allocations: 167.8 kB / 1.409 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007616/1.749, allocations: 253.5 kB / 1.409 GB, free: 25.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/1.749, allocations: 76 kB / 1.409 GB, free: 25.72 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00171/1.751, allocations: 1.525 MB / 1.411 GB, free: 24.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.751, allocations: 0 / 1.411 GB, free: 24.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004292/1.755, allocations: 1.371 MB / 1.412 GB, free: 22.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004108/1.755, allocations: 178.9 kB / 1.412 GB, free: 22.64 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01228/1.768, allocations: 8.366 MB / 1.421 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/1.768, allocations: 4.25 kB / 1.421 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006507/1.774, allocations: 4.411 MB / 1.425 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004779/1.779, allocations: 1.123 MB / 1.426 GB, free: 8.66 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01868/1.798, allocations: 13.18 MB / 1.439 GB, free: 11.41 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005567/1.803, allocations: 3.755 MB / 1.442 GB, free: 7.625 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008155/1.804, allocations: 175.4 kB / 1.443 GB, free: 7.453 MB / 1.014 GB Notification: Performance of SimCode: time 5.91e-07/1.804, allocations: 0 / 1.443 GB, free: 7.453 MB / 1.014 GB Notification: Performance of Templates: time 0.2823/2.087, allocations: 227.3 MB / 1.665 GB, free: 4.168 MB / 1.232 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches