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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008711/0.0008711, allocations: 98.88 kB / 16.02 MB, free: 76 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.001139/0.001139, allocations: 187.4 kB / 16.92 MB, free: 6.77 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.432/1.432, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.422/2.422, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004061, allocations: 12 kB / 0.8167 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7545/0.755, allocations: 142.4 MB / 0.9557 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04131/0.7963, allocations: 39.88 MB / 0.9947 GB, free: 7.391 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02483/0.8212, allocations: 14.93 MB / 1.009 GB, free: 8.422 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005312/0.8266, allocations: 159.1 kB / 1.009 GB, free: 8.266 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003883/0.8305, allocations: 0.8567 MB / 1.01 GB, free: 7.402 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.009245/0.8397, allocations: 2.636 MB / 1.013 GB, free: 4.754 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.007769/0.8476, allocations: 2.712 MB / 1.015 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01919/0.8668, allocations: 16 MB / 1.031 GB, free: 2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02946/0.8963, allocations: 15.77 MB / 1.046 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00834/0.9047, allocations: 3.536 MB / 1.05 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009102/0.9138, allocations: 4.761 MB / 1.055 GB, free: 9.781 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002537/0.9164, allocations: 400 kB / 1.055 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006194/0.9226, allocations: 1.821 MB / 1.057 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.006182/0.9288, allocations: 3 MB / 1.06 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.01204/0.9409, allocations: 3.52 MB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.9571, allocations: 11.81 MB / 1.075 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.9571, allocations: 0 / 1.075 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.727e-06/0.9571, allocations: 0 / 1.075 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0005257/0.9577, allocations: 4 kB / 1.075 GB, free: 5.168 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.01859/0.9763, allocations: 6.154 MB / 1.081 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.9764, allocations: 8.031 kB / 1.081 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/0.9879, allocations: 1.514 MB / 1.082 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/0.998, allocations: 4.209 MB / 1.086 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004742/0.9985, allocations: 456.5 kB / 1.087 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002544/1.001, allocations: 0.5939 MB / 1.087 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02327/1.024, allocations: 10.68 MB / 1.098 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001865/1.025, allocations: 43.64 kB / 1.098 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008331/1.025, allocations: 259.9 kB / 1.098 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002877/1.028, allocations: 0.7729 MB / 1.099 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/1.047, allocations: 8.557 MB / 1.107 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06865/1.116, allocations: 47.02 MB / 1.153 GB, free: 0.5898 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006872/1.123, allocations: 4.311 MB / 1.157 GB, free: 12.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00619/1.129, allocations: 3.677 MB / 1.161 GB, free: 8.582 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000405/1.13, allocations: 38.77 kB / 1.161 GB, free: 8.543 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.97e-05/1.13, allocations: 77.34 kB / 1.161 GB, free: 8.457 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 6.873e-06/1.13, allocations: 4 kB / 1.161 GB, free: 8.453 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 1.085/2.215, allocations: 128.1 MB / 1.286 GB, free: 264.5 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/2.215, allocations: 110.7 kB / 1.286 GB, free: 264.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/2.219, allocations: 2.68 MB / 1.289 GB, free: 263.5 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001143/2.22, allocations: 123.5 kB / 1.289 GB, free: 263.4 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001647/2.222, allocations: 2.675 MB / 1.292 GB, free: 261.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0024/2.224, allocations: 1.954 MB / 1.293 GB, free: 259.9 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007773/2.225, allocations: 445.3 kB / 1.294 GB, free: 259.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 5.061e-05/2.225, allocations: 309.1 kB / 1.294 GB, free: 259.3 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005351/2.231, allocations: 4.077 MB / 1.298 GB, free: 257.6 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006167/2.237, allocations: 5.016 MB / 1.303 GB, free: 254.9 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/2.249, allocations: 9.848 MB / 1.313 GB, free: 249 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/2.249, allocations: 7.906 kB / 1.313 GB, free: 249 MB / 1.014 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03654/2.286, allocations: 16.99 MB / 1.329 GB, free: 238.2 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/2.286, allocations: 12 kB / 1.329 GB, free: 238.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/2.286, allocations: 27.94 kB / 1.329 GB, free: 238.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03041/2.316, allocations: 9.08 MB / 1.338 GB, free: 229.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/2.319, allocations: 0.5252 MB / 1.339 GB, free: 228.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08713/2.406, allocations: 70.71 MB / 1.408 GB, free: 156.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006719/2.413, allocations: 287.8 kB / 1.408 GB, free: 156.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001381/2.414, allocations: 188 kB / 1.408 GB, free: 155.9 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.00596/2.42, allocations: 2.418 MB / 1.411 GB, free: 153.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001407/2.422, allocations: 474.5 kB / 1.411 GB, free: 153 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03642/2.458, allocations: 16.82 MB / 1.427 GB, free: 136.1 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.56e-05/2.458, allocations: 56 kB / 1.427 GB, free: 136 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002254/2.458, allocations: 72.88 kB / 1.428 GB, free: 135.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000122/2.458, allocations: 31.89 kB / 1.428 GB, free: 135.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05111/2.51, allocations: 25.68 MB / 1.453 GB, free: 110 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.096e-05/2.51, allocations: 12 kB / 1.453 GB, free: 110 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/2.512, allocations: 319.6 kB / 1.453 GB, free: 109.7 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02792/2.539, allocations: 8.269 MB / 1.461 GB, free: 101.4 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001117/2.541, allocations: 112 kB / 1.461 GB, free: 101.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08247/2.623, allocations: 67.58 MB / 1.527 GB, free: 32.21 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/2.623, allocations: 11.94 kB / 1.527 GB, free: 32.2 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03945/2.663, allocations: 21.57 MB / 1.548 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003433/2.666, allocations: 1.366 MB / 1.55 GB, free: 8.879 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/2.668, allocations: 108 kB / 1.55 GB, free: 8.773 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00397/2.672, allocations: 283.6 kB / 1.55 GB, free: 8.496 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001982/2.674, allocations: 0.526 MB / 1.55 GB, free: 7.965 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000483/2.674, allocations: 144.1 kB / 1.551 GB, free: 7.824 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002321/2.676, allocations: 1.78 MB / 1.552 GB, free: 6.055 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.21e-07/2.676, allocations: 0 / 1.552 GB, free: 6.055 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.008065/2.684, allocations: 2.461 MB / 1.555 GB, free: 3.594 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.0009752/2.685, allocations: 243 kB / 1.555 GB, free: 3.348 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02607/2.712, allocations: 14.52 MB / 1.569 GB, free: 4.645 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/2.712, allocations: 4 kB / 1.569 GB, free: 4.641 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.01945/2.731, allocations: 9.401 MB / 1.578 GB, free: 11.09 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01094/2.742, allocations: 1.276 MB / 1.58 GB, free: 9.828 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/2.774, allocations: 19.73 MB / 1.599 GB, free: 5.961 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007251/2.781, allocations: 4.994 MB / 1.604 GB, free: 0.9258 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/2.782, allocations: 215.4 kB / 1.604 GB, free: 0.7148 MB / 1.061 GB Notification: Performance of SimCode: time 1.062e-06/2.782, allocations: 0 / 1.604 GB, free: 0.7148 MB / 1.061 GB Notification: Performance of Templates: time 1.001/3.783, allocations: 473.7 MB / 2.066 GB, free: 47.73 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