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.0009756/0.0009757, allocations: 97.64 kB / 15.36 MB, free: 0.7305 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.001234/0.001234, allocations: 172.5 kB / 16.26 MB, free: 6.664 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.492/1.492, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.626/2.626, allocations: 390.9 MB / 0.6663 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.000358, allocations: 8 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7866/0.7869, allocations: 142.4 MB / 0.9551 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04323/0.8302, allocations: 39.87 MB / 0.994 GB, free: 7.383 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.03092/0.8612, allocations: 14.93 MB / 1.009 GB, free: 8.41 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00691/0.8682, allocations: 159.1 kB / 1.009 GB, free: 8.254 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00483/0.873, allocations: 0.8606 MB / 1.01 GB, free: 7.387 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.8843, allocations: 2.636 MB / 1.012 GB, free: 4.738 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.009053/0.8934, allocations: 2.709 MB / 1.015 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0228/0.9162, allocations: 16 MB / 1.03 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03039/0.9467, allocations: 15.78 MB / 1.046 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008076/0.9548, allocations: 3.54 MB / 1.049 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00931/0.9641, allocations: 4.757 MB / 1.054 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002527/0.9667, allocations: 396 kB / 1.054 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006495/0.9732, allocations: 1.825 MB / 1.056 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.006399/0.9796, allocations: 2.989 MB / 1.059 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.01085/0.9905, allocations: 3.527 MB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.02177/1.012, allocations: 13.59 MB / 1.076 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.012, allocations: 0 / 1.076 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.627e-06/1.012, allocations: 0 / 1.076 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0004723/1.013, allocations: 3.938 kB / 1.076 GB, free: 3.359 MB / 0.8262 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.01796/1.031, allocations: 6.154 MB / 1.082 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/1.031, allocations: 8.031 kB / 1.082 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/1.042, allocations: 1.526 MB / 1.083 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009369/1.052, allocations: 4.201 MB / 1.087 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004317/1.052, allocations: 456.5 kB / 1.088 GB, free: 6.855 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002249/1.054, allocations: 0.5977 MB / 1.088 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/1.078, allocations: 10.69 MB / 1.099 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001938/1.078, allocations: 23.78 kB / 1.099 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009806/1.079, allocations: 267.9 kB / 1.099 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002959/1.082, allocations: 0.7729 MB / 1.1 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/1.102, allocations: 8.561 MB / 1.108 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0678/1.169, allocations: 47.02 MB / 1.154 GB, free: 14.77 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006275/1.176, allocations: 4.314 MB / 1.158 GB, free: 10.45 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005862/1.182, allocations: 3.685 MB / 1.162 GB, free: 6.758 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003539/1.182, allocations: 50.7 kB / 1.162 GB, free: 6.707 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.1e-05/1.182, allocations: 73.34 kB / 1.162 GB, free: 6.625 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 5.33e-06/1.182, allocations: 0 / 1.162 GB, free: 6.625 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 1.214/2.396, allocations: 128.1 MB / 1.287 GB, free: 265.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/2.397, allocations: 114.2 kB / 1.287 GB, free: 265.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004686/2.401, allocations: 2.68 MB / 1.29 GB, free: 264.6 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001451/2.403, allocations: 117.4 kB / 1.29 GB, free: 264.5 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001789/2.404, allocations: 2.683 MB / 1.293 GB, free: 262.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.002478/2.407, allocations: 1.953 MB / 1.294 GB, free: 260.9 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006955/2.408, allocations: 441.2 kB / 1.295 GB, free: 260.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 5.94e-05/2.408, allocations: 312.8 kB / 1.295 GB, free: 260.4 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005416/2.413, allocations: 4.078 MB / 1.299 GB, free: 258.3 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005623/2.419, allocations: 5.011 MB / 1.304 GB, free: 255 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01243/2.431, allocations: 9.853 MB / 1.314 GB, free: 249 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.722e-05/2.431, allocations: 3.844 kB / 1.314 GB, free: 249 MB / 1.014 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03658/2.468, allocations: 16.99 MB / 1.33 GB, free: 236.5 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/2.468, allocations: 17.25 kB / 1.33 GB, free: 236.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.569e-05/2.468, allocations: 31.92 kB / 1.33 GB, free: 236.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02959/2.498, allocations: 9.085 MB / 1.339 GB, free: 227.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/2.5, allocations: 0.5226 MB / 1.34 GB, free: 226.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08565/2.586, allocations: 70.7 MB / 1.409 GB, free: 154.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005526/2.592, allocations: 283.8 kB / 1.409 GB, free: 154.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008247/2.593, allocations: 188 kB / 1.409 GB, free: 154.2 MB / 1.014 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.004562/2.597, allocations: 2.421 MB / 1.412 GB, free: 151.8 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/2.598, allocations: 478.5 kB / 1.412 GB, free: 151.3 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03731/2.636, allocations: 16.81 MB / 1.428 GB, free: 134.3 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-05/2.636, allocations: 60 kB / 1.429 GB, free: 134.3 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001979/2.636, allocations: 72 kB / 1.429 GB, free: 134.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001108/2.636, allocations: 27.89 kB / 1.429 GB, free: 134.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05096/2.687, allocations: 25.69 MB / 1.454 GB, free: 108.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-05/2.687, allocations: 8.062 kB / 1.454 GB, free: 108.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001883/2.689, allocations: 319.5 kB / 1.454 GB, free: 107.9 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02745/2.717, allocations: 8.273 MB / 1.462 GB, free: 99.64 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001082/2.718, allocations: 104 kB / 1.462 GB, free: 99.54 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08237/2.8, allocations: 67.58 MB / 1.528 GB, free: 30.48 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/2.8, allocations: 15.88 kB / 1.528 GB, free: 30.46 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04157/2.842, allocations: 21.56 MB / 1.549 GB, free: 8.547 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003776/2.846, allocations: 1.37 MB / 1.551 GB, free: 7.152 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/2.847, allocations: 108 kB / 1.551 GB, free: 7.047 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00416/2.851, allocations: 287.6 kB / 1.551 GB, free: 6.766 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001951/2.853, allocations: 0.5221 MB / 1.551 GB, free: 6.238 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004023/2.854, allocations: 144 kB / 1.552 GB, free: 6.098 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002488/2.856, allocations: 1.776 MB / 1.553 GB, free: 4.332 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/2.856, allocations: 0 / 1.553 GB, free: 4.332 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.008972/2.865, allocations: 2.461 MB / 1.556 GB, free: 1.871 MB / 1.014 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.0009477/2.866, allocations: 248.8 kB / 1.556 GB, free: 1.617 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.03002/2.896, allocations: 14.53 MB / 1.57 GB, free: 2.91 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/2.896, allocations: 5 kB / 1.57 GB, free: 2.906 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0202/2.916, allocations: 9.388 MB / 1.579 GB, free: 9.363 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01172/2.928, allocations: 1.283 MB / 1.581 GB, free: 8.098 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03481/2.963, allocations: 18.81 MB / 1.599 GB, free: 5.156 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009742/2.973, allocations: 4.892 MB / 1.604 GB, free: 228 kB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.003435/2.976, allocations: 0.7449 MB / 1.604 GB, free: 15.47 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007214/2.977, allocations: 199.4 kB / 1.605 GB, free: 15.27 MB / 1.076 GB Notification: Performance of SimCode: time 1.573e-06/2.977, allocations: 4 kB / 1.605 GB, free: 15.27 MB / 1.076 GB Notification: Performance of Templates: time 0.7931/3.77, allocations: 138.7 MB / 1.74 GB, free: 371.8 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/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