Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.009745/0.009745, allocations: 99.67 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.002172/0.002172, allocations: 202.7 kB / 16.68 MB, free: 5.965 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.752/2.752, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 59.91 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4076, allocations: 151.6 MB / 1.167 GB, free: 6.809 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04955/0.4572, allocations: 41.18 MB / 1.207 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02833/0.4856, allocations: 15.08 MB / 1.222 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00592/0.4915, allocations: 195 kB / 1.222 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.01247/0.5041, allocations: 4.471 MB / 1.226 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.5144, allocations: 2.927 MB / 1.229 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.01018/0.5246, allocations: 3.164 MB / 1.232 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01668/0.5413, allocations: 11.43 MB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.7993/1.341, allocations: 12.46 MB / 1.255 GB, free: 16.06 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01454/1.355, allocations: 4.907 MB / 1.26 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01587/1.371, allocations: 5.396 MB / 1.265 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.007185/1.378, allocations: 0.9489 MB / 1.266 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/1.39, allocations: 2.034 MB / 1.268 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.01274/1.403, allocations: 3.691 MB / 1.272 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.02086/1.424, allocations: 4.3 MB / 1.276 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.04063/1.465, allocations: 14.31 MB / 1.29 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.223e-05/1.465, allocations: 1.312 kB / 1.29 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of FrontEnd: time 5.41e-06/1.465, allocations: 0 / 1.29 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.001157/1.466, allocations: 0 / 1.29 GB, free: 12.61 MB / 0.9981 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.05757/1.524, allocations: 7.794 MB / 1.298 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 8.657e-05/1.524, allocations: 14.62 kB / 1.298 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/1.542, allocations: 1.553 MB / 1.299 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02299/1.565, allocations: 4.466 MB / 1.304 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001262/1.566, allocations: 455.9 kB / 1.304 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006378/1.573, allocations: 0.5975 MB / 1.305 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05136/1.624, allocations: 10.67 MB / 1.315 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007475/1.625, allocations: 41.59 kB / 1.315 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005825/1.631, allocations: 260.7 kB / 1.315 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003877/1.635, allocations: 0.7758 MB / 1.316 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0295/1.664, allocations: 8.561 MB / 1.325 GB, free: 15.86 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1012/1.765, allocations: 46.6 MB / 1.37 GB, free: 7.219 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009084/1.775, allocations: 4.318 MB / 1.374 GB, free: 3.527 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009013/1.784, allocations: 3.725 MB / 1.378 GB, free: 15.81 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007532/1.784, allocations: 37.83 kB / 1.378 GB, free: 15.78 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/1.785, allocations: 77.34 kB / 1.378 GB, free: 15.69 MB / 1.061 GB Notification: Performance of pre-optimization done (n=353): time 9.708e-06/1.785, allocations: 0 / 1.378 GB, free: 15.69 MB / 1.061 GB Notification: Performance of matching and sorting (n=578): time 0.5677/2.352, allocations: 122.9 MB / 1.498 GB, free: 4.422 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/2.353, allocations: 111.9 kB / 1.498 GB, free: 4.297 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006727/2.359, allocations: 2.688 MB / 1.501 GB, free: 1.613 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.002135/2.361, allocations: 117.7 kB / 1.501 GB, free: 1.492 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.002694/2.364, allocations: 2.755 MB / 1.504 GB, free: 14.72 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.004272/2.368, allocations: 2.05 MB / 1.506 GB, free: 12.7 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006175/2.375, allocations: 0.9212 MB / 1.506 GB, free: 11.77 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001486/2.375, allocations: 301.1 kB / 1.507 GB, free: 11.47 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009326/2.384, allocations: 4.083 MB / 1.511 GB, free: 7.379 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009009/2.393, allocations: 5.018 MB / 1.516 GB, free: 2.047 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01827/2.411, allocations: 9.845 MB / 1.525 GB, free: 7.91 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-05/2.412, allocations: 8 kB / 1.525 GB, free: 7.902 MB / 1.201 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04652/2.458, allocations: 17.02 MB / 1.542 GB, free: 7.152 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 5.269e-05/2.458, allocations: 13 kB / 1.542 GB, free: 7.141 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.891e-05/2.458, allocations: 27.98 kB / 1.542 GB, free: 7.113 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03421/2.492, allocations: 9.086 MB / 1.551 GB, free: 13.99 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/2.495, allocations: 0.5273 MB / 1.551 GB, free: 13.5 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1499/2.645, allocations: 77.04 MB / 1.626 GB, free: 15.07 MB / 1.311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00869/2.654, allocations: 283.8 kB / 1.627 GB, free: 14.79 MB / 1.311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/2.656, allocations: 188 kB / 1.627 GB, free: 14.61 MB / 1.311 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.00856/2.665, allocations: 2.431 MB / 1.629 GB, free: 12.2 MB / 1.311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003173/2.668, allocations: 493 kB / 1.63 GB, free: 11.71 MB / 1.311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04874/2.717, allocations: 16.83 MB / 1.646 GB, free: 11.01 MB / 1.326 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/2.717, allocations: 56 kB / 1.646 GB, free: 10.96 MB / 1.326 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0004853/2.718, allocations: 72 kB / 1.646 GB, free: 10.89 MB / 1.326 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002565/2.718, allocations: 27.89 kB / 1.646 GB, free: 10.86 MB / 1.326 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.073/2.791, allocations: 25.65 MB / 1.671 GB, free: 1.273 MB / 1.342 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-05/2.791, allocations: 11.98 kB / 1.671 GB, free: 1.262 MB / 1.342 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002159/2.793, allocations: 319.4 kB / 1.672 GB, free: 0.9648 MB / 1.342 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0308/2.824, allocations: 8.262 MB / 1.68 GB, free: 8.672 MB / 1.357 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002179/2.826, allocations: 115 kB / 1.68 GB, free: 8.562 MB / 1.357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1141/2.94, allocations: 73.9 MB / 1.752 GB, free: 13.24 MB / 1.436 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/2.94, allocations: 14.66 kB / 1.752 GB, free: 13.23 MB / 1.436 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04989/2.99, allocations: 21.59 MB / 1.773 GB, free: 7.555 MB / 1.451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006504/2.997, allocations: 1.388 MB / 1.775 GB, free: 6.145 MB / 1.451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002321/2.999, allocations: 107.5 kB / 1.775 GB, free: 6.043 MB / 1.451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005434/3.005, allocations: 291.6 kB / 1.775 GB, free: 5.758 MB / 1.451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002741/3.007, allocations: 0.5253 MB / 1.775 GB, free: 5.234 MB / 1.451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007201/3.008, allocations: 144 kB / 1.776 GB, free: 5.094 MB / 1.451 GB Notification: Performance of sorting global known variables: time 0.003816/3.012, allocations: 1.772 MB / 1.777 GB, free: 3.332 MB / 1.451 GB Notification: Performance of sort global known variables: time 1.7e-07/3.012, allocations: 0 / 1.777 GB, free: 3.332 MB / 1.451 GB Notification: Performance of remove unused functions: time 0.0133/3.025, allocations: 2.465 MB / 1.78 GB, free: 0.8672 MB / 1.451 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.001608/3.027, allocations: 243.8 kB / 1.78 GB, free: 0.6328 MB / 1.451 GB Notification: Performance of simCode: created initialization part: time 0.03052/3.058, allocations: 14.56 MB / 1.794 GB, free: 2 MB / 1.467 GB Notification: Performance of simCode: created event and clocks part: time 1.931e-05/3.058, allocations: 5 kB / 1.794 GB, free: 1.996 MB / 1.467 GB Notification: Performance of simCode: created simulation system equations: time 0.7644/3.822, allocations: 9.395 MB / 1.803 GB, free: 0.4986 GB / 1.467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00917/3.831, allocations: 1.379 MB / 1.805 GB, free: 0.4985 GB / 1.467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03799/3.869, allocations: 15.78 MB / 1.82 GB, free: 0.4944 GB / 1.467 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009411/3.879, allocations: 4.899 MB / 1.825 GB, free: 0.4935 GB / 1.467 GB Notification: Performance of simCode: alias equations: time 0.003563/3.882, allocations: 0.744 MB / 1.826 GB, free: 0.4933 GB / 1.467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000812/3.883, allocations: 195.2 kB / 1.826 GB, free: 0.4933 GB / 1.467 GB Notification: Performance of SimCode: time 1.162e-06/3.883, allocations: 0 / 1.826 GB, free: 0.4933 GB / 1.467 GB Notification: Performance of Templates: time 0.2258/4.109, allocations: 147 MB / 1.969 GB, free: 398 MB / 1.467 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches