Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 108 kB / 15.6 MB, free: 132 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.002512/0.002512, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.2 MB / 0.6647 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001265, allocations: 59.91 kB / 0.8125 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7779/0.7792, allocations: 140.4 MB / 0.9496 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02396/0.8032, allocations: 23.42 MB / 0.9725 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01406/0.8173, allocations: 6.494 MB / 0.9788 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003402/0.8208, allocations: 103.1 kB / 0.9789 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004848/0.8257, allocations: 1.49 MB / 0.9804 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006983/0.8327, allocations: 1.818 MB / 0.9821 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.006297/0.839, allocations: 1.464 MB / 0.9836 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01224/0.8513, allocations: 6.912 MB / 0.9903 GB, free: 8 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009738/0.8611, allocations: 6.995 MB / 0.9971 GB, free: 0.918 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005293/0.8664, allocations: 2.835 MB / 0.9999 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006144/0.8726, allocations: 3.47 MB / 1.003 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001988/0.8746, allocations: 0.5273 MB / 1.004 GB, free: 10.07 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004192/0.8788, allocations: 1.178 MB / 1.005 GB, free: 8.887 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.005003/0.8839, allocations: 2.46 MB / 1.007 GB, free: 6.422 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005908/0.8898, allocations: 2.528 MB / 1.01 GB, free: 3.883 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.9017, allocations: 8.476 MB / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.9017, allocations: 0 / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.404e-06/0.9018, allocations: 7.938 kB / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002973/0.9021, allocations: 0 / 1.018 GB, free: 11.38 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.0124/0.9145, allocations: 4.424 MB / 1.022 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.9145, allocations: 8.031 kB / 1.022 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009189/0.9237, allocations: 1.685 MB / 1.024 GB, free: 5.184 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005932/0.9297, allocations: 2.575 MB / 1.027 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/0.93, allocations: 275.7 kB / 1.027 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/0.9313, allocations: 360.3 kB / 1.027 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01534/0.9467, allocations: 7.483 MB / 1.035 GB, free: 10.18 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.9468, allocations: 15.78 kB / 1.035 GB, free: 10.17 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005051/0.9474, allocations: 163.9 kB / 1.035 GB, free: 10.01 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005645/0.9479, allocations: 487.3 kB / 1.035 GB, free: 9.531 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/0.9586, allocations: 5.697 MB / 1.041 GB, free: 3.828 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03768/0.9963, allocations: 31.71 MB / 1.072 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.9992, allocations: 2.096 MB / 1.074 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002922/1.002, allocations: 2.182 MB / 1.076 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001452/1.002, allocations: 17.31 kB / 1.076 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/1.002, allocations: 43.88 kB / 1.076 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=146): time 3.076e-06/1.002, allocations: 0 / 1.076 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of matching and sorting (n=251): time 0.3071/1.309, allocations: 77 MB / 1.151 GB, free: 15.83 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/1.31, allocations: 85.39 kB / 1.151 GB, free: 15.73 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/1.312, allocations: 1.666 MB / 1.153 GB, free: 14.02 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000435/1.312, allocations: 65.7 kB / 1.153 GB, free: 13.95 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001103/1.314, allocations: 1.739 MB / 1.155 GB, free: 12.2 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009851/1.315, allocations: 0.8625 MB / 1.155 GB, free: 11.32 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009696/1.316, allocations: 477.2 kB / 1.156 GB, free: 10.85 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001082/1.316, allocations: 309.1 kB / 1.156 GB, free: 10.54 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003519/1.319, allocations: 2.734 MB / 1.159 GB, free: 7.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004001/1.323, allocations: 3.332 MB / 1.162 GB, free: 4.227 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008455/1.332, allocations: 6.397 MB / 1.168 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/1.332, allocations: 4 kB / 1.168 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03256/1.364, allocations: 14.67 MB / 1.183 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.092e-05/1.364, allocations: 12 kB / 1.183 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/1.364, allocations: 20 kB / 1.183 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02959/1.394, allocations: 9.302 MB / 1.192 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/1.395, allocations: 299.5 kB / 1.192 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08468/1.48, allocations: 52.38 MB / 1.243 GB, free: 15.95 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003203/1.483, allocations: 223.6 kB / 1.243 GB, free: 15.73 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003358/1.484, allocations: 104 kB / 1.244 GB, free: 15.63 MB / 1.014 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 (157): * Single equations (assignments): 151 * 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 {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00272/1.486, allocations: 1.582 MB / 1.245 GB, free: 14.04 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000632/1.487, allocations: 249 kB / 1.245 GB, free: 13.79 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6548/2.142, allocations: 14.74 MB / 1.26 GB, free: 276.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.665e-05/2.142, allocations: 25.08 kB / 1.26 GB, free: 276.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000221/2.142, allocations: 50.41 kB / 1.26 GB, free: 276.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.526e-05/2.142, allocations: 15.41 kB / 1.26 GB, free: 276.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04204/2.184, allocations: 20.51 MB / 1.28 GB, free: 271.9 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-05/2.184, allocations: 13.48 kB / 1.28 GB, free: 271.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008467/2.185, allocations: 164.2 kB / 1.28 GB, free: 271.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02901/2.214, allocations: 9.06 MB / 1.289 GB, free: 270.6 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000736/2.215, allocations: 54.91 kB / 1.289 GB, free: 270.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08454/2.3, allocations: 51.95 MB / 1.34 GB, free: 229.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/2.3, allocations: 11.94 kB / 1.34 GB, free: 229.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03355/2.333, allocations: 14.37 MB / 1.354 GB, free: 215.1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002154/2.335, allocations: 0.8455 MB / 1.355 GB, free: 214.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006137/2.336, allocations: 51.94 kB / 1.355 GB, free: 214.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/2.338, allocations: 203.7 kB / 1.355 GB, free: 214 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00132/2.34, allocations: 241.5 kB / 1.355 GB, free: 213.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/2.34, allocations: 68.83 kB / 1.355 GB, free: 213.7 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001298/2.341, allocations: 1.121 MB / 1.356 GB, free: 212.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/2.341, allocations: 4 kB / 1.356 GB, free: 212.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004521/2.346, allocations: 1.613 MB / 1.358 GB, free: 210.9 MB / 1.014 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 (80): * Single equations (assignments): 74 * 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 {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003938/2.346, allocations: 158.9 kB / 1.358 GB, free: 210.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02119/2.367, allocations: 11.34 MB / 1.369 GB, free: 199.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/2.367, allocations: 0 / 1.369 GB, free: 199.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0162/2.383, allocations: 7.306 MB / 1.376 GB, free: 192.1 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/2.387, allocations: 0.5514 MB / 1.377 GB, free: 191.5 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0206/2.408, allocations: 8.79 MB / 1.385 GB, free: 182.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004734/2.413, allocations: 3.23 MB / 1.388 GB, free: 179.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001768/2.415, allocations: 391.3 kB / 1.389 GB, free: 179 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/2.415, allocations: 99.66 kB / 1.389 GB, free: 178.9 MB / 1.014 GB Notification: Performance of SimCode: time 2.094e-06/2.415, allocations: 0 / 1.389 GB, free: 178.9 MB / 1.014 GB Notification: Performance of Templates: time 0.1422/2.557, allocations: 91.85 MB / 1.479 GB, free: 87.39 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches