Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.007027/0.007027, allocations: 102.5 kB / 15.73 MB, free: 6.492 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.001446/0.001446, allocations: 192 kB / 16.67 MB, free: 6.379 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.537/2.537, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.42 kB / 0.9509 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3865, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04794/0.4345, allocations: 41.18 MB / 1.128 GB, free: 8.164 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02992/0.4645, allocations: 15.09 MB / 1.143 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006756/0.4713, allocations: 191 kB / 1.143 GB, free: 8.844 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.01523/0.4866, allocations: 4.457 MB / 1.147 GB, free: 4.379 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01283/0.4995, allocations: 2.794 MB / 1.15 GB, free: 1.57 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.5108, allocations: 3.156 MB / 1.153 GB, free: 14.41 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01863/0.5295, allocations: 11.41 MB / 1.164 GB, free: 2.973 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02473/0.5543, allocations: 12.47 MB / 1.177 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0123/0.5666, allocations: 4.9 MB / 1.181 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01233/0.579, allocations: 5.39 MB / 1.187 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.005082/0.5841, allocations: 0.9531 MB / 1.188 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008643/0.5928, allocations: 2.044 MB / 1.19 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.008529/0.6014, allocations: 3.688 MB / 1.193 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.014/0.6154, allocations: 4.295 MB / 1.197 GB, free: 1.035 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.02967/0.6451, allocations: 14.28 MB / 1.211 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.6452, allocations: 0 / 1.211 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6452, allocations: 0 / 1.211 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0006597/0.6458, allocations: 0 / 1.211 GB, free: 2.715 MB / 0.9669 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.0324/0.6782, allocations: 7.604 MB / 1.219 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.6783, allocations: 11.97 kB / 1.219 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/0.6905, allocations: 1.514 MB / 1.22 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.7019, allocations: 4.447 MB / 1.225 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005203/0.7025, allocations: 460.4 kB / 1.225 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00341/0.7059, allocations: 0.5939 MB / 1.226 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03461/0.7405, allocations: 10.69 MB / 1.236 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004836/0.741, allocations: 27.77 kB / 1.236 GB, free: 8.828 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003349/0.7444, allocations: 263.9 kB / 1.236 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003034/0.7475, allocations: 0.7807 MB / 1.237 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02461/0.7721, allocations: 8.561 MB / 1.245 GB, free: 15.2 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9422/1.714, allocations: 46.52 MB / 1.291 GB, free: 120.8 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007711/1.722, allocations: 4.312 MB / 1.295 GB, free: 118.9 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006431/1.729, allocations: 3.711 MB / 1.299 GB, free: 117.4 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004244/1.729, allocations: 37.25 kB / 1.299 GB, free: 117.4 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.168e-05/1.729, allocations: 76.91 kB / 1.299 GB, free: 117.3 MB / 1.014 GB Notification: Performance of pre-optimization done (n=353): time 5.341e-06/1.729, allocations: 0 / 1.299 GB, free: 117.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=578): time 0.4464/2.175, allocations: 122.8 MB / 1.419 GB, free: 19.03 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/2.176, allocations: 111.9 kB / 1.419 GB, free: 18.9 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005028/2.181, allocations: 2.689 MB / 1.421 GB, free: 16.21 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001342/2.182, allocations: 121.7 kB / 1.422 GB, free: 16.09 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001477/2.184, allocations: 2.675 MB / 1.424 GB, free: 13.39 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.002601/2.186, allocations: 1.949 MB / 1.426 GB, free: 11.46 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002398/2.189, allocations: 0.9287 MB / 1.427 GB, free: 10.52 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 4.555e-05/2.189, allocations: 301.1 kB / 1.427 GB, free: 10.23 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004972/2.194, allocations: 4.079 MB / 1.431 GB, free: 6.141 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0056/2.199, allocations: 5.019 MB / 1.436 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01451/2.214, allocations: 9.855 MB / 1.446 GB, free: 6.562 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.401e-05/2.214, allocations: 7.938 kB / 1.446 GB, free: 6.555 MB / 1.029 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04089/2.255, allocations: 17 MB / 1.462 GB, free: 5.422 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/2.255, allocations: 16.25 kB / 1.462 GB, free: 5.406 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-05/2.255, allocations: 24 kB / 1.462 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03159/2.286, allocations: 9.087 MB / 1.471 GB, free: 12.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/2.289, allocations: 0.526 MB / 1.472 GB, free: 11.73 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1153/2.404, allocations: 76.94 MB / 1.547 GB, free: 13.24 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005958/2.41, allocations: 287.7 kB / 1.547 GB, free: 12.96 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/2.412, allocations: 195.9 kB / 1.547 GB, free: 12.77 MB / 1.139 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.00533/2.417, allocations: 2.417 MB / 1.55 GB, free: 10.34 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/2.419, allocations: 482.4 kB / 1.55 GB, free: 9.859 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03841/2.457, allocations: 16.81 MB / 1.567 GB, free: 8.898 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-05/2.457, allocations: 56 kB / 1.567 GB, free: 8.844 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002316/2.457, allocations: 72.12 kB / 1.567 GB, free: 8.773 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000135/2.458, allocations: 27.89 kB / 1.567 GB, free: 8.746 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05655/2.514, allocations: 25.66 MB / 1.592 GB, free: 14.86 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.281e-05/2.514, allocations: 8 kB / 1.592 GB, free: 14.85 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/2.516, allocations: 319.5 kB / 1.592 GB, free: 14.54 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02885/2.545, allocations: 8.27 MB / 1.6 GB, free: 6.23 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001474/2.546, allocations: 103.9 kB / 1.6 GB, free: 6.129 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1067/2.653, allocations: 73.82 MB / 1.672 GB, free: 10.76 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/2.653, allocations: 11.94 kB / 1.672 GB, free: 10.75 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04522/2.698, allocations: 21.57 MB / 1.693 GB, free: 4.832 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004157/2.703, allocations: 1.362 MB / 1.695 GB, free: 3.445 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001652/2.704, allocations: 115.9 kB / 1.695 GB, free: 3.332 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004233/2.709, allocations: 283.8 kB / 1.695 GB, free: 3.055 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002628/2.711, allocations: 0.5221 MB / 1.696 GB, free: 2.527 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006468/2.712, allocations: 148 kB / 1.696 GB, free: 2.383 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.003363/2.715, allocations: 1.776 MB / 1.698 GB, free: 0.6172 MB / 1.279 GB Notification: Performance of sort global known variables: time 7.92e-07/2.715, allocations: 0 / 1.698 GB, free: 0.6172 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.01168/2.727, allocations: 2.465 MB / 1.7 GB, free: 14.15 MB / 1.295 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.00168/2.729, allocations: 244.7 kB / 1.7 GB, free: 13.91 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.02998/2.759, allocations: 14.53 MB / 1.714 GB, free: 15.19 MB / 1.311 GB Notification: Performance of simCode: created event and clocks part: time 2.058e-05/2.759, allocations: 4.25 kB / 1.714 GB, free: 15.18 MB / 1.311 GB Notification: Performance of simCode: created simulation system equations: time 0.01998/2.779, allocations: 9.35 MB / 1.724 GB, free: 5.68 MB / 1.311 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007797/2.787, allocations: 1.371 MB / 1.725 GB, free: 4.352 MB / 1.311 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03318/2.82, allocations: 15.59 MB / 1.74 GB, free: 4.664 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007793/2.828, allocations: 4.893 MB / 1.745 GB, free: 15.73 MB / 1.342 GB Notification: Performance of simCode: alias equations: time 0.002847/2.831, allocations: 0.741 MB / 1.746 GB, free: 14.98 MB / 1.342 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005906/2.831, allocations: 195.4 kB / 1.746 GB, free: 14.79 MB / 1.342 GB Notification: Performance of SimCode: time 8.41e-07/2.831, allocations: 0 / 1.746 GB, free: 14.79 MB / 1.342 GB Notification: Performance of Templates: time 0.9506/3.782, allocations: 150.1 MB / 1.892 GB, free: 393.4 MB / 1.357 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches