Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_RL,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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,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_2a.terminal_n.phase.1..i.1.|Rline_2a.terminal_n.phase.1..i.2.|Rline_3a.terminal_n.phase.1..i.1.|Rline_3a.terminal_n.phase.1..i.2.|Rline_3b.terminal_n.phase.1..i.1.|Rline_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, 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.001665/0.001665, allocations: 186.5 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.369/1.369, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.577/2.577, allocations: 443.2 MB / 0.7181 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003363, allocations: 11.66 kB / 0.8801 GB, free: 42.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2557, allocations: 155.1 MB / 1.032 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL): time 0.02321/0.279, allocations: 21.79 MB / 1.053 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01117/0.2902, allocations: 6.19 MB / 1.059 GB, free: 8.68 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.2924, allocations: 75.56 kB / 1.059 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.294, allocations: 440.6 kB / 1.059 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004192/0.2982, allocations: 1.541 MB / 1.061 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002951/0.3012, allocations: 1.098 MB / 1.062 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.008943/0.3101, allocations: 8.856 MB / 1.071 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.321, allocations: 7.178 MB / 1.078 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003429/0.3245, allocations: 1.77 MB / 1.079 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004392/0.3289, allocations: 2.601 MB / 1.082 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0009056/0.3298, allocations: 204 kB / 1.082 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002548/0.3324, allocations: 1.025 MB / 1.083 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002258/0.3347, allocations: 1.719 MB / 1.085 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002543/0.3372, allocations: 1.821 MB / 1.087 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005687/0.3429, allocations: 6.024 MB / 1.092 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3429, allocations: 0 / 1.092 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.164e-06/0.343, allocations: 0 / 1.092 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001421/0.3431, allocations: 0 / 1.092 GB, free: 6.184 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 913 * Number of variables: 913 Notification: Performance of Generate backend data structure: time 0.005578/0.3487, allocations: 3.073 MB / 1.095 GB, free: 3.051 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3487, allocations: 8.031 kB / 1.095 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00609/0.3548, allocations: 1.214 MB / 1.097 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003956/0.3588, allocations: 2.223 MB / 1.099 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.359, allocations: 246.3 kB / 1.099 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006323/0.3597, allocations: 311.9 kB / 1.099 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/0.37, allocations: 6.212 MB / 1.105 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.719e-05/0.3701, allocations: 15.86 kB / 1.105 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003979/0.3705, allocations: 147.9 kB / 1.106 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005785/0.3711, allocations: 398.3 kB / 1.106 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00878/0.3799, allocations: 4.658 MB / 1.111 GB, free: 3.312 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.03318/0.4131, allocations: 29.08 MB / 1.139 GB, free: 3.516 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002111/0.4152, allocations: 1.416 MB / 1.14 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001912/0.4171, allocations: 1.487 MB / 1.142 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.761e-05/0.4173, allocations: 16.98 kB / 1.142 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.4173, allocations: 47.55 kB / 1.142 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=110): time 3.366e-06/0.4173, allocations: 0 / 1.142 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of matching and sorting (n=179): time 0.1446/0.5619, allocations: 36.31 MB / 1.177 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.5621, allocations: 69.41 kB / 1.177 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/0.5645, allocations: 1.431 MB / 1.179 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002939/0.5648, allocations: 57.7 kB / 1.179 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000937/0.5658, allocations: 1.527 MB / 1.18 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000648/0.5665, allocations: 0.6123 MB / 1.181 GB, free: 8.383 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/0.5668, allocations: 161.7 kB / 1.181 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.5669, allocations: 309.1 kB / 1.181 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002496/0.5694, allocations: 1.788 MB / 1.183 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/0.5722, allocations: 2.35 MB / 1.185 GB, free: 3.516 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005456/0.5777, allocations: 4.387 MB / 1.19 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.5777, allocations: 4 kB / 1.19 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01737/0.5951, allocations: 8.567 MB / 1.198 GB, free: 6.277 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.5952, allocations: 12 kB / 1.198 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/0.5952, allocations: 20 kB / 1.198 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01519/0.6104, allocations: 4.636 MB / 1.203 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.6117, allocations: 303.5 kB / 1.203 GB, free: 1.297 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04237/0.6541, allocations: 29.49 MB / 1.232 GB, free: 3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/0.6562, allocations: 151.8 kB / 1.232 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.6564, allocations: 80 kB / 1.232 GB, free: 2.773 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(11,13,90.1%), (11,13,91.7%), (6,12,100.0%), (6,12,100.0%), (6,6,100.0%), (6,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002268/0.6587, allocations: 1.338 MB / 1.233 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004291/0.6591, allocations: 201.6 kB / 1.233 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/0.6765, allocations: 8.437 MB / 1.242 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/0.6766, allocations: 20 kB / 1.242 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.326e-05/0.6766, allocations: 28 kB / 1.242 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.699e-05/0.6767, allocations: 8.188 kB / 1.242 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5929/1.27, allocations: 12.85 MB / 1.254 GB, free: 198 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.867e-05/1.27, allocations: 7.188 kB / 1.254 GB, free: 198 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008497/1.27, allocations: 161.8 kB / 1.254 GB, free: 197.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0168/1.287, allocations: 4.488 MB / 1.259 GB, free: 197.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004084/1.288, allocations: 36.34 kB / 1.259 GB, free: 197.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04407/1.332, allocations: 29.1 MB / 1.287 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.332, allocations: 11.88 kB / 1.287 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/1.347, allocations: 8.237 MB / 1.295 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.348, allocations: 0.624 MB / 1.296 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/1.349, allocations: 35.88 kB / 1.296 GB, free: 182.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/1.35, allocations: 137.5 kB / 1.296 GB, free: 182.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008024/1.351, allocations: 170.9 kB / 1.296 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/1.351, allocations: 54.94 kB / 1.296 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001069/1.352, allocations: 0.9593 MB / 1.297 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.21e-07/1.352, allocations: 0 / 1.297 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003164/1.355, allocations: 1.116 MB / 1.298 GB, free: 181.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(6,6,100.0%), (6,12,100.0%), (11,13,91.7%), (6,6,100.0%), (6,12,100.0%), (11,13,91.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003225/1.356, allocations: 151.9 kB / 1.298 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.011/1.367, allocations: 6.414 MB / 1.305 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.39e-05/1.367, allocations: 448 / 1.305 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008847/1.376, allocations: 4.305 MB / 1.309 GB, free: 174 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00402/1.38, allocations: 491.1 kB / 1.309 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/1.39, allocations: 8.955 MB / 1.318 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002517/1.393, allocations: 2.801 MB / 1.321 GB, free: 161.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003901/1.393, allocations: 107.4 kB / 1.321 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.162e-06/1.393, allocations: 4 kB / 1.321 GB, free: 161.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.1133/1.507, allocations: 153.6 MB / 1.471 GB, free: 7.941 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches