Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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_11_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_11_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.008373/0.008373, allocations: 96.73 kB / 15.73 MB, free: 6.039 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.001666/0.001666, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.781/2.781, allocations: 469.8 MB / 0.7425 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 71.89 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.308, allocations: 159.1 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.6771/0.9851, allocations: 41.26 MB / 1.261 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02291/1.008, allocations: 15.1 MB / 1.276 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004919/1.013, allocations: 192.3 kB / 1.276 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01093/1.024, allocations: 4.508 MB / 1.28 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00913/1.033, allocations: 2.931 MB / 1.283 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009362/1.042, allocations: 3.158 MB / 1.286 GB, free: 1.902 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.02359/1.066, allocations: 11.41 MB / 1.297 GB, free: 12.79 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02461/1.091, allocations: 9.227 MB / 1.306 GB, free: 9.047 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01141/1.102, allocations: 4.902 MB / 1.311 GB, free: 6.867 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01276/1.115, allocations: 5.395 MB / 1.316 GB, free: 4.617 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.005001/1.12, allocations: 0.9491 MB / 1.317 GB, free: 4.617 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009099/1.129, allocations: 2.038 MB / 1.319 GB, free: 4.18 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.008923/1.138, allocations: 3.791 MB / 1.323 GB, free: 2.551 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.01498/1.153, allocations: 4.299 MB / 1.327 GB, free: 15.83 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.02804/1.181, allocations: 14.31 MB / 1.341 GB, free: 6.199 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 9.218e-06/1.181, allocations: 0.9375 kB / 1.341 GB, free: 6.199 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.184e-06/1.181, allocations: 0 / 1.341 GB, free: 6.199 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0008255/1.182, allocations: 1.125 kB / 1.341 GB, free: 6.199 MB / 1.029 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.0286/1.21, allocations: 7.799 MB / 1.349 GB, free: 1.059 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/1.21, allocations: 8.562 kB / 1.349 GB, free: 1.059 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/1.223, allocations: 1.551 MB / 1.35 GB, free: 320 kB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/1.234, allocations: 4.465 MB / 1.355 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004555/1.235, allocations: 456.4 kB / 1.355 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003074/1.238, allocations: 0.6005 MB / 1.356 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02971/1.268, allocations: 10.69 MB / 1.366 GB, free: 2.691 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003037/1.268, allocations: 31.77 kB / 1.366 GB, free: 2.66 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002996/1.271, allocations: 267.9 kB / 1.366 GB, free: 2.398 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/1.274, allocations: 0.7729 MB / 1.367 GB, free: 1.621 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/1.294, allocations: 8.561 MB / 1.376 GB, free: 9.039 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1022/1.396, allocations: 46.61 MB / 1.421 GB, free: 6.68 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00679/1.403, allocations: 3.977 MB / 1.425 GB, free: 2.695 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006377/1.41, allocations: 3.376 MB / 1.428 GB, free: 15.31 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004548/1.41, allocations: 38.78 kB / 1.428 GB, free: 15.27 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.285e-05/1.41, allocations: 69.34 kB / 1.428 GB, free: 15.2 MB / 1.123 GB Notification: Performance of pre-optimization done (n=353): time 5.791e-06/1.41, allocations: 0 / 1.428 GB, free: 15.2 MB / 1.123 GB Notification: Performance of matching and sorting (n=578): time 0.5097/1.92, allocations: 122.6 MB / 1.548 GB, free: 3.734 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/1.92, allocations: 119.9 kB / 1.548 GB, free: 3.602 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004212/1.924, allocations: 2.677 MB / 1.551 GB, free: 0.9258 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.001081/1.925, allocations: 125.6 kB / 1.551 GB, free: 0.7969 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.001871/1.927, allocations: 2.75 MB / 1.554 GB, free: 14.02 MB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.002612/1.93, allocations: 2.049 MB / 1.556 GB, free: 11.96 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003172/1.933, allocations: 0.929 MB / 1.557 GB, free: 11.02 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 9.104e-05/1.933, allocations: 305.1 kB / 1.557 GB, free: 10.72 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00684/1.94, allocations: 4.079 MB / 1.561 GB, free: 6.633 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008214/1.948, allocations: 5.008 MB / 1.566 GB, free: 1.301 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02099/1.969, allocations: 9.851 MB / 1.575 GB, free: 7.07 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-05/1.969, allocations: 8 kB / 1.575 GB, free: 7.062 MB / 1.264 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.06006/2.029, allocations: 16.74 MB / 1.592 GB, free: 6.188 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 7.879e-05/2.029, allocations: 14.19 kB / 1.592 GB, free: 6.176 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.372e-05/2.029, allocations: 24 kB / 1.592 GB, free: 6.152 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03444/2.064, allocations: 9.086 MB / 1.601 GB, free: 13.03 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/2.066, allocations: 0.5265 MB / 1.601 GB, free: 12.5 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1167/2.183, allocations: 77.04 MB / 1.676 GB, free: 13.88 MB / 1.373 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005559/2.189, allocations: 283.8 kB / 1.677 GB, free: 13.61 MB / 1.373 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/2.19, allocations: 188 kB / 1.677 GB, free: 13.42 MB / 1.373 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.00609/2.196, allocations: 2.426 MB / 1.679 GB, free: 10.98 MB / 1.373 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/2.198, allocations: 0.4892 MB / 1.68 GB, free: 10.49 MB / 1.373 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04286/2.241, allocations: 16.54 MB / 1.696 GB, free: 9.809 MB / 1.389 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.038e-05/2.241, allocations: 59.94 kB / 1.696 GB, free: 9.75 MB / 1.389 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002338/2.241, allocations: 68 kB / 1.696 GB, free: 9.684 MB / 1.389 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001171/2.241, allocations: 31.89 kB / 1.696 GB, free: 9.652 MB / 1.389 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0647/2.306, allocations: 25.38 MB / 1.721 GB, free: 15.96 MB / 1.42 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-05/2.306, allocations: 8 kB / 1.721 GB, free: 15.95 MB / 1.42 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/2.308, allocations: 319.7 kB / 1.721 GB, free: 15.64 MB / 1.42 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02974/2.338, allocations: 8.266 MB / 1.729 GB, free: 7.328 MB / 1.42 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001281/2.339, allocations: 108 kB / 1.729 GB, free: 7.223 MB / 1.42 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1096/2.449, allocations: 73.92 MB / 1.801 GB, free: 11.71 MB / 1.498 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/2.449, allocations: 11.88 kB / 1.801 GB, free: 11.7 MB / 1.498 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7196/3.168, allocations: 21.3 MB / 1.822 GB, free: 482.5 MB / 1.498 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003845/3.172, allocations: 1.384 MB / 1.824 GB, free: 482.4 MB / 1.498 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001612/3.174, allocations: 108.2 kB / 1.824 GB, free: 482.4 MB / 1.498 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004202/3.178, allocations: 287.5 kB / 1.824 GB, free: 482.4 MB / 1.498 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002243/3.18, allocations: 0.5229 MB / 1.824 GB, free: 482.4 MB / 1.498 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004995/3.181, allocations: 140.8 kB / 1.825 GB, free: 482.4 MB / 1.498 GB Notification: Performance of sorting global known variables: time 0.003058/3.184, allocations: 1.777 MB / 1.826 GB, free: 482.3 MB / 1.498 GB Notification: Performance of sort global known variables: time 1.2e-07/3.184, allocations: 0 / 1.826 GB, free: 482.3 MB / 1.498 GB Notification: Performance of remove unused functions: time 0.009965/3.194, allocations: 2.468 MB / 1.829 GB, free: 482.3 MB / 1.498 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.00104/3.195, allocations: 242.6 kB / 1.829 GB, free: 482.2 MB / 1.498 GB Notification: Performance of simCode: created initialization part: time 0.02564/3.22, allocations: 13.74 MB / 1.842 GB, free: 480.2 MB / 1.498 GB Notification: Performance of simCode: created event and clocks part: time 2.005e-05/3.22, allocations: 1.562 kB / 1.842 GB, free: 480.2 MB / 1.498 GB Notification: Performance of simCode: created simulation system equations: time 0.02019/3.24, allocations: 9.021 MB / 1.851 GB, free: 478.4 MB / 1.498 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008905/3.249, allocations: 1.376 MB / 1.853 GB, free: 478 MB / 1.498 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03491/3.284, allocations: 15.78 MB / 1.868 GB, free: 471.1 MB / 1.498 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/3.295, allocations: 4.893 MB / 1.873 GB, free: 469.5 MB / 1.498 GB Notification: Performance of simCode: alias equations: time 0.003872/3.299, allocations: 0.745 MB / 1.873 GB, free: 469.3 MB / 1.498 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008238/3.3, allocations: 195.9 kB / 1.874 GB, free: 469.3 MB / 1.498 GB Notification: Performance of SimCode: time 1.303e-06/3.3, allocations: 1.094 kB / 1.874 GB, free: 469.3 MB / 1.498 GB Notification: Performance of Templates: time 0.2002/3.5, allocations: 148 MB / 2.018 GB, free: 357.4 MB / 1.498 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches