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.001207/0.001207, allocations: 106.8 kB / 16.27 MB, free: 6.414 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.001219/0.001219, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.332/1.332, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.339/2.339, allocations: 390.3 MB / 0.6653 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 65.83 kB / 0.8132 GB, free: 33.19 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2956, allocations: 140.4 MB / 0.9503 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04486/0.3405, allocations: 41.21 MB / 0.9905 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02613/0.3667, allocations: 15.08 MB / 1.005 GB, free: 376 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005609/0.3724, allocations: 191.1 kB / 1.005 GB, free: 184 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.3837, allocations: 4.456 MB / 1.01 GB, free: 11.71 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.008555/0.3923, allocations: 2.79 MB / 1.013 GB, free: 8.906 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.008379/0.4007, allocations: 3.165 MB / 1.016 GB, free: 5.742 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0148/0.4155, allocations: 11.4 MB / 1.027 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0193/0.4349, allocations: 12.62 MB / 1.039 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008028/0.4429, allocations: 4.798 MB / 1.044 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01105/0.454, allocations: 5.382 MB / 1.049 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.003443/0.4574, allocations: 0.9492 MB / 1.05 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00631/0.4638, allocations: 2.04 MB / 1.052 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005918/0.4697, allocations: 3.688 MB / 1.056 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0095/0.4792, allocations: 4.303 MB / 1.06 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01942/0.4987, allocations: 14.18 MB / 1.074 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.306e-05/0.4988, allocations: 4 kB / 1.074 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.836e-06/0.4988, allocations: 0 / 1.074 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0008172/0.4996, allocations: 0 / 1.074 GB, free: 10.1 MB / 0.8575 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.02721/0.5268, allocations: 7.592 MB / 1.081 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.5269, allocations: 16.03 kB / 1.081 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01214/0.5391, allocations: 1.522 MB / 1.082 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6329/1.172, allocations: 4.203 MB / 1.087 GB, free: 117.4 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004699/1.173, allocations: 454.5 kB / 1.087 GB, free: 117.2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002649/1.175, allocations: 0.5932 MB / 1.088 GB, free: 117 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02823/1.203, allocations: 10.68 MB / 1.098 GB, free: 112.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/1.204, allocations: 32.45 kB / 1.098 GB, free: 112.7 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/1.205, allocations: 262.6 kB / 1.098 GB, free: 112.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003136/1.208, allocations: 0.776 MB / 1.099 GB, free: 112.4 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01954/1.227, allocations: 8.566 MB / 1.107 GB, free: 109.4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05754/1.285, allocations: 46.87 MB / 1.153 GB, free: 70.74 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00564/1.291, allocations: 4.295 MB / 1.157 GB, free: 68.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004396/1.295, allocations: 3.703 MB / 1.161 GB, free: 66.44 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002674/1.295, allocations: 34.25 kB / 1.161 GB, free: 66.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.383e-05/1.296, allocations: 83.09 kB / 1.161 GB, free: 66.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=353): time 6.973e-06/1.296, allocations: 0 / 1.161 GB, free: 66.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=578): time 0.5007/1.796, allocations: 122.8 MB / 1.281 GB, free: 10.06 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.947e-05/1.796, allocations: 115.9 kB / 1.281 GB, free: 9.93 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/1.8, allocations: 2.684 MB / 1.284 GB, free: 7.25 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/1.801, allocations: 121.7 kB / 1.284 GB, free: 7.125 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001764/1.803, allocations: 2.675 MB / 1.287 GB, free: 4.426 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.002657/1.806, allocations: 1.957 MB / 1.288 GB, free: 2.484 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001898/1.808, allocations: 0.9248 MB / 1.289 GB, free: 1.551 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.306e-05/1.808, allocations: 301.1 kB / 1.29 GB, free: 1.254 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005944/1.814, allocations: 4.083 MB / 1.294 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007319/1.821, allocations: 5.015 MB / 1.299 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01489/1.836, allocations: 9.848 MB / 1.308 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.902e-05/1.836, allocations: 8 kB / 1.308 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04068/1.877, allocations: 17 MB / 1.325 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/1.877, allocations: 12 kB / 1.325 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.714e-05/1.877, allocations: 24 kB / 1.325 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03234/1.909, allocations: 9.148 MB / 1.334 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/1.912, allocations: 0.5264 MB / 1.334 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1081/2.02, allocations: 77.01 MB / 1.409 GB, free: 4.156 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006099/2.026, allocations: 279.8 kB / 1.41 GB, free: 3.883 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009452/2.027, allocations: 192 kB / 1.41 GB, free: 3.695 MB / 1.045 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.004767/2.032, allocations: 2.433 MB / 1.412 GB, free: 1.254 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/2.034, allocations: 478.4 kB / 1.413 GB, free: 0.7812 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04942/2.083, allocations: 16.84 MB / 1.429 GB, free: 15.91 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.22e-05/2.083, allocations: 63.98 kB / 1.429 GB, free: 15.85 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003518/2.084, allocations: 72 kB / 1.429 GB, free: 15.78 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001489/2.084, allocations: 31.83 kB / 1.429 GB, free: 15.75 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06152/2.145, allocations: 25.65 MB / 1.454 GB, free: 5.867 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.199e-05/2.145, allocations: 8 kB / 1.454 GB, free: 5.859 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/2.147, allocations: 319.5 kB / 1.455 GB, free: 5.547 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02996/2.177, allocations: 8.334 MB / 1.463 GB, free: 13.17 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001429/2.179, allocations: 112 kB / 1.463 GB, free: 13.06 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7485/2.927, allocations: 73.88 MB / 1.535 GB, free: 382.5 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/2.927, allocations: 15.28 kB / 1.535 GB, free: 382.5 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05547/2.983, allocations: 21.57 MB / 1.556 GB, free: 377 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003992/2.987, allocations: 1.354 MB / 1.557 GB, free: 376.4 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/2.989, allocations: 115.7 kB / 1.558 GB, free: 376.4 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004803/2.993, allocations: 290.3 kB / 1.558 GB, free: 376.3 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002693/2.996, allocations: 0.5241 MB / 1.558 GB, free: 376.2 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008706/2.997, allocations: 141.1 kB / 1.558 GB, free: 376.2 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.003368/3, allocations: 1.779 MB / 1.56 GB, free: 375.5 MB / 1.154 GB Notification: Performance of sort global known variables: time 2.61e-07/3, allocations: 2.781 kB / 1.56 GB, free: 375.5 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.01083/3.011, allocations: 2.463 MB / 1.563 GB, free: 375.3 MB / 1.154 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.001261/3.012, allocations: 238.4 kB / 1.563 GB, free: 375.1 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.03338/3.046, allocations: 18.68 MB / 1.581 GB, free: 368.3 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 1.677e-05/3.046, allocations: 3.156 kB / 1.581 GB, free: 368.3 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.01756/3.063, allocations: 9.358 MB / 1.59 GB, free: 363.8 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007623/3.071, allocations: 1.36 MB / 1.592 GB, free: 363.4 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02892/3.1, allocations: 16.66 MB / 1.608 GB, free: 352.8 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007346/3.108, allocations: 4.993 MB / 1.613 GB, free: 348.9 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/3.109, allocations: 215 kB / 1.613 GB, free: 348.7 MB / 1.154 GB Notification: Performance of SimCode: time 9.92e-07/3.109, allocations: 0 / 1.613 GB, free: 348.7 MB / 1.154 GB Notification: Performance of Templates: time 0.8009/3.91, allocations: 474.6 MB / 2.076 GB, free: 299.3 MB / 1.154 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/jenkins1/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