Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 108 kB / 15.6 MB, free: 132 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.002052/0.002051, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.763/2.763, allocations: 472.6 MB / 0.7452 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 75.27 kB / 0.9121 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3682, allocations: 159.9 MB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC): time 0.01167/0.3799, allocations: 10.02 MB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005237/0.3852, allocations: 3.033 MB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006296/0.3858, allocations: 35.81 kB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.3876, allocations: 0.6919 MB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.389, allocations: 0.6844 MB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.3903, allocations: 0.6422 MB / 1.083 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002421/0.3927, allocations: 2.734 MB / 1.086 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002581/0.3953, allocations: 2.55 MB / 1.088 GB, free: 5.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.3966, allocations: 1.126 MB / 1.089 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.3982, allocations: 1.383 MB / 1.091 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002951/0.3985, allocations: 220 kB / 1.091 GB, free: 3.109 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008939/0.3994, allocations: 483.4 kB / 1.091 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008321/0.4003, allocations: 0.9824 MB / 1.092 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0009421/0.4012, allocations: 1.011 MB / 1.093 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002934/0.4041, allocations: 3.393 MB / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.4042, allocations: 4 kB / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.645e-06/0.4042, allocations: 0 / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.703e-05/0.4042, allocations: 0 / 1.097 GB, free: 13.23 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.003411/0.4077, allocations: 1.942 MB / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.4077, allocations: 12.03 kB / 1.098 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005878/0.4136, allocations: 0.8883 MB / 1.099 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002205/0.4158, allocations: 1.118 MB / 1.1 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.753e-05/0.4159, allocations: 115.3 kB / 1.101 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.4163, allocations: 140.3 kB / 1.101 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004542/0.4208, allocations: 3.019 MB / 1.104 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.758e-05/0.4209, allocations: 7.906 kB / 1.104 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001882/0.421, allocations: 71.95 kB / 1.104 GB, free: 5.727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002016/0.4213, allocations: 167 kB / 1.104 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003965/0.4252, allocations: 2.615 MB / 1.106 GB, free: 2.941 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01523/0.4405, allocations: 13.57 MB / 1.12 GB, free: 4.273 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.4424, allocations: 1.289 MB / 1.121 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.4437, allocations: 1.047 MB / 1.122 GB, free: 1.922 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.717e-05/0.4438, allocations: 8.656 kB / 1.122 GB, free: 1.914 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.4438, allocations: 51.16 kB / 1.122 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 2.926e-06/0.4438, allocations: 0 / 1.122 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of matching and sorting (n=139): time 0.07346/0.5173, allocations: 19.38 MB / 1.141 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.5174, allocations: 68.72 kB / 1.141 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.5187, allocations: 0.9144 MB / 1.142 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.000173/0.5188, allocations: 53.69 kB / 1.142 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004717/0.5193, allocations: 0.7321 MB / 1.143 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004222/0.5198, allocations: 489 kB / 1.143 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005429/0.5203, allocations: 291.5 kB / 1.143 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5204, allocations: 353.9 kB / 1.144 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/0.5223, allocations: 1.331 MB / 1.145 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/0.5243, allocations: 1.666 MB / 1.147 GB, free: 8.281 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/0.5282, allocations: 3.092 MB / 1.15 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.5283, allocations: 0 / 1.15 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=191) (initialization): time 0.0111/0.5394, allocations: 5.636 MB / 1.155 GB, free: 15.41 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.5394, allocations: 9.406 kB / 1.155 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.5394, allocations: 11.94 kB / 1.155 GB, free: 15.39 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008349/0.5478, allocations: 2.739 MB / 1.158 GB, free: 12.64 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008281/0.5487, allocations: 191.7 kB / 1.158 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03396/0.5826, allocations: 25.73 MB / 1.183 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.5842, allocations: 91.95 kB / 1.183 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.5843, allocations: 56 kB / 1.183 GB, free: 2.004 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,12,100.0%), (6,24,100.0%), (6,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001158/0.5855, allocations: 0.7355 MB / 1.184 GB, free: 1.258 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.5857, allocations: 114.6 kB / 1.184 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.5965, allocations: 5.396 MB / 1.189 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.5966, allocations: 12 kB / 1.189 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.973e-05/0.5966, allocations: 24 kB / 1.189 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.219e-05/0.5966, allocations: 11.91 kB / 1.189 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.612, allocations: 8.64 MB / 1.198 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.612, allocations: 4 kB / 1.198 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004398/0.6125, allocations: 119.8 kB / 1.198 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007936/0.6204, allocations: 2.561 MB / 1.201 GB, free: 224 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001469/0.6206, allocations: 32 kB / 1.201 GB, free: 192 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0313/0.6519, allocations: 23.01 MB / 1.223 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.6519, allocations: 8.109 kB / 1.223 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/0.6623, allocations: 5.126 MB / 1.228 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000978/0.6633, allocations: 475.6 kB / 1.228 GB, free: 2.906 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.6635, allocations: 36.28 kB / 1.229 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009207/0.6645, allocations: 71.91 kB / 1.229 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005714/0.665, allocations: 125 kB / 1.229 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-05/0.6651, allocations: 44 kB / 1.229 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008079/0.666, allocations: 0.6395 MB / 1.229 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.666, allocations: 0 / 1.229 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002336/0.6683, allocations: 0.7227 MB / 1.23 GB, free: 1.273 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 simulation (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,24,100.0%), (6,6,100.0%), (10,14,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002672/0.6686, allocations: 143.6 kB / 1.23 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.007702/0.6763, allocations: 4.737 MB / 1.235 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.6763, allocations: 4.188 kB / 1.235 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005136/0.6815, allocations: 2.639 MB / 1.237 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.6829, allocations: 225.7 kB / 1.238 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006097/0.689, allocations: 3.945 MB / 1.241 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001348/0.6904, allocations: 1.7 MB / 1.243 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007064/0.6911, allocations: 329.4 kB / 1.243 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.6913, allocations: 55.44 kB / 1.244 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of SimCode: time 8.32e-07/0.6913, allocations: 0 / 1.244 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of Templates: time 0.7216/1.413, allocations: 38.97 MB / 1.282 GB, free: 159.9 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches