Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 111.9 kB / 15.61 MB, free: 128 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.00121/0.001211, allocations: 197.1 kB / 16.54 MB, free: 6.668 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 66.5 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3223, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04413/0.3665, allocations: 41.19 MB / 1.108 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.03022/0.3967, allocations: 15.08 MB / 1.123 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006346/0.4031, allocations: 187.1 kB / 1.123 GB, free: 1.742 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.01254/0.4157, allocations: 4.454 MB / 1.128 GB, free: 13.28 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00979/0.4256, allocations: 2.794 MB / 1.13 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.009577/0.4352, allocations: 3.171 MB / 1.134 GB, free: 7.297 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.01565/0.4509, allocations: 11.39 MB / 1.145 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02031/0.4712, allocations: 12.64 MB / 1.157 GB, free: 15.1 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008573/0.4798, allocations: 4.798 MB / 1.162 GB, free: 10.29 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009267/0.4892, allocations: 5.382 MB / 1.167 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.003507/0.4927, allocations: 0.9492 MB / 1.168 GB, free: 3.938 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006647/0.4994, allocations: 2.036 MB / 1.17 GB, free: 1.898 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.007302/0.5067, allocations: 3.692 MB / 1.173 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.01172/0.5184, allocations: 4.295 MB / 1.178 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01888/0.5374, allocations: 14.19 MB / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.5374, allocations: 0 / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5374, allocations: 0 / 1.192 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0005189/0.5379, allocations: 4 kB / 1.192 GB, free: 11.65 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02288/0.5608, allocations: 7.593 MB / 1.199 GB, free: 3.977 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.5609, allocations: 8.031 kB / 1.199 GB, free: 3.969 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.5722, allocations: 1.522 MB / 1.2 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.5823, allocations: 4.209 MB / 1.205 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005986/0.583, allocations: 456.5 kB / 1.205 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003158/0.5862, allocations: 0.5978 MB / 1.206 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02429/0.6105, allocations: 10.68 MB / 1.216 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002767/0.6108, allocations: 35.69 kB / 1.216 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/0.6127, allocations: 267.9 kB / 1.216 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003172/0.6159, allocations: 0.7768 MB / 1.217 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01813/0.634, allocations: 8.557 MB / 1.225 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6916/1.326, allocations: 46.85 MB / 1.271 GB, free: 139.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006021/1.332, allocations: 4.308 MB / 1.275 GB, free: 138.4 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005944/1.338, allocations: 3.706 MB / 1.279 GB, free: 136.9 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003176/1.338, allocations: 41.12 kB / 1.279 GB, free: 136.9 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/1.338, allocations: 71.84 kB / 1.279 GB, free: 136.8 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=353): time 6.021e-06/1.338, allocations: 0 / 1.279 GB, free: 136.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=578): time 0.4927/1.831, allocations: 122.8 MB / 1.399 GB, free: 41.16 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/1.831, allocations: 107.9 kB / 1.399 GB, free: 41.04 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/1.834, allocations: 2.685 MB / 1.402 GB, free: 38.36 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001123/1.835, allocations: 121.7 kB / 1.402 GB, free: 38.23 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001204/1.837, allocations: 2.679 MB / 1.404 GB, free: 35.54 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002046/1.839, allocations: 1.957 MB / 1.406 GB, free: 33.59 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001754/1.84, allocations: 0.9209 MB / 1.407 GB, free: 32.66 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.616e-05/1.84, allocations: 305.1 kB / 1.408 GB, free: 32.36 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004901/1.845, allocations: 4.083 MB / 1.412 GB, free: 28.27 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005332/1.851, allocations: 5.019 MB / 1.416 GB, free: 22.93 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/1.862, allocations: 9.848 MB / 1.426 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.167e-05/1.862, allocations: 8 kB / 1.426 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03563/1.898, allocations: 16.99 MB / 1.443 GB, free: 11.57 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/1.898, allocations: 16 kB / 1.443 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.57e-05/1.898, allocations: 24.16 kB / 1.443 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03174/1.93, allocations: 9.148 MB / 1.452 GB, free: 2.348 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/1.932, allocations: 0.5226 MB / 1.452 GB, free: 1.824 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1112/2.044, allocations: 77.03 MB / 1.527 GB, free: 3.246 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005505/2.049, allocations: 275.8 kB / 1.528 GB, free: 2.977 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007574/2.05, allocations: 188 kB / 1.528 GB, free: 2.793 MB / 1.092 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006226/2.056, allocations: 2.427 MB / 1.53 GB, free: 364 kB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/2.058, allocations: 470.5 kB / 1.531 GB, free: 15.89 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0396/2.098, allocations: 16.82 MB / 1.547 GB, free: 14.93 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.155e-05/2.098, allocations: 56 kB / 1.547 GB, free: 14.87 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002304/2.098, allocations: 72 kB / 1.547 GB, free: 14.8 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001242/2.098, allocations: 27.89 kB / 1.547 GB, free: 14.77 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05642/2.154, allocations: 25.65 MB / 1.572 GB, free: 4.891 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.13e-05/2.155, allocations: 8 kB / 1.572 GB, free: 4.883 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/2.157, allocations: 323.5 kB / 1.573 GB, free: 4.566 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02988/2.187, allocations: 8.339 MB / 1.581 GB, free: 12.19 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001261/2.188, allocations: 108 kB / 1.581 GB, free: 12.09 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1086/2.297, allocations: 73.89 MB / 1.653 GB, free: 0.6641 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.778e-06/2.297, allocations: 11.94 kB / 1.653 GB, free: 0.6523 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04756/2.344, allocations: 21.56 MB / 1.674 GB, free: 10.73 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004019/2.348, allocations: 1.366 MB / 1.675 GB, free: 9.344 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001465/2.35, allocations: 115.9 kB / 1.676 GB, free: 9.23 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004201/2.354, allocations: 283.6 kB / 1.676 GB, free: 8.953 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002204/2.356, allocations: 0.5182 MB / 1.676 GB, free: 8.434 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005061/2.357, allocations: 144 kB / 1.676 GB, free: 8.293 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.003076/2.36, allocations: 1.776 MB / 1.678 GB, free: 6.527 MB / 1.248 GB Notification: Performance of sort global known variables: time 1.9e-07/2.36, allocations: 0 / 1.678 GB, free: 6.527 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.01009/2.37, allocations: 2.465 MB / 1.681 GB, free: 4.062 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001389/2.371, allocations: 235.5 kB / 1.681 GB, free: 3.824 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.03945/2.411, allocations: 18.68 MB / 1.699 GB, free: 0.957 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/2.411, allocations: 4.312 kB / 1.699 GB, free: 0.9531 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.01997/2.431, allocations: 9.348 MB / 1.708 GB, free: 7.461 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008232/2.439, allocations: 1.376 MB / 1.71 GB, free: 6.129 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03065/2.47, allocations: 15.73 MB / 1.725 GB, free: 6.281 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007578/2.477, allocations: 4.893 MB / 1.73 GB, free: 1.344 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.003118/2.481, allocations: 0.7487 MB / 1.73 GB, free: 0.5898 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006259/2.481, allocations: 195.4 kB / 1.731 GB, free: 408 kB / 1.295 GB Notification: Performance of SimCode: time 7.31e-07/2.481, allocations: 0 / 1.731 GB, free: 408 kB / 1.295 GB Notification: Performance of Templates: time 0.7646/3.246, allocations: 147.5 MB / 1.875 GB, free: 331.5 MB / 1.295 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches