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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001019/0.001018, allocations: 92.16 kB / 16.02 MB, free: 80 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.001319/0.001319, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.419/1.419, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.806/2.806, allocations: 462.6 MB / 0.737 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003728, allocations: 10.03 kB / 0.9034 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3341, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04224/0.3763, allocations: 39.86 MB / 1.098 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02527/0.4016, allocations: 14.93 MB / 1.113 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005215/0.4069, allocations: 163.1 kB / 1.113 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.003614/0.4105, allocations: 0.8606 MB / 1.114 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00875/0.4193, allocations: 2.636 MB / 1.116 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.007585/0.4269, allocations: 2.716 MB / 1.119 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01784/0.4448, allocations: 15.99 MB / 1.135 GB, free: 7.539 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02767/0.4725, allocations: 15.79 MB / 1.15 GB, free: 7.637 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008471/0.481, allocations: 3.536 MB / 1.154 GB, free: 4.086 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009935/0.491, allocations: 4.757 MB / 1.158 GB, free: 15.31 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002415/0.4934, allocations: 396 kB / 1.159 GB, free: 14.93 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006078/0.4995, allocations: 1.825 MB / 1.16 GB, free: 13.1 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.005908/0.5055, allocations: 3 MB / 1.163 GB, free: 10.09 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.009084/0.5146, allocations: 3.519 MB / 1.167 GB, free: 6.547 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.5308, allocations: 11.81 MB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.5308, allocations: 8 kB / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.575e-06/0.5308, allocations: 0 / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0005251/0.5314, allocations: 0 / 1.178 GB, free: 10.7 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: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.01934/0.5507, allocations: 6.154 MB / 1.184 GB, free: 4.465 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.5508, allocations: 15.97 kB / 1.184 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01144/0.5623, allocations: 1.515 MB / 1.186 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01026/0.5726, allocations: 4.213 MB / 1.19 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006014/0.5732, allocations: 456.5 kB / 1.19 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002842/0.5761, allocations: 0.59 MB / 1.191 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02498/0.6011, allocations: 10.69 MB / 1.201 GB, free: 2.527 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002263/0.6013, allocations: 27.72 kB / 1.201 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/0.6025, allocations: 263.9 kB / 1.202 GB, free: 2.242 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002867/0.6054, allocations: 0.769 MB / 1.202 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01808/0.6235, allocations: 8.568 MB / 1.211 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.663/1.287, allocations: 46.99 MB / 1.257 GB, free: 150.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005662/1.292, allocations: 4.316 MB / 1.261 GB, free: 150 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00532/1.298, allocations: 3.68 MB / 1.264 GB, free: 150 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002996/1.298, allocations: 36.41 kB / 1.264 GB, free: 150 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.31e-05/1.298, allocations: 82.61 kB / 1.265 GB, free: 149.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=353): time 6.122e-06/1.298, allocations: 0 / 1.265 GB, free: 149.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=578): time 0.5042/1.802, allocations: 128.1 MB / 1.39 GB, free: 58.35 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.539e-05/1.802, allocations: 119.8 kB / 1.39 GB, free: 58.21 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00398/1.806, allocations: 2.689 MB / 1.392 GB, free: 55.53 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/1.808, allocations: 121.7 kB / 1.392 GB, free: 55.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001362/1.809, allocations: 2.67 MB / 1.395 GB, free: 52.71 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002297/1.811, allocations: 1.956 MB / 1.397 GB, free: 50.77 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/1.812, allocations: 446 kB / 1.397 GB, free: 50.33 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.151e-05/1.813, allocations: 301.1 kB / 1.398 GB, free: 50.03 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00573/1.818, allocations: 4.075 MB / 1.402 GB, free: 45.95 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006597/1.825, allocations: 5.015 MB / 1.407 GB, free: 40.61 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/1.838, allocations: 9.851 MB / 1.416 GB, free: 30.38 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.226e-05/1.838, allocations: 8 kB / 1.416 GB, free: 30.37 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04065/1.879, allocations: 16.99 MB / 1.433 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/1.879, allocations: 17.66 kB / 1.433 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-05/1.879, allocations: 24 kB / 1.433 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03101/1.91, allocations: 9.081 MB / 1.442 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002411/1.913, allocations: 0.5264 MB / 1.442 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1081/2.021, allocations: 70.71 MB / 1.511 GB, free: 11.4 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005581/2.026, allocations: 291.7 kB / 1.512 GB, free: 11.12 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/2.028, allocations: 188 kB / 1.512 GB, free: 10.93 MB / 1.076 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.006576/2.034, allocations: 2.423 MB / 1.514 GB, free: 8.5 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001802/2.036, allocations: 474.5 kB / 1.515 GB, free: 8.031 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0436/2.08, allocations: 16.81 MB / 1.531 GB, free: 7.074 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-05/2.08, allocations: 59.94 kB / 1.531 GB, free: 7.016 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002388/2.08, allocations: 72 kB / 1.531 GB, free: 6.945 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001223/2.08, allocations: 27.89 kB / 1.531 GB, free: 6.918 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06175/2.142, allocations: 25.69 MB / 1.556 GB, free: 13 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.873e-05/2.142, allocations: 8 kB / 1.556 GB, free: 13 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/2.144, allocations: 326.8 kB / 1.557 GB, free: 12.68 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03162/2.176, allocations: 8.268 MB / 1.565 GB, free: 4.379 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001372/2.177, allocations: 108 kB / 1.565 GB, free: 4.273 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1045/2.282, allocations: 67.59 MB / 1.631 GB, free: 15.21 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/2.282, allocations: 11.94 kB / 1.631 GB, free: 15.2 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0491/2.331, allocations: 21.56 MB / 1.652 GB, free: 9.281 MB / 1.217 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004263/2.335, allocations: 1.366 MB / 1.653 GB, free: 7.891 MB / 1.217 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001969/2.337, allocations: 104 kB / 1.653 GB, free: 7.789 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004683/2.342, allocations: 287.6 kB / 1.654 GB, free: 7.508 MB / 1.217 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00258/2.344, allocations: 0.526 MB / 1.654 GB, free: 6.977 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000976/2.345, allocations: 140 kB / 1.654 GB, free: 6.84 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.003402/2.349, allocations: 1.776 MB / 1.656 GB, free: 5.074 MB / 1.217 GB Notification: Performance of sort global known variables: time 2.91e-07/2.349, allocations: 0 / 1.656 GB, free: 5.074 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.01053/2.359, allocations: 2.461 MB / 1.658 GB, free: 2.613 MB / 1.217 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.001434/2.361, allocations: 256.8 kB / 1.659 GB, free: 2.355 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.02888/2.39, allocations: 14.52 MB / 1.673 GB, free: 3.637 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 1.795e-05/2.39, allocations: 4 kB / 1.673 GB, free: 3.633 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.01995/2.41, allocations: 9.399 MB / 1.682 GB, free: 10.09 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01216/2.422, allocations: 1.278 MB / 1.683 GB, free: 8.828 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03559/2.457, allocations: 19.72 MB / 1.702 GB, free: 4.969 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008451/2.466, allocations: 4.991 MB / 1.707 GB, free: 15.93 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/2.467, allocations: 215.4 kB / 1.707 GB, free: 15.72 MB / 1.279 GB Notification: Performance of SimCode: time 1.152e-06/2.467, allocations: 0 / 1.707 GB, free: 15.72 MB / 1.279 GB Notification: Performance of Templates: time 1.006/3.473, allocations: 473.7 MB / 2.17 GB, free: 36.7 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/jenkins1/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